(config)
| 156 | } |
| 157 | |
| 158 | function validateOssConfig(config) { |
| 159 | const required = [ |
| 160 | "PAICODING_OSS_AK", |
| 161 | "PAICODING_OSS_SK", |
| 162 | "PAICODING_OSS_ENDPOINT", |
| 163 | "PAICODING_OSS_BUCKET", |
| 164 | "PAICODING_OSS_HOST", |
| 165 | ]; |
| 166 | const missing = required.filter((key) => !config[key]); |
| 167 | if (missing.length > 0) { |
| 168 | throw new Error(`Missing required env vars: ${missing.join(", ")}`); |
| 169 | } |
| 170 | } |
| 171 | |
| 172 | function collectMarkdownFiles(targets) { |
| 173 | const files = []; |