@leo-alvarenga/pi-zen-frame 0.14.0 → 0.15.0
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.
|
@@ -43,21 +43,13 @@ export function composeBand(
|
|
|
43
43
|
autocomplete: string[],
|
|
44
44
|
opts: BandOptions,
|
|
45
45
|
): string[] {
|
|
46
|
-
const {
|
|
47
|
-
|
|
48
|
-
paint,
|
|
49
|
-
width,
|
|
50
|
-
prefix,
|
|
51
|
-
marginX,
|
|
52
|
-
boxBottom,
|
|
53
|
-
paddingTop,
|
|
54
|
-
paddingBottom,
|
|
55
|
-
} = opts;
|
|
46
|
+
const { padX, paint, width, prefix, boxBottom, paddingTop, paddingBottom } =
|
|
47
|
+
opts;
|
|
56
48
|
|
|
57
49
|
const lead = Math.max(0, padX - visibleWidth(prefix));
|
|
58
50
|
|
|
59
51
|
const inset = (row: string) =>
|
|
60
|
-
|
|
52
|
+
prefix + paint(" ".repeat(lead) + row + " ".repeat(padX));
|
|
61
53
|
|
|
62
54
|
const fill = () => inset(paint(" ".repeat(Math.max(0, width - 2 * padX))));
|
|
63
55
|
|
|
@@ -103,7 +103,8 @@ export class BlockyEditor extends CustomEditor {
|
|
|
103
103
|
let prefix = "┃";
|
|
104
104
|
|
|
105
105
|
if (ext.theme?.fg) {
|
|
106
|
-
const prefixColor: ThemeColor =
|
|
106
|
+
const prefixColor: ThemeColor =
|
|
107
|
+
ext.agentMode?.color ?? this.opts.accentColor ?? "text";
|
|
107
108
|
prefix = ext.theme.fg(prefixColor, prefix);
|
|
108
109
|
}
|
|
109
110
|
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@leo-alvarenga/pi-zen-frame",
|
|
3
3
|
"description": "A pi-coding-agent extension that gives the TUI editor a simple yet polished look and feel",
|
|
4
4
|
"author": "Leonardo A. Alvarenga",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.15.0",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": "github.com/leo-alvarenga/pi-mono",
|
|
8
8
|
"publishConfig": {
|