@henryqw/pi-footer 4.2.0 → 4.2.1
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/README.md +1 -1
- package/extensions/footer.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -103,7 +103,7 @@ Package-owned: `~/.pi/agent/config/pi-footer/config.json` for footer colors and
|
|
|
103
103
|
| `colors` | Colors for footer-owned text by role. | Object that maps color roles to theme tokens, `#RGB`, `#RRGGBB`, `oklch(...)`, `okhsl(...)`, or an ANSI index from `0` to `255`. | Built-in colors. |
|
|
104
104
|
| `command` | Command that `/open` runs. Required when the file exists. | Non-empty string. | `"code"` |
|
|
105
105
|
|
|
106
|
-
The footer reads `colors` once per session start; run `/reload` after editing it. The file is never rewritten. A missing file or a missing role keeps the built-in color. At each session start, an invalid file shows a
|
|
106
|
+
The footer reads `colors` once per session start; run `/reload` after editing it. The file is never rewritten. A missing file or a missing role keeps the built-in color. At each session start, an invalid file shows a warning with the path and the reason, and the whole color config falls back to the built-in colors.
|
|
107
107
|
|
|
108
108
|
### Footer color roles
|
|
109
109
|
|
package/extensions/footer.ts
CHANGED
|
@@ -332,7 +332,7 @@ export default function footerExtension(pi: ExtensionAPI): void {
|
|
|
332
332
|
try {
|
|
333
333
|
footerColors = loadFooterConfig();
|
|
334
334
|
} catch (error) {
|
|
335
|
-
ctx.ui.notify(`Footer colors ignored (${footerConfigPath()}): ${(error as Error).message}`, "
|
|
335
|
+
ctx.ui.notify(`Footer colors ignored (${footerConfigPath()}): ${(error as Error).message}`, "warning");
|
|
336
336
|
}
|
|
337
337
|
|
|
338
338
|
ctx.ui.setFooter((tui, theme, data) => {
|