Files
gyxx-flow/config/commands.json
T
wangyunlong 622a609800 feat(product-commerce): 系列聚合去重与采集开关两层语义
配置来源收敛
- 系列平台编码 tm/jd/dy/jd_self 与 9 类飞书地址改为整系列并集去重后挂锚点,
  子款编码保留在 series.platform_ids 备查;多表冲突保留最高优先级并告警
- 写表脚本(当日/天猫主图/京东主图)去掉本地 JSON 回退,地址缺失或读取失败
  直接 fail closed,避免库与表地址不一致被静默掩盖
- 测试注入 records_provider 时禁用配置缓存读写,防止假数据写入生产快照

采集开关(dim_style.collect_enabled)
- 锚点为系列总开关:false 则整系列不采
- 锚点为 true 时,子款自身 false 仅把自己的 ERP 编码排除出聚合,其余子款照常
- 排除结果记录在 series.erp_excluded 并在运行时提示

聚水潭全店铺日报防错
- 列布局 fail closed、行 td 数校验、满页判定 + 总页数兜底、值域交叉校验
- 新增单日总量闸:超近 14 天中位数 8 倍拒绝落库

其他
- 新增电商费用归集配置 ad_cost_rollup.json 与积分兑换周报采集
- 店铺情报、供应链到货同步、通知路由与相关配置/文档同步更新
- 忽略本地 dsh workbench 脚手架(含 node_modules)
2026-10-30 11:49:31 +08:00

543 lines
14 KiB
JSON

