feat: expand module workflows, dynamic config, notifications and console API

This commit is contained in:
2026-09-04 09:49:37 +08:00
parent 8df5266abb
commit b124d757b0
309 changed files with 89358 additions and 6232 deletions
+396 -36
View File
@@ -1,41 +1,401 @@
{
"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.sync","module":"content_marketing","entry":"data/tools/sync_metrics_to_cmt_notes.py","kind":"python"},
{"id":"content.marketing_report.generate","module":"content_marketing","entry":"daily_marketing_report.py","kind":"python"},
{"id":"content.login.refresh","module":"content_marketing","entry":"data/tools/friday_relogin_parallel.py","kind":"python"},
{"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.cooperations.sync","module":"content_marketing","entry":"data/tools/sync_cooperations.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.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"},
{"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"},
{"id":"product.import.daily","module":"product_commerce","entry":"commands/import_daily.py","kind":"python"},
{"id":"product.style_analysis.run","module":"product_commerce","entry":"analyze_style_with_hermes.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.sales_sheet.sync","module":"product_commerce","entry":"sync_monthly_sales_sheet.py","kind":"python","default_args":["--month","{business_date}","--execute"]},
{"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"},
{"id":"product.review.orchestrate","module":"product_commerce","entry":"orchestrate_review_collection.py","kind":"python","default_args":["--target-date","{business_date}"]},
{"id":"supply.workflow.run","module":"supply_chain","entry":"run.py","kind":"python","default_args":["mcp-run","purchase-order-update"]}
{
"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.sync",
"module": "content_marketing",
"entry": "data/tools/sync_metrics_to_cmt_notes.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.login.refresh",
"module": "content_marketing",
"entry": "data/tools/friday_relogin_parallel.py",
"kind": "python",
"notification_workflow_id": "content.relogin.weekly"
},
{
"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.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"
},
{
"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.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"
},
{
"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.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"
]
}
]
}