2import{getShellConfig}from"./chunk-QLSPEGYL.js";import{getAgentDir,getFileRevision,normalizePath,require_cross_spawn,stripBom}from"./chunk-5FUIRIHT.js";import{__commonJS,__require,...
3 GFS4: `),console.error(m)});fs[gracefulQueue]||(queue=global[gracefulQueue]||[],publishQueue(fs,queue),fs.close=(function(fs$close){function close(fd,cb){return fs$close.call(fs,fd...
4 `;await new Promise((resolve,reject)=>{stdin.write(payload,error=>error?reject(error):resolve())})}async close(){if(this.closed)return;this.closed=!0;let child=this.child;if(!child...
⋯
8`)&&(text=text.slice(1)),skipLeadingLf=!1),buffered+=text,consumeLines(),Buffer.byteLength(buffered)>maxEventBytes)throw new Error(`MCP SSE event exceeds ${maxEventBytes} bytes`)}l...
9`)&&(tail=tail.slice(1)),buffered+=tail,