UNPKG

@code-yeongyu/senpi

Version:

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

13 lines • 747 B
export function hostCrashCleanupPaths(targets) { // POSIX public sockets are removed ownership-checked by the host child // (token: the scratch-directory sidecar plus HOST_PUBLIC_SOCKET_ENV), // never by path from a crash-path cleanup: a blind removal here would // unlink a newer host's freshly published entry after a takeover. // Windows named pipes have no filesystem entry to own, so they stay // listed for the crash-path cleanup. const publicEntry = targets.platform === "win32" ? [targets.publicSocket] : []; if (targets.successor) return publicEntry; return [targets.generationPidFile, targets.settingsFile, ...publicEntry, targets.pointerFile]; } //# sourceMappingURL=host-cleanup-paths.js.map