UNPKG

@earendil-works/pi-coding-agent

Version:

Coding agent CLI with read, bash, edit, write tools and session management

21 lines 703 B
import { theme } from "../theme/theme.js"; /** * Dynamic border component that adjusts to viewport width. * * Note: When used from extensions loaded via jiti, the global `theme` may be undefined * because jiti creates a separate module cache. Always pass an explicit color * function when using DynamicBorder in components exported for extension use. */ export class DynamicBorder { color; constructor(color = (str) => theme.fg("border", str)) { this.color = color; } invalidate() { // No cached state to invalidate currently } render(width) { return [this.color("─".repeat(Math.max(1, width)))]; } } //# sourceMappingURL=dynamic-border.js.map