@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
15 lines • 650 B
JavaScript
/**
* Lazy boundary for `@earendil-works/pi-pty` (and `@xterm/headless`).
*
* pi-pty's screen model evaluates `@xterm/headless` at module load. senpi's CLI imports this package on its startup
* graph (the built-in tools), and that graph must not reach pi-pty or xterm (coding-agent's 1781-lazy-pty
* regression test), so the in-process holder awaits {@link loadPty} on its first spawn instead of importing it.
*
* Same pattern as coding-agent's `core/extensions/builtin/terminal/pty.lazy.ts`.
*/
let loaded;
export function loadPty() {
loaded ??= import("@earendil-works/pi-pty");
return loaded;
}
//# sourceMappingURL=pty.lazy.js.map