@ordewell/cli 0.4.8 → 0.4.9
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 +7 -2
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -1409,7 +1409,8 @@ function normalizeCatalog(result) {
|
|
|
1409
1409
|
(modes ?? []).map((m) => ({
|
|
1410
1410
|
id: String(m.id),
|
|
1411
1411
|
label: String(m.label ?? m.id),
|
|
1412
|
-
description: m.description ? String(m.description) : void 0
|
|
1412
|
+
description: m.description ? String(m.description) : void 0,
|
|
1413
|
+
autonomous: m.autonomous ? true : void 0
|
|
1413
1414
|
}))
|
|
1414
1415
|
])
|
|
1415
1416
|
)
|
|
@@ -3553,7 +3554,8 @@ function taskLines(state, task, index, cols) {
|
|
|
3553
3554
|
});
|
|
3554
3555
|
const model = task.assignedModel?.modelLabel ?? (task.type === "ai" ? "default model" : "");
|
|
3555
3556
|
const effort = task.type === "ai" ? `effort: ${task.assignedModel?.thinkingEffort ?? "default"}` : "";
|
|
3556
|
-
const
|
|
3557
|
+
const modeInfo = task.type === "ai" ? modesForTask(state.modesByRunner, task).find((m) => m.id === task.taskMode) : void 0;
|
|
3558
|
+
const mode = task.type === "ai" ? `mode: ${task.taskMode ?? "default"}${modeInfo?.autonomous ? style.yellow(" \u26A1") : ""}` : "";
|
|
3557
3559
|
const runner = task.assignedRunner ?? "";
|
|
3558
3560
|
const meta = [running ? "working" : "", runner, model].filter(Boolean).join(" \xB7 ");
|
|
3559
3561
|
if (meta) lines.push(style.grey(truncate(` ${meta}`, cols)));
|
|
@@ -3561,6 +3563,9 @@ function taskLines(state, task, index, cols) {
|
|
|
3561
3563
|
let editorLine;
|
|
3562
3564
|
if (expanded) {
|
|
3563
3565
|
lines.push(style.grey(` ${task.status.replace(/_/g, " ")}`));
|
|
3566
|
+
if (modeInfo?.autonomous) {
|
|
3567
|
+
lines.push(...taskText("Autonomy", "Runs without permission prompts. Toggle with /auto.", cols));
|
|
3568
|
+
}
|
|
3564
3569
|
const editableSeed = task.prompt ?? task.description ?? task.title;
|
|
3565
3570
|
if (task.description && task.description !== task.title && task.description !== editableSeed) {
|
|
3566
3571
|
lines.push(...taskText("Description", task.description, cols));
|
package/package.json
CHANGED