UNPKG

claude-code-switch

Version:

A CLI tool for managing and switching Claude Code model providers

1 lines 5.99 kB
const a0_0x2be91d=a0_0x2129;(function(_0x2bc55a,_0x582dd3){const _0x4d143e=a0_0x2129,_0x13369b=_0x2bc55a();while(!![]){try{const _0x3eb4ec=parseInt(_0x4d143e(0xf3))/0x1*(parseInt(_0x4d143e(0x105))/0x2)+-parseInt(_0x4d143e(0xf1))/0x3+parseInt(_0x4d143e(0xf2))/0x4*(parseInt(_0x4d143e(0x104))/0x5)+parseInt(_0x4d143e(0x107))/0x6+-parseInt(_0x4d143e(0x109))/0x7+parseInt(_0x4d143e(0xf9))/0x8*(-parseInt(_0x4d143e(0x111))/0x9)+parseInt(_0x4d143e(0xfa))/0xa;if(_0x3eb4ec===_0x582dd3)break;else _0x13369b['push'](_0x13369b['shift']());}catch(_0x21de6f){_0x13369b['push'](_0x13369b['shift']());}}}(a0_0x37d2,0x687e3));function a0_0x2129(_0x3a7811,_0x113e5b){const _0x4d2cbf=a0_0x37d2();return a0_0x2129=function(_0x16ad86,_0x2518f0){_0x16ad86=_0x16ad86-0xf1;let _0x37d279=_0x4d2cbf[_0x16ad86];if(a0_0x2129['OdXcew']===undefined){var _0x212994=function(_0x1b3502){const _0x125d12='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x60fd6a='',_0x34f841='',_0xb376e5=_0x60fd6a+_0x212994;for(let _0x2cc4cd=0x0,_0x4f120a,_0x5cb938,_0x4ac4d2=0x0;_0x5cb938=_0x1b3502['charAt'](_0x4ac4d2++);~_0x5cb938&&(_0x4f120a=_0x2cc4cd%0x4?_0x4f120a*0x40+_0x5cb938:_0x5cb938,_0x2cc4cd++%0x4)?_0x60fd6a+=_0xb376e5['charCodeAt'](_0x4ac4d2+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x4f120a>>(-0x2*_0x2cc4cd&0x6)):_0x2cc4cd:0x0){_0x5cb938=_0x125d12['indexOf'](_0x5cb938);}for(let _0x459c8e=0x0,_0x3fc95b=_0x60fd6a['length'];_0x459c8e<_0x3fc95b;_0x459c8e++){_0x34f841+='%'+('00'+_0x60fd6a['charCodeAt'](_0x459c8e)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x34f841);};a0_0x2129['RMyAQt']=_0x212994,_0x3a7811=arguments,a0_0x2129['OdXcew']=!![];}const _0x20a24e=_0x4d2cbf[0x0],_0x170a15=_0x16ad86+_0x20a24e,_0x46227d=_0x3a7811[_0x170a15];if(!_0x46227d){const _0x378e48=function(_0x10cd0f){this['ibZRSA']=_0x10cd0f,this['dWapYR']=[0x1,0x0,0x0],this['rAQUjx']=function(){return'newState';},this['YNEWPG']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['jPRpAz']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x378e48['prototype']['wUXQLH']=function(){const _0x1c199d=new RegExp(this['YNEWPG']+this['jPRpAz']),_0x28f2c6=_0x1c199d['test'](this['rAQUjx']['toString']())?--this['dWapYR'][0x1]:--this['dWapYR'][0x0];return this['JWiXVw'](_0x28f2c6);},_0x378e48['prototype']['JWiXVw']=function(_0x23e68d){if(!Boolean(~_0x23e68d))return _0x23e68d;return this['jNHNfx'](this['ibZRSA']);},_0x378e48['prototype']['jNHNfx']=function(_0x52575a){for(let _0x3a9717=0x0,_0x89d5fa=this['dWapYR']['length'];_0x3a9717<_0x89d5fa;_0x3a9717++){this['dWapYR']['push'](Math['round'](Math['random']())),_0x89d5fa=this['dWapYR']['length'];}return _0x52575a(this['dWapYR'][0x0]);},new _0x378e48(a0_0x2129)['wUXQLH'](),_0x37d279=a0_0x2129['RMyAQt'](_0x37d279),_0x3a7811[_0x170a15]=_0x37d279;}else _0x37d279=_0x46227d;return _0x37d279;},a0_0x2129(_0x3a7811,_0x113e5b);}const a0_0x2518f0=(function(){let _0x2646b8=!![];return function(_0x284954,_0x1954b8){const _0x6c47a2=_0x2646b8?function(){const _0x3e3a09=a0_0x2129;if(_0x1954b8){const _0x3f22cd=_0x1954b8[_0x3e3a09(0xf4)](_0x284954,arguments);return _0x1954b8=null,_0x3f22cd;}}:function(){};return _0x2646b8=![],_0x6c47a2;};}()),a0_0x16ad86=a0_0x2518f0(this,function(){const _0x1f0396=a0_0x2129,_0x275f39={};_0x275f39[_0x1f0396(0xfd)]=_0x1f0396(0x10b);const _0x326d0d=_0x275f39;return a0_0x16ad86[_0x1f0396(0xf8)]()['search'](_0x326d0d[_0x1f0396(0xfd)])[_0x1f0396(0xf8)]()['constructor'](a0_0x16ad86)['search'](_0x326d0d[_0x1f0396(0xfd)]);});a0_0x16ad86();const {execSync}=require(a0_0x2be91d(0x102));function a0_0x37d2(){const _0x49f1a1=['zxjYB3i','u0r0r0C','sM9NsNG','Ee5Ht0m','iciI','qMnbDgG','zxHWB3j0CW','y2HPBgrFChjVy2vZCW','rw5Wu3G','mtbRqMzttg4','mJG0nty2q0jPAgrU','zw50CMLLCW','mJiWntK1nfD1ExL4sG','CMvTB3zLrw52vMfY','ndeZnZa5ognkqufUBG','zw52','kcGOlISPkYKRksSK','C2v0Eca','C2v0txvSDgLWBgvfBNzwyxjZ','CgLWzq','u3v1q0e','C3rKAw8','nta0nJa2nLfXvMj4rW','mta1odmYnu5Zqurevq','mta4mdq1mMr4Dg1ttG','mKvVz0LcDW','yxbWBhK','C2v0rw52vMfY','rNbftNm','A29Auhe','Dg9tDhjPBMC','oeD3quzwBa','nZqWmde1me9vENjzrW'];a0_0x37d2=function(){return _0x49f1a1;};return a0_0x37d2();}class WindowsEnvManager{constructor(){}['setEnvVar'](_0x1963c3,_0x567146){const _0x1dbc4a=a0_0x2be91d,_0xe4a840={'EnpSx':function(_0x3d9044,_0x59472d,_0x20b16c){return _0x3d9044(_0x59472d,_0x20b16c);},'SDtGG':'Failed\x20to\x20set\x20Windows\x20environment\x20variable:'};try{const _0x4a5c3b={};return _0x4a5c3b[_0x1dbc4a(0x110)]='pipe',_0xe4a840[_0x1dbc4a(0x103)](execSync,_0x1dbc4a(0x10c)+_0x1963c3+'\x20\x22'+_0x567146+'\x22',_0x4a5c3b),process[_0x1dbc4a(0x10a)][_0x1963c3]=_0x567146,!![];}catch(_0x1791e6){return console[_0x1dbc4a(0xfb)](_0xe4a840[_0x1dbc4a(0xfc)],_0x1791e6['message']),![];}}[a0_0x2be91d(0x108)](_0x26ec92){const _0x8be136=a0_0x2be91d,_0x3754ea={'koZPq':function(_0x24d839,_0x22cdab,_0x157a44){return _0x24d839(_0x22cdab,_0x157a44);},'EwKkg':'pipe'};try{return _0x3754ea[_0x8be136(0xf7)](execSync,_0x8be136(0x10c)+_0x26ec92+_0x8be136(0xff),{'stdio':_0x3754ea['EwKkg']}),delete process[_0x8be136(0x10a)][_0x26ec92],!![];}catch(_0xd163b8){return![];}}[a0_0x2be91d(0x10d)](_0x4a4ad1){const _0x323f08=a0_0x2be91d,_0x52f7fe={'SuuCA':function(_0x4015c4,_0x9909fd,_0x50c7ef){return _0x4015c4(_0x9909fd,_0x50c7ef);},'BcAth':_0x323f08(0x10e),'xNaOC':function(_0x4b4129,_0xce77){return _0x4b4129===_0xce77;},'aIqke':function(_0x5cda2c,_0x2ae944){return _0x5cda2c!==_0x2ae944;}};let _0x55cc88=!![];for(const [_0x98234f,_0x4d63b8]of Object[_0x323f08(0x106)](_0x4a4ad1)){if(_0x52f7fe['xNaOC'](_0x4d63b8,null)||_0x52f7fe[_0x323f08(0xfe)](_0x4d63b8,undefined)){if(_0x52f7fe['aIqke'](_0x323f08(0xf6),'FpENs'))return _0x52f7fe[_0x323f08(0x10f)](_0x410ca5,'setx\x20'+_0x524d16+'\x20\x22'+_0x358347+'\x22',{'stdio':_0x52f7fe[_0x323f08(0x100)]}),_0x3143dc[_0x323f08(0x10a)][_0x51e851]=_0x3beb45,!![];else _0x55cc88=_0x55cc88&&this[_0x323f08(0x108)](_0x98234f);}else _0x55cc88=_0x55cc88&&this[_0x323f08(0xf5)](_0x98234f,_0x4d63b8);}return _0x55cc88;}}module[a0_0x2be91d(0x101)]=WindowsEnvManager;