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