UNPKG

@code-yeongyu/senpi

Version:

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

17 lines • 1.03 kB
/** * A multi-session host loads its extensions per `open_session` or `warm`. A launch that hands it a * private descriptor table expects an extension to claim its channel with no session open (the omo * desktop waits for that channel's first frame before it opens one), so such a host runs the warm of * its default profile once at boot (senpi#6147). It is that exact warm: a client's `warm` of the same * profile joins it or answers `already_warm`, so the factories never run twice for it. Without a table nothing changes. */ import { privateTablePresent } from "../../private-fds.js"; /** Starts the boot load and returns at once: it never delays the listener, and a failure is only logged. */ export function warmAtBootForPrivateFds(warm, profile, log) { if (warm === undefined || !privateTablePresent()) return; warm(profile).catch((cause) => { log(`boot extension load failed: ${cause instanceof Error ? cause.message : String(cause)}`); }); } //# sourceMappingURL=host-boot-extensions.js.map