module.exports=[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)},794691,a=>{"use strict";var b=a.i(659127),c=a.i(996380);async function d(a){return a?.trim()?(0,c.resolve)("IDeploymentService").getLogs(a):null}(0,a.i(501905).ensureServerEntryExports)([d]),(0,b.registerServerReference)(d,"4098945e8ab199bd7533e7383eda7cad6b791882e3",null),a.s(["getDeploymentLogs",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)},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])},280496,a=>{"use strict";var b=a.i(659127),c=a.i(902157),d=a.i(660526),e=a.i(750227),f=a.i(874533),g=a.i(501905);let h={darwin:{cmd:"open",args:a=>[a]},linux:{cmd:"xdg-open",args:a=>[a]},win32:{cmd:"explorer",args:a=>[a]}};async function i(a){if(!a||!(0,e.isAbsolute)(a))return{success:!1,error:"repositoryPath must be an absolute path"};try{if(!(0,c.existsSync)(a))return{success:!1,error:"Directory not found"};let b=h[(0,d.platform)()];if(!b)return{success:!1,error:`Unsupported platform: ${(0,d.platform)()}`};let g=(0,e.normalize)(a),i=(0,f.spawn)(b.cmd,b.args(g),{detached:!0,stdio:"ignore"});return i.on("error",()=>void 0),i.unref(),{success:!0,path:a}}catch(a){return{success:!1,error:a instanceof Error?a.message:"Failed to open folder"}}}(0,g.ensureServerEntryExports)([i]),(0,b.registerServerReference)(i,"400b38f11dc90593eca1a533f22ba9f185c08cdc7f",null),a.s(["openFolder",0,i])},284095,656799,a=>{"use strict";var b=a.i(659127),c=a.i(750227),d=a.i(633244),e=a.i(996380),f=a.i(501905);async function g(a){let{repositoryPath:b,branch:f}=a;if(!b||!(0,c.isAbsolute)(b))return{success:!1,error:"repositoryPath must be an absolute path"};let g=(0,d.getSettings)().environment.defaultEditor,h=(0,e.resolve)("LaunchIdeUseCase"),i=await h.execute({editorId:g,repositoryPath:b,branch:f,checkAvailability:!0});return i.ok?{success:!0,editor:i.editorName,path:i.worktreePath}:{success:!1,error:i.message}}(0,f.ensureServerEntryExports)([g]),(0,b.registerServerReference)(g,"4067c16fbe638c7fe830bef9b2fa821975e91d477a",null),a.s(["openIde",0,g],284095);var h=a.i(902157),i=a.i(660526),j=a.i(874533),k=a.i(929918);function l(a){return a.replace(/'/g,"'\\''")}let m={darwin:{cmd:"osascript",args:a=>["-e",`tell application "Terminal" to do script "cd '${l(a.replace(/\\/g,"\\\\").replace(/"/g,'\\"'))}'; clear"`,"-e",'tell application "Terminal" to activate']},linux:{cmd:"x-terminal-emulator",args:a=>[`--working-directory=${a}`]},win32:{cmd:"cmd.exe",args:a=>["/c","start","powershell","-NoExit","-Command",`Set-Location "${a}"`]}};async function n(a){let{repositoryPath:b,branch:f}=a;if(!b||!(0,c.isAbsolute)(b))return{success:!1,error:"repositoryPath must be an absolute path"};try{let a=(0,d.getSettings)(),c=a.environment.shellPreference,g=a.environment.terminalPreference??"system",n=f?(0,k.computeWorktreePath)(b,f):b;if(!(0,h.existsSync)(n))return{success:!1,error:`Path does not exist: ${n}`};if("system"!==g)try{let a=(0,e.resolve)("IToolInstallerService").getTerminalOpenConfig(g);if(a?.openDirectory.includes("{dir}")){if(a.shell){let b="win32"===(0,i.platform)()?"TURBOPACK unreachable":`'${l(n)}'`,c=a.openDirectory.replace("{dir}",b),d=(0,j.spawn)(c,[],{detached:!0,stdio:"ignore",shell:!0});d.on("error",()=>void 0),d.unref()}else{let[b,...c]=a.openDirectory.split(/\s+/).filter(Boolean),d=c.map(a=>a.replace("{dir}",n)),e=(0,j.spawn)(b,d,{detached:!0,stdio:"ignore"});e.on("error",()=>void 0),e.unref()}return{success:!0,path:n,shell:c}}}catch{}let o=m[(0,i.platform)()];if(!o)return{success:!1,error:`Unsupported platform: ${(0,i.platform)()}`};let p=(0,j.spawn)(o.cmd,o.args(n),{detached:!0,stdio:"ignore"});return p.on("error",()=>void 0),p.unref(),{success:!0,path:n,shell:c}}catch(a){return{success:!1,error:a instanceof Error?a.message:"Failed to open shell"}}}(0,f.ensureServerEntryExports)([n]),(0,b.registerServerReference)(n,"40b5d61e7c4d99412e8638a58ee7b1322b8d32c45b",null),a.s(["openShell",0,n],656799)},576707,410528,a=>{"use strict";var b=a.i(659127),c=a.i(996380),d=a.i(501905);async function e(a){let b=(0,c.resolve)("CreateProjectUseCase"),d=await b.execute({name:a});return d.ok?{ok:!0,path:d.path}:{ok:!1,error:d.error}}async function f(a){if(!a?.trim())return{error:"id is required"};try{let b=(0,c.resolve)("ArchiveFeatureUseCase");return{feature:await b.execute(a)}}catch(a){return{error:a instanceof Error?a.message:"Failed to archive feature"}}}(0,d.ensureServerEntryExports)([e]),(0,b.registerServerReference)(e,"40f8669dbdb0b342cb08e77566722d0141606f66e7",null),a.s(["createProjectFolder",0,e],576707),(0,d.ensureServerEntryExports)([f]),(0,b.registerServerReference)(f,"40df019c5562334b2eafb4d08c52efc94f4b76214e",null),a.s(["archiveFeature",0,f],410528)},150845,a=>{"use strict";var b=a.i(659127),c=a.i(996380);async function d(a,b,d,e){if(!a?.trim())return{error:"id is required"};try{let f=(0,c.resolve)("DeleteFeatureUseCase"),g={};return void 0!==b&&(g.cleanup=b),void 0!==d&&(g.cascadeDelete=d),void 0!==e&&(g.closePr=e),{feature:Object.keys(g).length>0?await f.execute(a,g):await f.execute(a)}}catch(a){return{error:a instanceof Error?a.message:"Failed to delete feature"}}}(0,a.i(501905).ensureServerEntryExports)([d]),(0,b.registerServerReference)(d,"78bbe611ed96119c599a9c533ed5b3282e5c38661c",null),a.s(["deleteFeature",0,d])},26604,a=>{"use strict";var b=a.i(659127),c=a.i(996380);async function d(a){if(!a.trim())return{resumed:!1,error:"Feature id is required"};try{let b=(0,c.resolve)("ResumeFeatureUseCase");return await b.execute(a),{resumed:!0}}catch(a){return{resumed:!1,error:a instanceof Error?a.message:"Failed to resume feature"}}}(0,a.i(501905).ensureServerEntryExports)([d]),(0,b.registerServerReference)(d,"40f59e065640651f69180f2d95d6daae9978cae118",null),a.s(["resumeFeature",0,d])},354723,118942,a=>{"use strict";var b=a.i(659127),c=a.i(996380),d=a.i(501905);async function e(a){if(!a.trim())return{started:!1,error:"Feature id is required"};try{let b=(0,c.resolve)("StartFeatureUseCase");return await b.execute(a),{started:!0}}catch(a){return{started:!1,error:a instanceof Error?a.message:"Failed to start feature"}}}async function f(a){if(!a.trim())return{stopped:!1,error:"Feature id is required"};try{let b=(0,c.resolve)("IAgentRunRepository"),d=(await b.list()).find(b=>b.featureId===a&&"completed"!==b.status&&"failed"!==b.status&&"interrupted"!==b.status&&"cancelled"!==b.status);if(!d)return{stopped:!1,error:"No active agent run found for this feature"};let e=(0,c.resolve)("StopAgentRunUseCase"),f=await e.execute(d.id);if(!f.stopped)return{stopped:!1,error:f.reason};return{stopped:!0}}catch(a){return{stopped:!1,error:a instanceof Error?a.message:"Failed to stop agent"}}}(0,d.ensureServerEntryExports)([e]),(0,b.registerServerReference)(e,"40800bc52b04670c505c5232190d66e5f9a86efffc",null),a.s(["startFeature",0,e],354723),(0,d.ensureServerEntryExports)([f]),(0,b.registerServerReference)(f,"40ddf3fcfa873840616ebb1c28e3afbf9b2f8839a5",null),a.s(["stopFeature",0,f],118942)},342886,a=>{"use strict";var b=a.i(659127),c=a.i(996380);async function d(a){if(!a?.trim())return{error:"id is required"};try{let b=(0,c.resolve)("UnarchiveFeatureUseCase");return{feature:await b.execute(a)}}catch(a){return{error:a instanceof Error?a.message:"Failed to unarchive feature"}}}(0,a.i(501905).ensureServerEntryExports)([d]),(0,b.registerServerReference)(d,"404a00dc4e404f49d314e8ad7ab4527523d79deab6",null),a.s(["unarchiveFeature",0,d])},649560,a=>{"use strict";var b=a.i(659127),c=a.i(996380);async function d(a){let{path:b,name:d}=a;if(!b?.trim())return{error:"path is required"};try{let a=(0,c.resolve)("AddRepositoryUseCase");return{repository:await a.execute({path:b,name:d})}}catch(a){return{error:a instanceof Error?a.message:"Failed to add repository"}}}(0,a.i(501905).ensureServerEntryExports)([d]),(0,b.registerServerReference)(d,"4036e7f975a61850ccf5ba4ea042ce7c599ba96ca6",null),a.s(["addRepository",0,d])}];

//# sourceMappingURL=src_presentation_web_app_actions_0m~je9e._.js.map