GitHub-Markdown-style alert boxes for Pi
- TypeScript 98.6%
- JavaScript 1.4%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
- Implement 5 levels of alerts - Alerts follow theme colors - live-rasterized SVGs with fallback to characters on terminals not supporting Kitty graphics |
||
| assets | ||
| test | ||
| config.ts | ||
| index.ts | ||
| inline-image.ts | ||
| instructions.ts | ||
| package.json | ||
| palette.ts | ||
| png-tint.ts | ||
| README.md | ||
| tsconfig.json | ||
pi-alert-box
A Pi extension that gives the model an alert tool for important notes, tips, warnings, and cautions. Alerts render as colored callout boxes with one-row filled icons tinted to match the active theme on Kitty-capable terminals, plus a text fallback elsewhere.
Configuration
The theme is selected with {"theme":"original"} or {"theme":"muted"}. Configuration is read from .pi/agent/pi-alert-box/config.json in the current directory, the Git project root, then ~/.pi/agent/pi-alert-box/config.json, in that precedence order. Missing or invalid config defaults to original.
original preserves the current theme-derived severity hues. muted retains those hues and lightness adjustments while reducing saturation/chroma in both foregrounds and callout backgrounds.
Development
npm run generate:icons(requiresrsvg-convert)npm run typechecknpm test