{
"schema_version": 1,
"commands": [
{
"id": "content.metrics.collect_collaborators",
"module": "content_marketing",
"entry": "run_all.py",
"kind": "python"
},
{
"id": "content.mapping.refresh_self",
"module": "content_marketing",
"entry": "data/tools/refresh_self_mapping.py",
"kind": "python"
},
{
"id": "content.metrics.collect_self_bilibili",
"module": "content_marketing",
"entry": "self_bilibili_scraper.py",
"kind": "python"
},
{
"id": "content.metrics.collect_self_douyin",
"module": "content_marketing",
"entry": "chanmama_scraper.py",
"kind": "python"
},
{
"id": "content.metrics.collect_self_xiaohongshu",
"module": "content_marketing",
"entry": "self_xhs_scraper.py",
"kind": "python"
},
{
"id": "content.metrics.sync",
"module": "content_marketing",
"entry": "data/tools/sync_metrics_to_cmt_notes.py",
"kind": "python"
},
{
"id": "content.metrics.sync_self_video_metrics",
"module": "content_marketing",
"entry": "data/tools/sync_self_video_metrics.py",
"kind": "python"
},
{
"id": "content.marketing_report.generate",
"module": "content_marketing",
"entry": "daily_marketing_report.py",
"kind": "python",
"notification_workflow_id": "content.marketing_report.daily"
},
{
"id": "content.creator_report.generate",
"module": "content_marketing",
"entry": "data/tools/generate_creator_report.py",
"kind": "python"
},
{
"id": "content.summary.monthly",
"module": "content_marketing",
"entry": "monthly_summary_all.py",
"kind": "python"
},
{
"id": "content.notes_master.sync",
"module": "content_marketing",
"entry": "data/tools/sync_notes_master.py",
"kind": "python"
},
{
"id": "content.comments.collect_bilibili",
"module": "content_marketing",
"entry": "data/tools/batch_rescrape_bilibili.py",
"kind": "python"
},
{
"id": "content.comments.collect_xiaohongshu",
"module": "content_marketing",
"entry": "data/tools/batch_rescrape_xiaohongshu.py",
"kind": "python"
},
{
"id": "content.comments.collect_douyin",
"module": "content_marketing",
"entry": "data/tools/batch_rescrape_douyin.py",
"kind": "python"
},
{
"id": "content.summary.weekly",
"module": "content_marketing",
"entry": "weekly_summary_all.py",
"kind": "python"
},
{
"id": "content.mapping.rebuild",
"module": "content_marketing",
"entry": "data/tools/rebuild_mapping.py",
"kind": "python"
},
{
"id": "content.failed.retry",
"module": "content_marketing",
"entry": "data/tools/retry_failed.py",
"kind": "python"
},
{
"id": "shop.metrics.collect",
"module": "shop_intelligence",
"entry": "runners/run_shop.py",
"kind": "python"
},
{
"id": "shop.competitor.collect",
"module": "shop_intelligence",
"entry": "runners/run_peer_store.py",
"kind": "python"
},
{
"id": "shop.jd_self_operated.collect_brand",
"module": "shop_intelligence",
"entry": "collectors/jd_self_operated_brand_daily.py",
"kind": "python",
"default_args": [
"--start-date",
"{business_date}",
"--end-date",
"{business_date}",
"--headless"
]
},
{
"id": "shop.jd_self_operated.collect_product",
"module": "shop_intelligence",
"entry": "collectors/jd_self_operated_product_daily.py",
"kind": "python",
"default_args": [
"--start-date",
"{business_date}",
"--end-date",
"{business_date}",
"--headless"
]
},
{
"id": "shop.jd_customer_service.collect",
"module": "shop_intelligence",
"entry": "collectors/jd_customer_service_messages.py",
"kind": "python",
"default_args": [
"--date",
"{business_date}",
"--headless"
]
},
{
"id": "shop.jd_negative_reviews.collect",
"module": "shop_intelligence",
"entry": "collectors/jd_negative_reviews.py",
"kind": "python",
"default_args": [
"--date",
"{business_date}",
"--headless"
]
},
{
"id": "shop.jd_after_sales_issues.collect",
"module": "shop_intelligence",
"entry": "collectors/jd_after_sales_issues.py",
"kind": "python",
"default_args": [
"--date",
"{business_date}",
"--headless"
]
},
{
"id": "shop.douyin_customer_service.collect",
"module": "shop_intelligence",
"entry": "collectors/dy_customer_service_messages.py",
"kind": "python",
"default_args": [
"--date",
"{business_date}",
"--headless"
]
},
{
"id": "shop.tmall_negative_reviews.collect",
"module": "shop_intelligence",
"entry": "collectors/tmall_negative_reviews.py",
"kind": "python",
"default_args": [
"--start-date",
"{business_date}",
"--end-date",
"{business_date}",
"--headless"
]
},
{
"id": "shop.tmall_customer_service.collect",
"module": "shop_intelligence",
"entry": "collectors/tmall_customer_service_messages.py",
"kind": "python",
"default_args": [
"--start-date",
"{business_date}",
"--end-date",
"{business_date}",
"--headless"
]
},
{
"id": "shop.dy_negative_reviews.collect",
"module": "shop_intelligence",
"entry": "collectors/dy_negative_reviews.py",
"kind": "python",
"default_args": [
"--date",
"{business_date}",
"--headless"
]
},
{
"id": "shop.douyin_after_sales_quality.collect",
"module": "shop_intelligence",
"entry": "collectors/dy_after_sales_quality.py",
"kind": "python",
"default_args": [
"--date",
"{business_date}",
"--headless"
]
},
{
"id": "shop.douyin_price_appeal",
"module": "shop_intelligence",
"entry": "collectors/dy_store_competitor_store_scraping.py",
"kind": "python",
"default_args": [
"--price-appeal",
"--execute"
]
},
{
"id": "product.persona.collect",
"module": "product_commerce",
"entry": "run_daily_persona.py",
"kind": "python",
"default_args": [
"--date",
"{business_date}"
]
},
{
"id": "product.daily.orchestrate",
"module": "product_commerce",
"entry": "orchestrate_daily_collection.py",
"kind": "python"
},
{
"id": "product.alert.run",
"module": "product_commerce",
"entry": "commands/run_alerts.py",
"kind": "python",
"notification_workflow_id": "product.alert.daily"
},
{
"id": "product.online_stock_alert.run",
"module": "product_commerce",
"entry": "online_stock_alert.py",
"kind": "python",
"notification_workflow_id": "product.online_stock_alert.daily"
},
{
"id": "product.points_exchange_weekly.run",
"module": "product_commerce",
"entry": "points_exchange_weekly.py",
"kind": "python",
"default_args": [
"--from",
"{business_date}"
],
"notification_workflow_id": "product.points_exchange.weekly"
},
{
"id": "product.import.daily",
"module": "product_commerce",
"entry": "commands/import_daily.py",
"kind": "python"
},
{
"id": "product.tmall_wanxiang_ads.collect",
"module": "product_commerce",
"entry": "collect_tmall_wanxiang_ads.py",
"kind": "python",
"default_args": [
"--date",
"{business_date}",
"--headless"
]
},
{
"id": "product.import.tmall_ads",
"module": "product_commerce",
"entry": "import_tmall_product_ads.py",
"kind": "python",
"default_args": [
"--date",
"{business_date}",
"--execute"
]
},
{
"id": "product.jd_ad_costs.collect",
"module": "product_commerce",
"entry": "collect_jd_ad_costs.py",
"kind": "python",
"default_args": [
"--date",
"{business_date}",
"--headless"
]
},
{
"id": "product.douyin_qianchuan_ads.collect",
"module": "product_commerce",
"entry": "collect_douyin_qianchuan_ads.py",
"kind": "python",
"default_args": [
"--date",
"{business_date}",
"--headless"
]
},
{
"id": "product.import.douyin_qianchuan_ads",
"module": "product_commerce",
"entry": "import_douyin_qianchuan_ads.py",
"kind": "python",
"default_args": [
"--date",
"{business_date}",
"--execute"
]
},
{
"id": "product.import.jd_ad_costs",
"module": "product_commerce",
"entry": "import_jd_ad_costs.py",
"kind": "python",
"default_args": [
"--date",
"{business_date}",
"--execute"
]
},
{
"id": "product.style_analysis.run",
"module": "product_commerce",
"entry": "analyze_style.py",
"kind": "python"
},
{
"id": "product.main_image.collect_jd",
"module": "product_commerce",
"entry": "run_weekly_jd_main_image.py",
"kind": "python"
},
{
"id": "product.main_image.collect_tmall",
"module": "product_commerce",
"entry": "run_weekly_main_image.py",
"kind": "python"
},
{
"id": "product.video_upload.run",
"module": "product_commerce",
"entry": "upload_video_to_guanghe.py",
"kind": "python",
"default_args": [
"--store",
"all",
"--execute",
"--keep-browser-open-on-failure"
]
},
{
"id": "product.jd_video_upload.run",
"module": "product_commerce",
"entry": "upload_video_to_jd.py",
"kind": "python",
"default_args": [
"--anchor-record-id",
"recvrXTRWWFXeJ",
"--manual-login",
"--execute"
]
},
{
"id": "product.tmall_baibu_apply.old_chain_bag",
"module": "product_commerce",
"entry": "tmall_baibu_apply_old_chain_bag.py",
"kind": "python",
"default_args": [
"--execute"
]
},
{
"id": "product.tmall_baibu_apply.old_all_bag",
"module": "product_commerce",
"entry": "tmall_baibu_apply_old_all_bag.py",
"kind": "python",
"default_args": [
"--execute"
]
},
{
"id": "product.tmall_baibu_apply.old_all_3c",
"module": "product_commerce",
"entry": "tmall_baibu_apply_old_all_3c.py",
"kind": "python",
"default_args": [
"--execute"
]
},
{
"id": "product.tmall_baibu_apply.old_chain_3c",
"module": "product_commerce",
"entry": "tmall_baibu_apply_old_chain_3c.py",
"kind": "python",
"default_args": [
"--execute"
]
},
{
"id": "product.tmall_baibu_apply.new_chain_bag",
"module": "product_commerce",
"entry": "tmall_baibu_apply_new_chain_bag.py",
"kind": "python",
"default_args": [
"--execute"
]
},
{
"id": "product.tmall_baibu_apply.new_all_bag",
"module": "product_commerce",
"entry": "tmall_baibu_apply_new_all_bag.py",
"kind": "python",
"default_args": [
"--execute"
]
},
{
"id": "product.sales_sheet.sync",
"module": "product_commerce",
"entry": "sync_monthly_sales_sheet.py",
"kind": "python",
"default_args": [
"--month",
"{business_date}",
"--execute"
]
},
{
"id": "product.erp_all_shop_daily",
"module": "product_commerce",
"entry": "backfill_erp_all_shop_daily.py",
"kind": "python",
"default_args": [
"--from",
"{business_date}",
"--to",
"{business_date}"
]
},
{
"id": "product.erp_sales_theme_daily.collect",
"module": "product_commerce",
"entry": "collect_erp_sales_theme_daily.py",
"kind": "python",
"default_args": [
"--date",
"{business_date}",
"--execute"
]
},
{
"id": "product.hk_anpei_public_inventory.refresh",
"module": "product_commerce",
"entry": "public_sku_inventory_sheet.py",
"kind": "python"
},
{
"id": "product.backfill.run",
"module": "product_commerce",
"entry": "backfill_collect.py",
"kind": "python",
"default_args": [
"--from",
"{business_date}",
"--to",
"{business_date}"
]
},
{
"id": "product.market_rank.orchestrate",
"module": "product_commerce",
"entry": "orchestrate_market_rank_collection.py",
"kind": "python",
"notification_workflow_id": "product.market_rank"
},
{
"id": "product.review.orchestrate",
"module": "product_commerce",
"entry": "orchestrate_review_collection.py",
"kind": "python",
"default_args": [
"--target-date",
"{business_date}"
]
},
{
"id": "supply.replenishment.arrival_sync",
"module": "supply_chain",
"entry": "orchestrator/scripts/collect_replenishment_arrival_sync.py",
"kind": "python"
},
{
"id": "supply.workflow.run",
"module": "supply_chain",
"entry": "run.py",
"kind": "python",
"default_args": [
"mcp-run",
"purchase-order-update"
]
}
]
}