()
| 258 | // ─── CLI ───────────────────────────────────────────────────────────────────── |
| 259 | |
| 260 | async function main() { |
| 261 | const mode: SyncMode = process.argv.includes("--check") ? "check" : "write"; |
| 262 | const result = await syncPluginSkills({ cwd: process.cwd(), mode }); |
| 263 | if (result.message) console.log(result.message); |
| 264 | process.exit(result.exitCode); |
| 265 | } |
| 266 | |
| 267 | // Use import.meta detection so the file is testable without triggering the CLI path. |
| 268 | if (process.argv[1] && process.argv[1].endsWith("sync-plugin-skills.ts")) { |
no test coverage detected
searching dependent graphs…