用途:将已在 basemodel.constants.ts 中定义的生态接入生成表单与生成流程。前提是生态、基础模型、许可与 family 均已存在,否则需先运行 add-ecosystem。
主要能力:先检查 @civitai/orchestration-client 是否含该生态类型;研究模型默认值(版本 ID、宽高比、cfg、步数、LoRA、负面提示、采样器、媒体类型);据情况选择单图、createCheckpointGraph 或 variant 子图结构。修改 basemodel.constants.ts(ecosystemSupport、ecosystemSettings、crossEcosystemRules)、workflows.ts、新建 <name>-graph.ts、<name>.handler.ts,并接线 ecosystem-graph.ts 与 ecosystems/index.ts。另需完成 form-graph 车道:新建 graph 并在 hub.graph.ts 注册、新建 handler、更新 form-graph/index.ts,并向 parity 与 differential 测试手工添加条目。
使用方式:先做前置检查,检索类型,与用户确认计划后再一次性改文件;最后运行 pnpm run typecheck 与 pnpm exec vitest run --project 'unit*' 相关测试,可选在表单中验证。
限制:完成后还需手工对每个环境执行 SQL INSERT(EcosystemCheckpoints、GenerationBaseModel、AuctionBase),无应用代码自动写入;缺失内容需查 docs/features/featured-auction-ecosystem-sync.md。具体定价、平台与效果信息暂未提供。