GitHub-Markdown-style alert boxes for Pi
  • TypeScript 98.6%
  • JavaScript 1.4%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Brandon Verkamp b12cdb7349 Initial commit
- Implement 5 levels of alerts
- Alerts follow theme colors
- live-rasterized SVGs with fallback to characters on terminals not supporting Kitty graphics
2026-10-26 15:22:51 -06:00
assets Initial commit 2026-10-26 15:22:51 -06:00
test Initial commit 2026-10-26 15:22:51 -06:00
config.ts Initial commit 2026-10-26 15:22:51 -06:00
index.ts Initial commit 2026-10-26 15:22:51 -06:00
inline-image.ts Initial commit 2026-10-26 15:22:51 -06:00
instructions.ts Initial commit 2026-10-26 15:22:51 -06:00
package.json Initial commit 2026-10-26 15:22:51 -06:00
palette.ts Initial commit 2026-10-26 15:22:51 -06:00
png-tint.ts Initial commit 2026-10-26 15:22:51 -06:00
README.md Initial commit 2026-10-26 15:22:51 -06:00
tsconfig.json Initial commit 2026-10-26 15:22:51 -06:00

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 (requires rsvg-convert)
  • npm run typecheck
  • npm test