module.exports=[996380,a=>{"use strict";a.s(["resolve",0,function(a){let b=globalThis.__shepContainer;if(!b)throw Error("DI container not available. Ensure the CLI bootstrap or dev-server has initialized it.");return b.resolve(a)}])},874533,(a,b,c)=>{b.exports=a.x("node:child_process",()=>require("node:child_process"))},666680,(a,b,c)=>{b.exports=a.x("node:crypto",()=>require("node:crypto"))},902157,(a,b,c)=>{b.exports=a.x("node:fs",()=>require("node:fs"))},912714,(a,b,c)=>{b.exports=a.x("node:fs/promises",()=>require("node:fs/promises"))},750227,(a,b,c)=>{b.exports=a.x("node:path",()=>require("node:path"))},660526,(a,b,c)=>{b.exports=a.x("node:os",()=>require("node:os"))},632278,a=>{"use strict";a.i(912714);var b=a.i(660526),c=a.i(750227);a.i(902157),a.s(["getShepHomeDir",0,function(){return process.env.SHEP_HOME??(0,c.join)((0,b.homedir)(),".shep")}])},929918,a=>{"use strict";var b=a.i(666680),c=a.i(750227),d=a.i(632278);a.s(["computeWorktreePath",0,function(a,e){let f=a.replace(/\\/g,"/"),g=(0,b.createHash)("sha256").update(f).digest("hex").slice(0,16),h=e.replace(/\//g,"-");return(0,c.join)((0,d.getShepHomeDir)(),"repos",g,"wt",h).replace(/\\/g,"/")}])},825832,a=>{"use strict";let b="win32"===process.platform;a.s(["IS_WINDOWS",0,b])},812057,(a,b,c)=>{b.exports=a.x("node:util",()=>require("node:util"))},914703,a=>{"use strict";var b=a.i(881719);let c={Requirements:"requirements",Research:"research",Implementation:"implementation",Review:"review","Deploy & QA":"deploy",Maintain:"maintain",Pending:"pending",Archived:"maintain"},d={analyze:"requirements",requirements:"requirements",research:"research",plan:"implementation",implement:"implementation",merge:"review",maintain:"maintain",blocked:"requirements",pending:"pending",archived:"maintain"};a.s(["deriveLifecycle",0,function(a,b){if(b?.status==="completed")return"maintain";let e=b?.result?.startsWith("node:")?b.result.slice(5):void 0;return(e?d[e]:void 0)??c[a.lifecycle]??"requirements"},"deriveNodeState",0,function(a,c,d){if(a.lifecycle===b.SdlcLifecycle.Deleting)return"deleting";if(a.lifecycle===b.SdlcLifecycle.Archived)return"archived";if(a.lifecycle===b.SdlcLifecycle.Pending)return"pending";if(a.lifecycle===b.SdlcLifecycle.Blocked)return"blocked";if(c)switch(c.status){case b.AgentRunStatus.waitingApproval:return"action-required";case b.AgentRunStatus.failed:case b.AgentRunStatus.interrupted:case b.AgentRunStatus.cancelled:return"error";case b.AgentRunStatus.completed:return"done";case b.AgentRunStatus.running:case b.AgentRunStatus.pending:if(d?.isPidAlive===!1)return"error";return"running"}if(a.lifecycle===b.SdlcLifecycle.Maintain)return"done";if(a.lifecycle===b.SdlcLifecycle.Review&&!c)return"action-required";let e=a.plan?.tasks;return e&&0!==e.length?e.some(a=>a.state===b.TaskState.Review)?"action-required":e.some(a=>a.state===b.TaskState.WIP)?"running":e.every(a=>a.state===b.TaskState.Done)?"done":"running":"running"},"deriveProgress",0,function(a){if(a.lifecycle===b.SdlcLifecycle.Maintain)return 100;let c=a.plan?.tasks;return c&&0!==c.length?Math.round(c.filter(a=>a.state===b.TaskState.Done).length/c.length*100):0}],914703)},679372,a=>{"use strict";a.s(["isProcessAlive",0,function(a){try{return process.kill(a,0),!0}catch{return!1}}])}];

//# sourceMappingURL=%5Broot-of-the-server%5D__0e2o081._.js.map