module.exports=[750227,(a,b,c)=>{b.exports=a.x("node:path",()=>require("node:path"))},902157,(a,b,c)=>{b.exports=a.x("node:fs",()=>require("node:fs"))},666680,(a,b,c)=>{b.exports=a.x("node:crypto",()=>require("node:crypto"))},433841,46646,452866,868378,268670,685321,a=>{"use strict";var b=a.i(659127),c=a.i(996380);let d=()=>void 0;function e(a){let b=!!process.env.DEBUG;return{info:b?(...b)=>console.info(a,...b):d,debug:b?(...b)=>console.debug(a,...b):d,warn:(...b)=>console.warn(a,...b),error:(...b)=>console.error(a,...b)}}var f=a.i(501905);let g=e("[deployFeature]");async function h(a){g.info(`called — featureId="${a}"`);try{let b=(0,c.resolve)("StartFeatureDeploymentUseCase"),d=await b.execute(a);return g.info(`start succeeded — state=${d.state}`),{success:!0,state:d.state}}catch(b){let a=b instanceof Error?b.message:"Failed to deploy feature";return g.error(`error: ${a}`,b),{success:!1,error:a}}}(0,f.ensureServerEntryExports)([h]),(0,b.registerServerReference)(h,"4035d8f79e197cdbb4389d44c97f75bfa488747eea",null),a.s(["deployFeature",0,h],433841);let i=e("[deployRepository]");async function j(a){i.info(`called — repositoryPath="${a}"`);try{let b=(0,c.resolve)("StartRepositoryDeploymentUseCase"),d=await b.execute(a);return i.info(`start succeeded — state=${d.state}`),{success:!0,state:d.state}}catch(b){let a=b instanceof Error?b.message:"Failed to deploy repository";return i.error(`error: ${a}`,b),{success:!1,error:a}}}(0,f.ensureServerEntryExports)([j]),(0,b.registerServerReference)(j,"4070b63f5349cb6299d03518df459b3f2b3b98258c",null),a.s(["deployRepository",0,j],46646);class k extends Error{applicationId;code;constructor(a){super(`Application ${a} not found`),this.applicationId=a,this.code="APPLICATION_NOT_FOUND",this.name="ApplicationNotFoundError",Object.setPrototypeOf(this,new.target.prototype)}}a.s(["ApplicationNotFoundError",0,k],452866);class l extends Error{applicationId;repositoryPath;code;constructor(a,b){super(`Repository path does not exist: ${b}`),this.applicationId=a,this.repositoryPath=b,this.code="APPLICATION_REPOSITORY_NOT_ON_DISK",this.name="ApplicationRepositoryNotOnDiskError",Object.setPrototypeOf(this,new.target.prototype)}}class m extends Error{repositoryPath;code;constructor(a){super("Cannot start a dev server for the repository Shep is running from"),this.repositoryPath=a,this.code="CANNOT_DEPLOY_SELF",this.name="CannotDeploySelfError",Object.setPrototypeOf(this,new.target.prototype)}}async function n(a){if(!a?.trim())return{success:!1,error:"applicationId is required"};try{let b=(0,c.resolve)("StartApplicationDeploymentUseCase"),d=await b.execute({applicationId:a});return{success:!0,state:d.state}}catch(b){if(b instanceof k)return{success:!1,error:`Application not found: ${a}`};if(b instanceof l)return{success:!1,error:`Repository path does not exist: ${b.repositoryPath}`};if(b instanceof m)return{success:!1,error:"Cannot start a dev server for the repository Shep is running from"};return{success:!1,error:b instanceof Error?b.message:"Failed to deploy application"}}}async function o(a){try{let b=(0,c.resolve)("StopDeploymentUseCase");return await b.execute(a),{success:!0}}catch(a){return{success:!1,error:a instanceof Error?a.message:"Failed to stop deployment"}}}async function p(a){return(0,c.resolve)("GetDeploymentStatusUseCase").execute(a)}(0,f.ensureServerEntryExports)([n]),(0,b.registerServerReference)(n,"4030e6c10eada82c76cfebd3dd9843edc6f764c1d3",null),a.s(["deployApplication",0,n],868378),(0,f.ensureServerEntryExports)([o]),(0,b.registerServerReference)(o,"40591f440bc4f6b8d04766dadec945b5a9c3c972cb",null),a.s(["stopDeployment",0,o],268670),(0,f.ensureServerEntryExports)([p]),(0,b.registerServerReference)(p,"403327a96cdad1ae3630d5f1520d5faba1354bbb6b",null),a.s(["getDeploymentStatus",0,p],685321)},495072,a=>{"use strict";var b=a.i(659127),c=a.i(996380);async function d(a){if(!a?.trim())return{error:"Application ID is required"};try{let b=(0,c.resolve)("DeleteApplicationUseCase");return await b.execute(a),{}}catch(a){return{error:a instanceof Error?a.message:"Failed to delete application"}}}(0,a.i(501905).ensureServerEntryExports)([d]),(0,b.registerServerReference)(d,"404e7942071d586417b9c5726dfd1be7a2a304e0d0",null),a.s(["deleteApplication",0,d])},477710,977605,145395,a=>{"use strict";var b=a.i(659127),c=a.i(996380),d=a.i(501905);async function e(a){let{description:b,repositoryPath:d,attachments:e,sessionId:f,approvalGates:g,push:h,openPr:i,parentId:j,fast:k,pending:l,forkAndPr:m,commitSpecs:n,ciWatchEnabled:o,enableEvidence:p,commitEvidence:q,agentType:r,model:s,rebaseBeforeBranch:t,injectSkills:u,applicationId:v}=a;if(!b?.trim())return{error:"description is required"};if(!d?.trim())return{error:"repositoryPath is required"};let w=function(a,b){if(!b||0===b.length)return a;let c=b.map(a=>a.notes?.trim()?`@${a.path} [Note: ${a.notes.trim()}]`:`@${a.path}`).join(" ");return`${a}

${c}`}(b,e),x={allowPrd:g?.allowPrd??!1,allowPlan:g?.allowPlan??!1,allowMerge:g?.allowMerge??!1};try{let a=(0,c.resolve)("CreateFeatureUseCase"),{feature:e,shouldSpawn:g}=await a.createRecord({userInput:w,repositoryPath:d,approvalGates:x,push:h??!1,openPr:i??!1,...j?{parentId:j}:{},description:b,...k?{fast:k}:{},...l?{pending:l}:{},...null!=m?{forkAndPr:m}:{},...null!=n?{commitSpecs:n}:{},...null!=o?{ciWatchEnabled:o}:{},...null!=p?{enableEvidence:p}:{},...null!=q?{commitEvidence:q}:{},...r?{agentType:r}:{},...s?{model:s}:{},...null!=t?{rebaseBeforeBranch:t}:{},...null!=u?{injectSkills:u}:{},...v?{applicationId:v}:{}});return a.initializeAndSpawn(e,{userInput:w,repositoryPath:d,approvalGates:x,push:h??!1,openPr:i??!1,...j?{parentId:j}:{},...k?{fast:k}:{},...l?{pending:l}:{},...null!=m?{forkAndPr:m}:{},...null!=n?{commitSpecs:n}:{},...null!=o?{ciWatchEnabled:o}:{},...null!=p?{enableEvidence:p}:{},...null!=q?{commitEvidence:q}:{},...r?{agentType:r}:{},...s?{model:s}:{},...f?{sessionId:f}:{},...null!=t?{rebaseBeforeBranch:t}:{},...null!=u?{injectSkills:u}:{},...v?{applicationId:v}:{}},g).catch(a=>{console.error("[createFeature] initializeAndSpawn failed:",a)}),{feature:e}}catch(a){return{error:a instanceof Error?a.message:"Failed to create feature"}}}(0,d.ensureServerEntryExports)([e]),(0,b.registerServerReference)(e,"40ab9c0168f24592ae5802d26aad2d9819718298b5",null),a.s(["createFeature",0,e],977605);let f=`\
## Project Requirements

Build this as a **React application** using Vite as the build tool.

### Structure
- Initialize with \`npm create vite@latest . -- --template react-ts\` scaffolding
- Organize code into clear folders: \`src/components/\`, \`src/pages/\`, \`src/assets/\`
- Use TypeScript throughout
- Include a working \`package.json\` with all dependencies

### Design & UI
- Create a polished, production-quality interface — not a prototype
- Use modern CSS (CSS modules or Tailwind CSS) with thoughtful spacing, typography, and color
- Make it fully responsive (mobile-first)
- Add subtle micro-interactions: hover states, transitions, focus rings
- Use professional placeholder content (realistic text, not lorem ipsum)
- Pick a cohesive color palette and apply it consistently

### Quality
- Every component should be self-contained and reusable
- Include proper HTML semantics and accessibility (ARIA labels, alt text, keyboard nav)
- The app must start successfully with \`npm install && npm run dev\`

---

## What to Build
`;async function g(a){let{description:b,attachments:d,agentType:g,model:h}=a;if(!b?.trim())return{error:"Description is required"};try{let i=(0,c.resolve)("CreateProjectUseCase"),j=await i.execute({name:b.trim().split(/\s+/).slice(0,6).join(" ")});if(!j.ok)return{error:j.error};let k=j.path,l=(0,c.resolve)("AddRepositoryUseCase"),m=await l.execute({path:k}),n=f+b.trim(),o=await e({description:n,repositoryPath:k,attachments:d,agentType:g,model:h,fast:a.fast});if(o.error)return{error:o.error};return{feature:o.feature,repository:m,repositoryPath:k}}catch(a){return{error:a instanceof Error?a.message:"Failed to create project"}}}async function h(a){if(!a.description?.trim())return{error:"Description is required"};try{let b=(0,c.resolve)("CreateApplicationUseCase"),d=await b.execute({description:a.description.trim(),agentType:a.agentType,modelOverride:a.modelOverride,initialPrompt:a.initialPrompt});return{application:d.application,repositoryPath:d.repositoryPath}}catch(a){return{error:a instanceof Error?a.message:"Failed to create application"}}}(0,d.ensureServerEntryExports)([g]),(0,b.registerServerReference)(g,"40fc4a820ed2835a9c8e3abef0f116e3937db64724",null),a.s(["createProjectAndFeature",0,g],477710),(0,d.ensureServerEntryExports)([h]),(0,b.registerServerReference)(h,"408b6b716e7c7c7c21bf1de88362652f2da33da879",null),a.s(["createApplication",0,h],145395)},538037,a=>{"use strict";var b=a.i(912513),c=a.i(889253),d=a.i(723504),e=a.i(408115),f=a.i(827900),g=a.i(673350),h=a.i(673101),i=a.i(654775),j=a.i(265324),k=a.i(433841),l=a.i(46646),m=a.i(868378),n=a.i(268670),o=a.i(685321),p=a.i(477710),q=a.i(145395),r=a.i(495072),s=a.i(659127),t=a.i(874533),u=a.i(902157),v=a.i(501905);async function w(a){if(!a)return{error:"No path provided"};let b=a.replace(/\\/g,"/");if(!(0,u.existsSync)(b))return{error:`Directory not found: ${b}`};let c=["xdg-open",b];return(0,t.spawn)(c[0],c.slice(1),{detached:!0,stdio:"ignore",windowsHide:!0}).unref(),{}}(0,v.ensureServerEntryExports)([w]),(0,s.registerServerReference)(w,"403272be82e999da43a584d0dc15cf44170a357dad",null);var x=a.i(996380);async function y(){return(0,x.resolve)("ListDeploymentsUseCase").execute()}(0,v.ensureServerEntryExports)([y]),(0,s.registerServerReference)(y,"00e4cd7ac5251415b5f59f36fe79dae6e8426f0090",null);var z=a.i(666680),A=a.i(750227),B=a.i(881719);async function C(a){let b=a.repositoryPath.replace(/\\/g,"/"),c=A.default.basename(b);if(!c)return{error:"Could not determine folder name from path"};try{let a=(0,x.resolve)("IApplicationRepository"),d=new Date,e=(0,z.randomUUID)();return await a.create({id:e,name:c.replace(/[-_]+/g," ").replace(/\b\w/g,a=>a.toUpperCase()),slug:c,description:`Local project at ${b}`,repositoryPath:b,additionalPaths:[],status:B.ApplicationStatus.Idle,setupComplete:!0,bedrockEnabled:!1,createdAt:d,updatedAt:d}),{applicationId:e}}catch(a){return{error:a instanceof Error?a.message:"Failed to adopt directory"}}}(0,v.ensureServerEntryExports)([C]),(0,s.registerServerReference)(C,"40ce4614b97595f6aa063bc545d6716f713933f84c",null),a.s([],300249),a.i(300249),a.s(["00173dba11983ca8bc5eee5202809f1608ecb7b9ee",()=>i.listGitHubOrganizations,"00218fdba1289cf3a0703970456df81e7c2ce879da",()=>b.pickFolder,"003fe82fb16e38877fe4c96020b914dbf66345c10c",()=>d.getAllAgentModels,"0064c6a904ca8939b26e1d7cb971dfe1ce0a736d92",()=>c.getDefaultAgentAndModel,"00a388dfcc45f45365055fb2f8fbd6f5b260c29752",()=>e.checkAllAgentsStatus,"00e4cd7ac5251415b5f59f36fe79dae6e8426f0090",0,y,"40085450b3d987b1b69c38f877433761c8cee07382",()=>g.globalSearch,"400b2f183f80480ccf6ce3de92037e85218f7dd8b3",()=>h.listGitHubRepositories,"4030e6c10eada82c76cfebd3dd9843edc6f764c1d3",()=>m.deployApplication,"403272be82e999da43a584d0dc15cf44170a357dad",0,w,"403327a96cdad1ae3630d5f1520d5faba1354bbb6b",()=>o.getDeploymentStatus,"4035d8f79e197cdbb4389d44c97f75bfa488747eea",()=>k.deployFeature,"404e7942071d586417b9c5726dfd1be7a2a304e0d0",()=>r.deleteApplication,"40591f440bc4f6b8d04766dadec945b5a9c3c972cb",()=>n.stopDeployment,"4070b63f5349cb6299d03518df459b3f2b3b98258c",()=>l.deployRepository,"40834634ae55a0b7479981f9f0629fde71c59e080b",()=>j.importGitHubRepository,"408b6b716e7c7c7c21bf1de88362652f2da33da879",()=>q.createApplication,"40ce4614b97595f6aa063bc545d6716f713933f84c",0,C,"40fc4a820ed2835a9c8e3abef0f116e3937db64724",()=>p.createProjectAndFeature,"60819c777e2e4ccac54bf78640d89e08f9c04abfd4",()=>f.updateAgentAndModel],538037)}];

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