/** * Detached child of a stop hook that returned before the agent wrote its reply * to the transcript. argv: the deferred payload's path. */ import { isPalSpawnedInference } from "./lib/spawn-guard"; import { finishDeferredStop } from "./lib/stop"; if (isPalSpawnedInference()) process.exit(0); await finishDeferredStop(process.argv[2] ?? "");