prjct-cli 3.47.0 → 3.48.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -31,8 +31,8 @@ if(cmd==="hook"){
31
31
  if(process.stdin.isTTY){sendHook(sub,"")}else{let d="";process.stdin.on("data",c=>d+=c);process.stdin.on("end",()=>sendHook(sub,d));process.stdin.on("error",()=>sendHook(sub,d));setTimeout(()=>sendHook(sub,d),1000)}
32
32
  }else{
33
33
  // Cold path (daemon disabled/unreachable): run the hook from the dedicated
34
- // ~136KB hooks bundle, NOT the ~936KB core. cold-entry reads argv+stdin and
35
- // exits, awaiting afterEmit (byte-identical output to the old core path).
34
+ // hooks bundle, NOT the full core. cold-entry emits host JSON then detaches
35
+ // afterEmit into a worker (PRJCT_HOOK_AFTER_EMIT) so Stop does not block.
36
36
  import("./prjct-hooks.mjs").catch(()=>{process.stdout.write("{}\n");process.exit(0)})
37
37
  }
38
38
  }else if(cmd&&!skip.has(cmd)&&process.env.PRJCT_NO_DAEMON!=="1"&&hasEndpoint()){