import * as PiCodingAgent from "@sheason/pi-coding-agent";
export { KeybindingsManager } from "../keybindings.js";
export const getEditorTheme = PiCodingAgent.getEditorTheme;
export const theme = PiCodingAgent.theme;
import { formatMessageSourceLabel } from "../../../hub/agent/types.js";
export { AssistantMessageComponent, CustomEditor, getMarkdownTheme, initTheme, ToolExecutionComponent, } from "@sheason/pi-coding-agent";
export class UserMessageComponent extends PiCodingAgent.UserMessageComponent {
    messageSource;
    constructor(text, markdownTheme, messageSource) {
        super(text, markdownTheme);
        this.messageSource = messageSource;
    }
    render(width) {
        const lines = super.render(width);
        if (!this.messageSource) {
            return lines;
        }
        return [theme.fg("warning", formatMessageSourceLabel(this.messageSource)), ...lines];
    }
}
//# sourceMappingURL=index.js.map