01import { CommerceAI } from '@changjinglu/core'
02const workflow = new CommerceAI({ market: 'CN' })
03const product = await workflow.upload('product.jpg')
04const benchmark = await workflow.analyze({ source: '爆款同行' })
05
06const images = await ai.createMainImages({ count: 4, ratio: '1:1' })
07const videos = await ai.createVideos({ ratio: ['16:9', '9:16'] })
08const listing = await copy.generate({ title: true, sku: true })
09await quality.verify([...images, ...videos], { minScore: 92 })
10if (listing.risk === 'low') {
11await channels.publish({ images, videos, listing })
12}
13return growth.forecast({ metric: 'ROI' })