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