"use strict";exports.id=5801,exports.ids=[5801],exports.modules={"./src/commands/disable.ts"(e,r,s){s.r(r),s.d(r,{handleMcpDisable:()=>i});var t=s("../../../../../../../../../../private/tmp/buildkite-job-019fcd9f-5990-4587-a03d-2002fa32284c/agent-cli-mac-macos-arm64-019fcd9f-5990-4587-a03d-2002fa32284c.ZeeOrv1W/pnpm-virtual-store/chalk@5.6.2/node_modules/chalk/source/index.js"),a=s("./src/console-io.ts"),o=s("./src/mcp/disabled-store.ts"),d=s("./src/mcp/project-paths.ts");function i(e,r){return s=this,i=void 0,n=function*(){var e;try{const e=process.cwd(),{disabledPath:s}=(0,d.C)(e),i=new o.P(s),c=yield i.isServerDisabled(r);c||(yield i.addDisabledServer(r)),c?(0,a.OT)(t.Ay.yellow(`MCP server '${r}' was already disabled`)):(0,a.OT)(t.Ay.green(`✓ Disabled MCP server: ${r}`)+"\n"+t.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,a.p2)(t.Ay.red(`Failed to disable MCP server: ${s}`)),process.exit(1)}},new((c=void 0)||(c=Promise))((function(e,r){function t(e){try{o(n.next(e))}catch(e){r(e)}}function a(e){try{o(n.throw(e))}catch(e){r(e)}}function o(r){var s;r.done?e(r.value):(s=r.value,s instanceof c?s:new c((function(e){e(s)}))).then(t,a)}o((n=n.apply(s,i||[])).next())}));var s,i,c,n}}};