@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
16 lines • 683 B
JavaScript
import { Spacer } from "@earendil-works/pi-tui";
import { appendTipLine } from "./tip-line.js";
/**
* The tip must stay a sibling of the header, never part of its text:
* `ui.setHeader()` swaps the header component in place (the builtin
* `prompt-preset` extension does this on every `session_start`), which discards
* anything embedded inside it.
*/
export function appendStartupHeader(container, header, tipLine) {
container.addChild(new Spacer(1));
container.addChild(header);
const tipComponent = tipLine ? appendTipLine(container, tipLine) : undefined;
container.addChild(new Spacer(1));
return tipComponent;
}
//# sourceMappingURL=startup-header.js.map