@mstar-harness/cli 0.5.1 → 0.5.2
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/mstar-harness.js +11 -1
- package/package.json +1 -1
package/dist/mstar-harness.js
CHANGED
|
@@ -4862,15 +4862,25 @@ async function pickTargetInteractive() {
|
|
|
4862
4862
|
choices: SUPPORTED_TARGETS.map((target) => ({ name: target, value: target }))
|
|
4863
4863
|
});
|
|
4864
4864
|
}
|
|
4865
|
+
var ASCII_ICONS = {
|
|
4866
|
+
checked: "(*)",
|
|
4867
|
+
unchecked: "( )",
|
|
4868
|
+
cursor: ">"
|
|
4869
|
+
};
|
|
4865
4870
|
async function pickModelsInteractive(params) {
|
|
4866
4871
|
const choices = params.models.map((model) => ({ name: model, value: model }));
|
|
4867
4872
|
if (params.single) {
|
|
4868
|
-
const picked = await dist_default5({
|
|
4873
|
+
const picked = await dist_default5({
|
|
4874
|
+
message: `${params.title} (${params.hint})`,
|
|
4875
|
+
choices,
|
|
4876
|
+
theme: { icon: { cursor: ASCII_ICONS.cursor } }
|
|
4877
|
+
});
|
|
4869
4878
|
return [picked];
|
|
4870
4879
|
}
|
|
4871
4880
|
return dist_default4({
|
|
4872
4881
|
message: `${params.title} (${params.hint})`,
|
|
4873
4882
|
choices,
|
|
4883
|
+
theme: { icon: ASCII_ICONS },
|
|
4874
4884
|
validate: (picked) => {
|
|
4875
4885
|
if (picked.length < 1)
|
|
4876
4886
|
return "Pick at least one model.";
|