|
| 1 | +export const command = "explore"; |
| 2 | +export const desc = "Explore and discover sounds through sweep, mutate, and promote workflows"; |
| 3 | + |
| 4 | +export function builder(yargs: any) { |
| 5 | + return yargs |
| 6 | + .command("sweep", "Sweep a seed range and rank candidates", (y: any) => { |
| 7 | + y.option("recipe", { type: "string", describe: "Recipe name" }) |
| 8 | + .option("seed-range", { type: "string", describe: "Seed range (start:end)" }) |
| 9 | + .option("keep-top", { type: "number", default: 5, describe: "Number of top candidates to keep" }) |
| 10 | + .option("rank-by", { type: "string", describe: "Metric to rank by" }) |
| 11 | + .option("clusters", { type: "number", default: 3, describe: "Number of clusters" }) |
| 12 | + .option("concurrency", { type: "number", default: 4, describe: "Concurrency level" }) |
| 13 | + .option("output", { type: "string", describe: "Output directory" }) |
| 14 | + .option("json", { type: "boolean", describe: "Output JSON" }); |
| 15 | + }) |
| 16 | + .command("mutate", "Mutate a seed to explore nearby sounds", (y: any) => { |
| 17 | + y.option("recipe", { type: "string", describe: "Recipe name" }) |
| 18 | + .option("seed", { type: "number", describe: "Seed to mutate" }) |
| 19 | + .option("jitter", { type: "number", default: 0.1, describe: "Jitter amount (0-1)" }) |
| 20 | + .option("count", { type: "number", default: 20, describe: "Number of mutations" }) |
| 21 | + .option("rank-by", { type: "string", describe: "Metric to rank by" }) |
| 22 | + .option("output", { type: "string", describe: "Output directory" }) |
| 23 | + .option("json", { type: "boolean", describe: "Output JSON" }); |
| 24 | + }) |
| 25 | + .command("promote", "Promote a candidate to the library", (y: any) => { |
| 26 | + y.option("run", { type: "string", describe: "Run ID" }) |
| 27 | + .option("latest", { type: "boolean", describe: "Use the latest run" }) |
| 28 | + .option("id", { type: "string", describe: "Candidate ID to promote" }) |
| 29 | + .option("category", { type: "string", describe: "Override category" }) |
| 30 | + .option("json", { type: "boolean", describe: "Output JSON" }); |
| 31 | + }) |
| 32 | + .command("show", "Show details of an exploration run", (y: any) => { |
| 33 | + y.option("run", { type: "string", describe: "Run ID" }) |
| 34 | + .option("latest", { type: "boolean", describe: "Use the latest run" }) |
| 35 | + .option("json", { type: "boolean", describe: "Output JSON" }); |
| 36 | + }) |
| 37 | + .command("runs", "List all exploration runs", (y: any) => { |
| 38 | + y.option("json", { type: "boolean", describe: "Output JSON" }); |
| 39 | + }); |
| 40 | +} |
0 commit comments