"use strict";exports.id=8473,exports.ids=[8473],exports.modules={"./src/commands/disable.ts"(e,r,s){s.r(r),s.d(r,{handleMcpDisable:()=>a});var o=s("../../../../var/folders/gy/wcfhjzc55d96bnvx1zv223lc0000gn/T/agent-cli-mac-macos-arm64-019f4933-2c84-47c5-80c6-8513f384d287.ekQPhryL/pnpm-virtual-store/chalk@5.6.2/node_modules/chalk/source/index.js"),c=s("./src/console-io.ts"),t=s("./src/mcp/disabled-store.ts"),n=s("./src/mcp/project-paths.ts");function a(e,r){return s=this,a=void 0,i=function*(){var e;try{const e=process.cwd(),{disabledPath:s}=(0,n.C)(e),a=new t.P(s),d=yield a.isServerDisabled(r);d||(yield a.addDisabledServer(r)),d?(0,c.OT)(o.Ay.yellow(`MCP server '${r}' was already disabled`)):(0,c.OT)(o.Ay.green(`✓ Disabled MCP server: ${r}`)+"\n"+o.Ay.dim("The server will no longer be loaded or prompted for approval.")),process.exit(0)}catch(r){const s=null!==(e=null==r?void 0:r.message)&&void 0!==e?e:String(r);(0,c.p2)(o.Ay.red(`Failed to disable MCP server: ${s}`)),process.exit(1)}},new((d=void 0)||(d=Promise))((function(e,r){function o(e){try{t(i.next(e))}catch(e){r(e)}}function c(e){try{t(i.throw(e))}catch(e){r(e)}}function t(r){var s;r.done?e(r.value):(s=r.value,s instanceof d?s:new d((function(e){e(s)}))).then(o,c)}t((i=i.apply(s,a||[])).next())}));var s,a,d,i}}};