@ordewell/cli 0.4.12 → 0.4.13
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/main.js +2 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -4305,7 +4305,7 @@ function pickerItemsFor(state, action) {
|
|
|
4305
4305
|
if (action.kind === "set-task-model") {
|
|
4306
4306
|
const task = state.tasks.find((candidate) => candidate.id === action.taskId);
|
|
4307
4307
|
if (!task) return [];
|
|
4308
|
-
|
|
4308
|
+
const items = modelsForTask(state.models, task).map((model) => ({
|
|
4309
4309
|
id: model.id,
|
|
4310
4310
|
label: model.label,
|
|
4311
4311
|
detail: [
|
|
@@ -4314,6 +4314,7 @@ function pickerItemsFor(state, action) {
|
|
|
4314
4314
|
].filter(Boolean).join(" \xB7 "),
|
|
4315
4315
|
selected: model.id === task.assignedModel?.modelId
|
|
4316
4316
|
}));
|
|
4317
|
+
return items.length > 0 ? items : [{ id: "", label: `No ${task.assignedRunner ?? "runner"} models discovered yet`, detail: "run /refresh", disabled: true }];
|
|
4317
4318
|
}
|
|
4318
4319
|
if (action.kind === "set-task-effort") {
|
|
4319
4320
|
const task = state.tasks.find((candidate) => candidate.id === action.taskId);
|
package/package.json
CHANGED