pi-polish 0.1.14 → 0.1.15
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/extensions/tools.ts +3 -2
- package/package.json +1 -1
package/extensions/tools.ts
CHANGED
|
@@ -637,8 +637,9 @@ export default function (pi: ExtensionAPI) {
|
|
|
637
637
|
const pulse = secs % 2 ? "dim" : "accent";
|
|
638
638
|
const head = theme.fg(pulse, `${MARK} `) + theme.fg("toolTitle", `${summary(group, true)}…`) + theme.fg("dim", ` · ${secs}s`) + failNote;
|
|
639
639
|
const latest = active.latest ? [theme.fg("dim", ` ${active.latest}`)] : [];
|
|
640
|
-
// pi-background marks commands that ctrl+b can move to the background
|
|
641
|
-
const
|
|
640
|
+
// pi-background marks commands that its shortcut (ctrl+b unless set otherwise) can move to the background
|
|
641
|
+
const moveKey = (globalThis as any)[Symbol.for("pi-background.moveKey")]?.() ?? "ctrl+b";
|
|
642
|
+
const movable = (globalThis as any)[Symbol.for("pi-background.movable")]?.has(active.id) ? [theme.fg("dim", ` (${moveKey} to run in background)`)] : [];
|
|
642
643
|
return oneLine([head, theme.fg("dim", ` └ ${active.label}`), ...latest, ...movable]);
|
|
643
644
|
}
|
|
644
645
|
// Finished rows go quiet, like Claude Code's: dim text, with a red ● only when something failed
|