MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / onUnexpectedSidecarExit

Function onUnexpectedSidecarExit

apps/desktop/src/main/sidecar.ts:54–56  ·  view source on GitHub ↗
(listener: (notice: SidecarExitNotice) => void)

Source from the content-addressed store, hash-verified

52}
53let unexpectedExitListener: ((notice: SidecarExitNotice) => void) | null = null;
54export const onUnexpectedSidecarExit = (listener: (notice: SidecarExitNotice) => void) => {
55 unexpectedExitListener = listener;
56};
57
58/** Buffer chunked output into whole lines before handing them to `write`. */
59const makeLineSplitter = (write: (line: string) => void) => {

Callers 2

bootFunction · 0.90
exitAfterBootFunction · 0.85

Calls

no outgoing calls

Tested by 1

exitAfterBootFunction · 0.68