module.exports=[122932,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(659127),l=a.i(996380),m=a.i(618400),n=a.i(140848),o=a.i(501905);async function p(a){try{(0,n.requireFeatureFlag)("collaboration");let b=(0,l.resolve)("UpsertAgentPromptOverrideUseCase");return await b.execute({agentType:a.agentType,promptId:a.promptId,body:a.body}),(0,m.revalidatePath)(`/agents/${a.agentType}`),(0,m.revalidatePath)("/agents"),{ok:!0}}catch(a){return{ok:!1,error:a instanceof Error?a.message:"Failed to save prompt"}}}async function q(a){try{(0,n.requireFeatureFlag)("collaboration");let b=(0,l.resolve)("DeleteAgentPromptOverrideUseCase");return await b.execute(a),(0,m.revalidatePath)(`/agents/${a.agentType}`),(0,m.revalidatePath)("/agents"),{ok:!0}}catch(a){return{ok:!1,error:a instanceof Error?a.message:"Failed to reset prompt"}}}async function r(a){try{(0,n.requireFeatureFlag)("collaboration");let b=(0,l.resolve)("UpsertAgentGraphOverrideUseCase");return await b.execute({agentType:a.agentType,nodes:a.nodes,edges:a.edges}),(0,m.revalidatePath)(`/agents/${a.agentType}`),(0,m.revalidatePath)("/agents"),{ok:!0}}catch(a){return{ok:!1,error:a instanceof Error?a.message:"Failed to save graph"}}}async function s(a){try{(0,n.requireFeatureFlag)("collaboration");let b=(0,l.resolve)("DeleteAgentGraphOverrideUseCase");return await b.execute(a),(0,m.revalidatePath)(`/agents/${a.agentType}`),(0,m.revalidatePath)("/agents"),{ok:!0}}catch(a){return{ok:!1,error:a instanceof Error?a.message:"Failed to reset graph"}}}(0,o.ensureServerEntryExports)([p,q]),(0,k.registerServerReference)(p,"40467f48d2d3c58da38a209635aa28d03a71bf6f15",null),(0,k.registerServerReference)(q,"40313fcab0287971756f36973ffd1bdb53db73ac79",null),(0,o.ensureServerEntryExports)([r,s]),(0,k.registerServerReference)(r,"401a68f1d93dded4520704b5e4b6f7fef1d54751fc",null),(0,k.registerServerReference)(s,"40ffe8637cd19c7588ead8a5cdc7f0d482d55ff6c6",null),a.s([],937389),a.i(937389),a.s(["00173dba11983ca8bc5eee5202809f1608ecb7b9ee",()=>i.listGitHubOrganizations,"00218fdba1289cf3a0703970456df81e7c2ce879da",()=>b.pickFolder,"003fe82fb16e38877fe4c96020b914dbf66345c10c",()=>d.getAllAgentModels,"0064c6a904ca8939b26e1d7cb971dfe1ce0a736d92",()=>c.getDefaultAgentAndModel,"00a388dfcc45f45365055fb2f8fbd6f5b260c29752",()=>e.checkAllAgentsStatus,"40085450b3d987b1b69c38f877433761c8cee07382",()=>g.globalSearch,"400b2f183f80480ccf6ce3de92037e85218f7dd8b3",()=>h.listGitHubRepositories,"401a68f1d93dded4520704b5e4b6f7fef1d54751fc",0,r,"40313fcab0287971756f36973ffd1bdb53db73ac79",0,q,"40467f48d2d3c58da38a209635aa28d03a71bf6f15",0,p,"40834634ae55a0b7479981f9f0629fde71c59e080b",()=>j.importGitHubRepository,"40ffe8637cd19c7588ead8a5cdc7f0d482d55ff6c6",0,s,"60819c777e2e4ccac54bf78640d89e08f9c04abfd4",()=>f.updateAgentAndModel],122932)}];

//# sourceMappingURL=0j.8_web__next-internal_server_app_agents_%5BagentType%5D_page_actions_02vglm4.js.map