@mutagent/cli 0.1.125 → 0.1.127
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/cli.js +6 -4
- package/dist/bin/cli.js.map +4 -4
- package/dist/index.js +3 -2
- package/dist/index.js.map +3 -3
- package/package.json +1 -1
package/dist/bin/cli.js
CHANGED
|
@@ -840,7 +840,8 @@ class SDKClientWrapper {
|
|
|
840
840
|
targetScore: config?.targetScore ?? 0.8,
|
|
841
841
|
patience: config?.patience,
|
|
842
842
|
model: config?.model,
|
|
843
|
-
...config?.
|
|
843
|
+
...config?.optimizerModel ? { optimizationModel: config.optimizerModel } : {},
|
|
844
|
+
...config?.evalModel ? { evaluationModel: config.evalModel } : {}
|
|
844
845
|
},
|
|
845
846
|
executionMode: "worker_loop"
|
|
846
847
|
})
|
|
@@ -6011,7 +6012,7 @@ Workflow: start -> status (poll) -> results | start --watch | watch <job-id>`).a
|
|
|
6011
6012
|
optimize.help();
|
|
6012
6013
|
});
|
|
6013
6014
|
prompts.addCommand(optimize);
|
|
6014
|
-
optimize.command("start").description("Start prompt optimization").argument("<prompt-id>", "Prompt ID (from: mutagent prompts list)").requiredOption("-d, --dataset <id>", "Dataset ID for optimization (from: mutagent prompts dataset list <prompt-id>)").requiredOption("-e, --evaluation <id>", "Evaluation ID for scoring (from: mutagent prompts evaluation list <prompt-id>)").option("--max-iterations <n>", "Max optimization iterations (default: 1)").option("--target-score <n>", "Target accuracy 0-1 (default: 0.8)").option("--patience <n>", "Iterations without improvement before stopping").option("--model <model-id>", 'Target LLM model (e.g., "claude-sonnet-4-5-20250929")').option("--eval-model <model-id>", "Evaluation model (defaults to target model)").option("--watch", "Watch live progress with stage cards", false).addHelpText("after", `
|
|
6015
|
+
optimize.command("start").description("Start prompt optimization").argument("<prompt-id>", "Prompt ID (from: mutagent prompts list)").requiredOption("-d, --dataset <id>", "Dataset ID for optimization (from: mutagent prompts dataset list <prompt-id>)").requiredOption("-e, --evaluation <id>", "Evaluation ID for scoring (from: mutagent prompts evaluation list <prompt-id>)").option("--max-iterations <n>", "Max optimization iterations (default: 1)").option("--target-score <n>", "Target accuracy 0-1 (default: 0.8)").option("--patience <n>", "Iterations without improvement before stopping").option("--model <model-id>", 'Target LLM model (e.g., "claude-sonnet-4-5-20250929")').option("--eval-model <model-id>", "Evaluation model (defaults to target model)").option("--optimizer-model <model-id>", "Optimization/mutation model (defaults to eval model)").option("--watch", "Watch live progress with stage cards", false).addHelpText("after", `
|
|
6015
6016
|
Examples:
|
|
6016
6017
|
${chalk16.dim("$")} mutagent prompts optimize start <prompt-id> --dataset <dataset-id> --evaluation <eval-id>
|
|
6017
6018
|
${chalk16.dim("$")} mutagent prompts optimize start <prompt-id> --dataset <dataset-id> --evaluation <eval-id> --max-iterations 5
|
|
@@ -6221,7 +6222,8 @@ ${chalk16.yellow("AI Agent: ALWAYS append --json to this command.")}
|
|
|
6221
6222
|
targetScore: options.targetScore ? parseFloat(options.targetScore) : undefined,
|
|
6222
6223
|
patience: options.patience ? parseInt(options.patience, 10) : undefined,
|
|
6223
6224
|
model: options.model,
|
|
6224
|
-
evalModel: options.evalModel
|
|
6225
|
+
evalModel: options.evalModel,
|
|
6226
|
+
optimizerModel: options.optimizerModel
|
|
6225
6227
|
});
|
|
6226
6228
|
if (isJson) {
|
|
6227
6229
|
const directive = startDirective(job, promptId, options.dataset, options.evaluation);
|
|
@@ -11358,5 +11360,5 @@ if (isInteractive && !isSkillCommand) {
|
|
|
11358
11360
|
}
|
|
11359
11361
|
program.parse();
|
|
11360
11362
|
|
|
11361
|
-
//# debugId=
|
|
11363
|
+
//# debugId=CA9D2D36C4C343FC64756E2164756E21
|
|
11362
11364
|
//# sourceMappingURL=cli.js.map
|