devicely 2.3.0 → 2.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/devicely.js +1 -1
- package/config/devices.conf +1 -1
- package/lib/advanced-logger.js +1 -0
- package/lib/aiProviders.js +1 -592
- package/lib/aiProviders.js.strategic-backup +657 -0
- package/lib/aiProvidersConfig.js +1 -171
- package/lib/androidDeviceDetection.js +1 -1
- package/lib/appMappings.js +1 -1
- package/lib/cognitiveLocator.js +1 -1
- package/lib/commanderService.js +1 -1
- package/lib/deviceDetection.js +1 -1
- package/lib/devices.js +1 -1
- package/lib/devices.js.strategic-backup +57 -0
- package/lib/doctor.js +1 -1
- package/lib/encryption.js +1 -1
- package/lib/encryption.js.strategic-backup +61 -0
- package/lib/executor.js +1 -1
- package/lib/executor.js.strategic-backup +107 -0
- package/lib/frontend/asset-manifest.json +3 -3
- package/lib/frontend/index.html +1 -1
- package/lib/frontend/static/js/main.6878ba82.js +3 -0
- package/lib/hybridAI.js +1 -0
- package/lib/intelligentLocatorService.js +1 -0
- package/lib/lightweightAI.js +1 -0
- package/lib/localBuiltInAI.js +1 -0
- package/lib/localBuiltInAI_backup.js +1 -0
- package/lib/localBuiltInAI_simple.js +1 -0
- package/lib/locatorStrategy.js +1 -1
- package/lib/logger-demo.js +2 -0
- package/lib/logger-integration-examples.js +102 -0
- package/lib/logger.js +1 -1
- package/lib/package.json +2 -0
- package/lib/quick-start-logger.js +2 -0
- package/lib/scriptLoader.js +1 -1
- package/lib/server.js +1 -1
- package/lib/server.js.strategic-backup +6298 -0
- package/lib/tensorflowAI.js +1 -0
- package/lib/tensorflowAI.js.strategic-backup +717 -0
- package/lib/tinyAI.js +1 -0
- package/lib/universalSessionManager.js +1 -0
- package/package.json +5 -2
- package/scripts/shell/android_device_control.enc +1 -1
- package/scripts/shell/connect_ios_usb_multi_final.enc +1 -1
- package/scripts/shell/connect_ios_wireless_multi_final.enc +1 -1
- package/lib/aiProviders_new.js +0 -70
- package/lib/frontend/static/js/main.310a0af8.js +0 -3
- /package/lib/frontend/static/js/{main.310a0af8.js.LICENSE.txt → main.6878ba82.js.LICENSE.txt} +0 -0
package/lib/executor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x79392d=_0x575d;(function(_0x5ede47,_0x626207){const _0xb79be8=_0x575d,_0x1ff2ab=_0x5ede47();while(!![]){try{const _0x90c81f=-parseInt(_0xb79be8(0x168))/0x1*(parseInt(_0xb79be8(0x1b3))/0x2)+parseInt(_0xb79be8(0x1a9))/0x3+parseInt(_0xb79be8(0x193))/0x4+parseInt(_0xb79be8(0x1b1))/0x5*(-parseInt(_0xb79be8(0x175))/0x6)+parseInt(_0xb79be8(0x1ba))/0x7*(parseInt(_0xb79be8(0x179))/0x8)+-parseInt(_0xb79be8(0x16d))/0x9*(parseInt(_0xb79be8(0x170))/0xa)+parseInt(_0xb79be8(0x172))/0xb;if(_0x90c81f===_0x626207)break;else _0x1ff2ab['push'](_0x1ff2ab['shift']());}catch(_0x155dc5){_0x1ff2ab['push'](_0x1ff2ab['shift']());}}}(_0x3e87,0x28bec));function _0x575d(_0x5a3386,_0x530878){_0x5a3386=_0x5a3386-0x15b;const _0x3e87cc=_0x3e87();let _0x575d50=_0x3e87cc[_0x5a3386];if(_0x575d['cSFzpL']===undefined){var _0x36f446=function(_0x4a7be7){const _0x22266e='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3b5040='',_0x4fe314='';for(let _0x55aea8=0x0,_0x2e8afa,_0x4a72a4,_0x5ce56e=0x0;_0x4a72a4=_0x4a7be7['charAt'](_0x5ce56e++);~_0x4a72a4&&(_0x2e8afa=_0x55aea8%0x4?_0x2e8afa*0x40+_0x4a72a4:_0x4a72a4,_0x55aea8++%0x4)?_0x3b5040+=String['fromCharCode'](0xff&_0x2e8afa>>(-0x2*_0x55aea8&0x6)):0x0){_0x4a72a4=_0x22266e['indexOf'](_0x4a72a4);}for(let _0x509e0b=0x0,_0x562596=_0x3b5040['length'];_0x509e0b<_0x562596;_0x509e0b++){_0x4fe314+='%'+('00'+_0x3b5040['charCodeAt'](_0x509e0b)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4fe314);};_0x575d['bxqiwb']=_0x36f446,_0x575d['NNVLCj']={},_0x575d['cSFzpL']=!![];}const _0x57b7ce=_0x3e87cc[0x0],_0x868e63=_0x5a3386+_0x57b7ce,_0x926662=_0x575d['NNVLCj'][_0x868e63];return!_0x926662?(_0x575d50=_0x575d['bxqiwb'](_0x575d50),_0x575d['NNVLCj'][_0x868e63]=_0x575d50):_0x575d50=_0x926662,_0x575d50;}const {spawn}=require(_0x79392d(0x15d)),path=require(_0x79392d(0x19f)),chalk=require(_0x79392d(0x16f));let discoverAllDevices;try{({discoverAllDevices}=require(_0x79392d(0x15e)));}catch(_0x29a318){({discoverAllDevices}=require(_0x79392d(0x1ac)));}async function executeCommand(_0x14c396,_0x330d91={}){const _0x443ccf=_0x79392d,_0x1d9b27={'nzENE':function(_0x34f16a,_0x13851e){return _0x34f16a(_0x13851e);},'psDuD':function(_0x361fa4,_0x56a0e1){return _0x361fa4(_0x56a0e1);},'yPKwq':_0x443ccf(0x1ac),'kIKHy':function(_0x1c590d,_0x4a0aca){return _0x1c590d!==_0x4a0aca;},'jjWxm':_0x443ccf(0x17a),'qbrNU':_0x443ccf(0x1b6),'mGKKr':function(_0x9b5beb,_0x1c0b15){return _0x9b5beb!==_0x1c0b15;},'wDjTT':_0x443ccf(0x173),'zdBQy':function(_0x588733,_0x8ef847){return _0x588733===_0x8ef847;},'ZKuZL':'sIryJ','pTumV':_0x443ccf(0x178),'CNxaH':function(_0x33b349){return _0x33b349();},'nmakE':_0x443ccf(0x18f),'GSREV':_0x443ccf(0x1b5),'tXriT':'close','owTRS':function(_0x369a3e){return _0x369a3e();},'BEIxp':'\x0a❌\x20No\x20devices\x20found','TwHCF':_0x443ccf(0x1aa),'pXPoM':_0x443ccf(0x183),'ABPtq':function(_0x3bc6fa,_0x7871e4){return _0x3bc6fa===_0x7871e4;},'lmFHx':_0x443ccf(0x176),'otvhQ':function(_0x44cb24,_0x4d4401){return _0x44cb24===_0x4d4401;},'voqSw':_0x443ccf(0x164),'dEDav':_0x443ccf(0x1b7),'KrHFI':_0x443ccf(0x1b0),'jbIHG':'connect_ios_wireless_multi_final.sh','rBrVw':function(_0x39a267,_0x11fde4){return _0x39a267===_0x11fde4;},'UCCLH':_0x443ccf(0x18c),'RmInf':_0x443ccf(0x171),'zAedX':function(_0x2923f0,_0x36841a){return _0x2923f0===_0x36841a;},'UIupc':function(_0x212ad2,_0x4c0714){return _0x212ad2!==_0x4c0714;},'qBBOh':_0x443ccf(0x1a0),'WuMSr':'SwwFP','IKWyI':function(_0x1de305,_0x313789,_0x152fc8,_0x2a605a){return _0x1de305(_0x313789,_0x152fc8,_0x2a605a);},'UDShu':_0x443ccf(0x186)},_0x3a01d4=await _0x1d9b27[_0x443ccf(0x166)](discoverAllDevices);if(!_0x3a01d4||_0x1d9b27['zdBQy'](_0x3a01d4[_0x443ccf(0x1ad)],0x0)){console[_0x443ccf(0x197)](chalk[_0x443ccf(0x18a)](_0x1d9b27['BEIxp']));return;}let _0x2cbf2e=_0x3a01d4['filter'](_0x298676=>_0x298676[_0x443ccf(0x18d)]===_0x443ccf(0x182));if(_0x330d91[_0x443ccf(0x1a1)]){_0x2cbf2e=_0x3a01d4[_0x443ccf(0x15c)](_0x20adfa=>_0x20adfa[_0x443ccf(0x163)]===_0x330d91['device']&&_0x20adfa[_0x443ccf(0x18d)]===_0x443ccf(0x182));if(_0x1d9b27[_0x443ccf(0x19b)](_0x2cbf2e['length'],0x0)){console[_0x443ccf(0x197)](chalk[_0x443ccf(0x18a)](_0x443ccf(0x19a)+_0x330d91[_0x443ccf(0x1a1)]+_0x443ccf(0x188)));return;}}if(_0x1d9b27[_0x443ccf(0x19b)](_0x2cbf2e[_0x443ccf(0x1ad)],0x0)){console[_0x443ccf(0x197)](chalk[_0x443ccf(0x1b8)](_0x1d9b27['TwHCF']));return;}console[_0x443ccf(0x197)](chalk[_0x443ccf(0x1a8)](_0x443ccf(0x1a2)+_0x2cbf2e[_0x443ccf(0x1ad)]+_0x443ccf(0x190))),_0x2cbf2e[_0x443ccf(0x1ab)](_0x4429ef=>console[_0x443ccf(0x197)](_0x443ccf(0x1ae)+_0x4429ef[_0x443ccf(0x163)])),console[_0x443ccf(0x197)]('');const _0x29537a=path['join'](__dirname,_0x1d9b27['pXPoM']);for(const _0x502ab6 of _0x2cbf2e){const _0xd728ae=_0x502ab6[_0x443ccf(0x189)],_0xc9aa43=_0x502ab6[_0x443ccf(0x15f)];let _0x24f820;if(_0x1d9b27['ABPtq'](_0xd728ae,_0x1d9b27[_0x443ccf(0x160)])&&_0x1d9b27[_0x443ccf(0x19c)](_0xc9aa43,_0x1d9b27[_0x443ccf(0x1b9)])){if(_0x1d9b27['kIKHy'](_0x1d9b27['dEDav'],_0x1d9b27['dEDav'])){const _0x47bf14=_0x55b781[_0x443ccf(0x184)]()[_0x443ccf(0x167)]('\x0a')['filter'](_0x53a410=>_0x53a410['trim']());_0x47bf14[_0x443ccf(0x1ab)](_0x39918d=>{const _0x1344e6=_0x443ccf;_0x28f03c[_0x1344e6(0x197)](_0x20b728[_0x1344e6(0x18a)]('\x20\x20'+_0x39918d));});}else _0x24f820=_0x443ccf(0x18b);}else{if(_0x1d9b27[_0x443ccf(0x198)](_0xd728ae,_0x1d9b27[_0x443ccf(0x160)])&&_0xc9aa43===_0x1d9b27['KrHFI'])_0x24f820=_0x1d9b27[_0x443ccf(0x191)];else{if(_0x1d9b27[_0x443ccf(0x1bc)](_0xd728ae,_0x1d9b27[_0x443ccf(0x174)])&&_0xc9aa43===_0x1d9b27[_0x443ccf(0x1b9)])_0x24f820=_0x1d9b27[_0x443ccf(0x15b)];else{if(_0x1d9b27['zAedX'](_0xd728ae,_0x1d9b27[_0x443ccf(0x174)])&&_0x1d9b27[_0x443ccf(0x19b)](_0xc9aa43,'wireless'))_0x1d9b27[_0x443ccf(0x17f)](_0x1d9b27[_0x443ccf(0x194)],_0x1d9b27['WuMSr'])?_0x24f820=_0x1d9b27[_0x443ccf(0x16e)]:{discoverAllDevices:_0x55aea8}=iBAMwP[_0x443ccf(0x17b)](_0x2e8afa,_0x443ccf(0x15e));else{console['log'](chalk[_0x443ccf(0x1b8)](_0x443ccf(0x1af)+_0xd728ae+'-'+_0xc9aa43));continue;}}}}const _0x3deeb7=path[_0x443ccf(0x1a5)](_0x29537a,_0x24f820);console[_0x443ccf(0x197)](chalk[_0x443ccf(0x16c)]('['+_0x502ab6[_0x443ccf(0x163)]+_0x443ccf(0x195)));const _0x38787a={};_0x38787a[_0x443ccf(0x1a7)]='pipe';const _0x564642=_0x1d9b27[_0x443ccf(0x1bb)](spawn,_0x3deeb7,['-d',_0x502ab6[_0x443ccf(0x163)],..._0x14c396['split']('\x20')],_0x38787a);_0x564642[_0x443ccf(0x187)]['on'](_0x1d9b27[_0x443ccf(0x1a6)],_0x4f160b=>{const _0x5bff0f=_0x443ccf,_0x42f76e=_0x4f160b['toString']()[_0x5bff0f(0x167)]('\x0a')[_0x5bff0f(0x15c)](_0x16bea2=>_0x16bea2['trim']());_0x42f76e[_0x5bff0f(0x1ab)](_0x4a22d3=>{const _0x3dfa0d=_0x5bff0f;console[_0x3dfa0d(0x197)](chalk['gray']('\x20\x20'+_0x4a22d3));});}),_0x564642['stderr']['on'](_0x443ccf(0x186),_0x93118e=>{const _0x3a4961=_0x443ccf,_0x3be922={'QKASE':function(_0x313b2f,_0x117f51){const _0x21c6cf=_0x575d;return _0x1d9b27[_0x21c6cf(0x17c)](_0x313b2f,_0x117f51);},'RBPoi':_0x1d9b27['yPKwq']};if(_0x1d9b27[_0x3a4961(0x1b4)](_0x1d9b27[_0x3a4961(0x16a)],_0x1d9b27[_0x3a4961(0x16a)]))({discoverAllDevices:_0x509e0b}=KuZvNF[_0x3a4961(0x17e)](_0x562596,KuZvNF[_0x3a4961(0x16b)]));else{const _0x1cb694=_0x93118e[_0x3a4961(0x184)]()[_0x3a4961(0x167)]('\x0a')[_0x3a4961(0x15c)](_0x6628e9=>_0x6628e9[_0x3a4961(0x199)]());_0x1cb694[_0x3a4961(0x1ab)](_0x519d32=>{const _0x4bb3ed=_0x3a4961;console[_0x4bb3ed(0x197)](chalk[_0x4bb3ed(0x18a)]('\x20\x20'+_0x519d32));});}}),await new Promise(_0x5eeb39=>{const _0x28a77a=_0x443ccf,_0x2c4775={'urHwU':_0x1d9b27[_0x28a77a(0x16e)],'XYozn':function(_0x5b5952,_0x1b2d9c){const _0x12974b=_0x28a77a;return _0x1d9b27[_0x12974b(0x1a3)](_0x5b5952,_0x1b2d9c);},'DONvp':_0x1d9b27[_0x28a77a(0x177)],'oJFDu':function(_0x2c87a2,_0x25607f){const _0x2695d1=_0x28a77a;return _0x1d9b27[_0x2695d1(0x19b)](_0x2c87a2,_0x25607f);},'WmqYH':_0x1d9b27[_0x28a77a(0x19e)],'CQujs':_0x1d9b27['pTumV'],'kBSqK':function(_0x544e77){const _0x233107=_0x28a77a;return _0x1d9b27[_0x233107(0x17d)](_0x544e77);}};if(_0x1d9b27[_0x28a77a(0x1b4)](_0x1d9b27[_0x28a77a(0x161)],_0x1d9b27['GSREV']))_0x564642['on'](_0x1d9b27['tXriT'],_0x5e5e3f=>{const _0x122ff2=_0x28a77a;_0x2c4775[_0x122ff2(0x1a4)](_0x2c4775[_0x122ff2(0x181)],'uRcXx')?(_0x5e5e3f===0x0?console[_0x122ff2(0x197)](chalk[_0x122ff2(0x192)]('['+_0x502ab6[_0x122ff2(0x163)]+_0x122ff2(0x196))):_0x2c4775[_0x122ff2(0x165)](_0x2c4775[_0x122ff2(0x162)],_0x2c4775[_0x122ff2(0x185)])?_0x588b9e['log'](_0x1c4704[_0x122ff2(0x192)]('['+_0x5118dc[_0x122ff2(0x163)]+_0x122ff2(0x196))):console['log'](chalk['red']('['+_0x502ab6['name']+_0x122ff2(0x169)+_0x5e5e3f+')\x0a')),_0x2c4775[_0x122ff2(0x18e)](_0x5eeb39)):_0x267eb2=uoDCbJ[_0x122ff2(0x180)];});else{_0x2174ab[_0x28a77a(0x197)](_0x1222bc[_0x28a77a(0x18a)](_0x28a77a(0x19a)+_0x47eda1[_0x28a77a(0x1a1)]+_0x28a77a(0x188)));return;}});}}const _0x36a3d4={};function _0x3e87(){const _0x21bf03=['y2HPBgrFChjVy2vZCW','lI9KzxzPy2vezxrLy3rPB24','DhLWzq','Bg1gshG','BM1HA0u','v21XwuG','BMfTzq','DxnI','B0Pgrhu','B3DuuLm','C3bSAxq','mJm4swvnENHr','xsdINyWGrMfPBgvKicHLEgL0ignVzgu6ia','AMPxEg0','uKjqB2K','yMX1zq','nJnTyu55D2O','CwjYtLu','y2HHBgS','ndu3mZqWrxvhv1HW','y29UBMvJDf9HBMrYB2LKx3vZyL9TDwX0Av9MAw5HBc5ZAa','ndy1ntm2nwfzuwLMEq','C1fkvMq','vundteG','mtHrBgXzEve','Aw9Z','D0rQvfq','DK1RswK','mtCYmZK2mfPuz3b2Ea','qKfID1q','BNPftKu','ChneDuq','q054yuG','uuTbu0u','vuL1Cgm','DxjiD1u','re9oDNa','B25SAw5L','lI4VlI4VC2nYAxb0CY9ZAgvSBa','Dg9tDhjPBMC','q1f1ANm','zgf0yq','C3rKB3v0','iIbUB3qGzM91BMqGB3iGB2zMBgLUzq','CgXHDgzVCM0','CMvK','y29UBMvJDf9PB3nFDxnIx211BhrPx2zPBMfSlNnO','yw5KCM9Pza','C3rHDhvZ','A0jtCuS','EvvnBKe','igrLDMLJzsHZktO','AMjjseC','z3jLzw4','mteXnZG4me5SBhfoCq','Cujct2G','xsbsDw5UAw5NignVBw1HBMqUlI4','xsdINiuGu3vJy2vZCWO','Bg9N','qujqDhe','DhjPBq','cUkDJcbezxzPy2uGiG','EMrcuxK','B3r2Afe','zxHWB3j0CW','wKT1wKW','Cgf0Aa','u1buBha','zgv2AwnL','cKv4zwn1DgLUzYbVBIa','BuDls3i','wfLVEM4','AM9PBG','vurtAhu','C3rKAw8','y3LHBG','oda3owrzCvnJCG','cUkAOo+4JYaGtM8GB25SAw5LigrLDMLJzxmGzM91BMq','zM9YrwfJAa','lI4VlI4Vzgv2AwnLrgv0zwn0Aw9U','BgvUz3rO','icdIGkiG','4PQG77IpicbvBNn1ChbVCNrLzcbKzxzPy2uGDhLWztOG','D2LYzwXLC3m','mJa4ntK1uu9ZAM52','zxHLy3v0zunVBw1HBMq','mJu5ngfzvhHLzq','A0LlshK','AevAC1e','y29UBMvJDf9HBMrYB2LKx3DPCMvSzxnZx211BhrPx2zPBMfSlNnO','DevRDgG','EwvSBg93','DM9Xu3C','n0X1EfbZCa','suTxEuK','CKjYvNC','uM1jBMy','zMLSDgvY'];_0x3e87=function(){return _0x21bf03;};return _0x3e87();}_0x36a3d4[_0x79392d(0x1b2)]=executeCommand,module[_0x79392d(0x19d)]=_0x36a3d4;
|
|
1
|
+
const _0x271b6d=_0x306f;function _0x306f(_0x58ecfb,_0x6b28ae){_0x58ecfb=_0x58ecfb-0x189;const _0x411bac=_0x411b();let _0x306f4b=_0x411bac[_0x58ecfb];if(_0x306f['StVmtJ']===undefined){var _0x22b158=function(_0x50b62d){const _0x566b96='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x43a9e8='',_0x3e0ebb='';for(let _0xf96bd0=0x0,_0x3085db,_0x1c76a0,_0xa9cd65=0x0;_0x1c76a0=_0x50b62d['charAt'](_0xa9cd65++);~_0x1c76a0&&(_0x3085db=_0xf96bd0%0x4?_0x3085db*0x40+_0x1c76a0:_0x1c76a0,_0xf96bd0++%0x4)?_0x43a9e8+=String['fromCharCode'](0xff&_0x3085db>>(-0x2*_0xf96bd0&0x6)):0x0){_0x1c76a0=_0x566b96['indexOf'](_0x1c76a0);}for(let _0x2d4763=0x0,_0x25da54=_0x43a9e8['length'];_0x2d4763<_0x25da54;_0x2d4763++){_0x3e0ebb+='%'+('00'+_0x43a9e8['charCodeAt'](_0x2d4763)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3e0ebb);};_0x306f['WtJMTs']=_0x22b158,_0x306f['jRsSTD']={},_0x306f['StVmtJ']=!![];}const _0x132be9=_0x411bac[0x0],_0x5aa57d=_0x58ecfb+_0x132be9,_0x1e6119=_0x306f['jRsSTD'][_0x5aa57d];return!_0x1e6119?(_0x306f4b=_0x306f['WtJMTs'](_0x306f4b),_0x306f['jRsSTD'][_0x5aa57d]=_0x306f4b):_0x306f4b=_0x1e6119,_0x306f4b;}(function(_0x413c01,_0x53f6cb){const _0x35b832=_0x306f,_0x11829a=_0x413c01();while(!![]){try{const _0xa61953=parseInt(_0x35b832(0x19a))/0x1*(parseInt(_0x35b832(0x1cd))/0x2)+parseInt(_0x35b832(0x1ba))/0x3*(-parseInt(_0x35b832(0x1bb))/0x4)+parseInt(_0x35b832(0x1ac))/0x5*(parseInt(_0x35b832(0x1af))/0x6)+parseInt(_0x35b832(0x18f))/0x7*(parseInt(_0x35b832(0x19b))/0x8)+parseInt(_0x35b832(0x195))/0x9+-parseInt(_0x35b832(0x1c8))/0xa+parseInt(_0x35b832(0x1ae))/0xb*(parseInt(_0x35b832(0x1d0))/0xc);if(_0xa61953===_0x53f6cb)break;else _0x11829a['push'](_0x11829a['shift']());}catch(_0x4b6048){_0x11829a['push'](_0x11829a['shift']());}}}(_0x411b,0xe1a0e));const Logger=require(_0x271b6d(0x19e)),logger=new Logger('Executor'),{spawn}=require(_0x271b6d(0x1ca)),path=require(_0x271b6d(0x1c3)),chalk=require('chalk');let discoverAllDevices;try{({discoverAllDevices}=require('./deviceDetection'));}catch(_0x550ef2){({discoverAllDevices}=require(_0x271b6d(0x1ce)));}function _0x411b(){const _0x3da29c=['z1rNBgW','EgDxEeK','oda5mJuZovvpyNPAEq','z3jLzw4','yw5KCM9Pza','C3rKB3v0','y29UBMvJDf9HBMrYB2LKx3vZyL9TDwX0Av9MAw5HBc5ZAa','mJK2nuzjAwXguW','mJCYrgHNquHT','q0PsEMy','cUkAOo+4JYaGtM8GB25SAw5LigrLDMLJzxmGzM91BMq','lI9SB2DNzxi','zfLbyM0','terOvum','cKv4zwn1DgLUzYbVBIa','lI4VlI4VC2nYAxb0CY9ZAgvSBa','vxfpu20','iIbUB3qGzM91BMqGB3iGB2zMBgLUzq','Aw5MBW','C3rKzxjY','y29UBMvJDf9PB3nFDxnIx211BhrPx2zPBMfSlNnO','sNf4D2e','quTluxC','cUkDJcboBYbKzxzPy2vZigzVDw5K','vhDQyuS','mJa1vefVEKzY','Ce1Rr0C','mtG4nde5zNHbqMjp','mJm4nZrerM55uvC','C1bqrNu','DhjPBq','v3vqt1e','zgv2AwnL','z1PYuNy','u0HJvhq','y2XVC2u','Aw9Z','wKHJExK','yuf1Eui','m0TXwMrQBa','mZuWnZeYnhHQvwjQEG','CLPvvgC','BMfTzq','CMvK','rwTpDLm','z3jHEq','Dg9tDhjPBMC','BgvUz3rO','Cgf0Aa','B25SAw5L','vMLTB04','yuX0s3u','AM9PBG','nJuWnJuWmhnRuuHjEG','rK1yC2i','y2HPBgrFChjVy2vZCW','xsdINiuGu3vJy2vZCWO','4PQG77IpicbvBNn1ChbVCNrLzcbKzxzPy2uGDhLWztOG','mZyWtw1LvKTx','lI4VlI4Vzgv2AwnLrgv0zwn0Aw9U','zM9YrwfJAa','odrACvnuswG','xsbsDw5UAw5NignVBw1HBMqUlI4','ywrlshm','wNryyuC','y29UBMvJDf9PB3nFD2LYzwXLC3nFBxvSDgLFzMLUywWUC2G','tgPvzwC','zgTXvLe','zMLSDgvY','DxnI','icdIGkiG','D2LYzwXLC3m','EwvSBg93','yMX1zq','igrLDMLJzsHZktO','C3bSAxq','r2D2zhG','B25du1O','cUkDJcbezxzPy2uGiG','CxzPB2W','mtuXndy2DhvOuw9m','u3HSrue','ug1tz2q','C3rHDhvZ'];_0x411b=function(){return _0x3da29c;};return _0x411b();}async function executeCommand(_0x1ed520,_0x546435={}){const _0xa11832=_0x271b6d,_0x2dd492={'NXfqV':function(_0x4478be,_0x576ec9){return _0x4478be(_0x576ec9);},'dkqVQ':'../../deviceDetection','qviol':_0xa11832(0x199),'pqxNE':function(_0x59dacc,_0x13ac65){return _0x59dacc!==_0x13ac65;},'zyIvL':_0xa11832(0x1bf),'ZtXaG':_0xa11832(0x1bc),'FMXsb':'yEcTM','TwjaK':function(_0x55c368,_0x3695ec){return _0x55c368===_0x3695ec;},'PmSgd':'KHOkM','pMkGG':_0xa11832(0x1b0),'GWEmD':function(_0x3ca6a4){return _0x3ca6a4();},'cakOg':_0xa11832(0x1aa),'JCqxe':function(_0x432c42,_0x56fa1c){return _0x432c42===_0x56fa1c;},'gZrRv':_0xa11832(0x1b8),'nTfLL':_0xa11832(0x19d),'SHcTt':_0xa11832(0x1a2),'CJRzf':function(_0x2b5742,_0x43f39f){return _0x2b5742===_0x43f39f;},'AKKQw':_0xa11832(0x194),'UqOSm':function(_0x338953,_0xbde391){return _0x338953===_0xbde391;},'aAuyB':_0xa11832(0x1d8),'aLtKu':_0xa11832(0x1b7),'RWSNY':_0xa11832(0x1da),'adKHs':_0xa11832(0x1d4),'onCSZ':_0xa11832(0x197),'ygcCQ':function(_0x253530,_0x3fc28b){return _0x253530===_0x3fc28b;},'WuPOQ':_0xa11832(0x1c5),'dLBYA':'QCsYC','LjUeg':'connect_android_wireless_multi_final.sh','Jqxwa':function(_0x2dc325,_0x2048b6,_0x5ccb69,_0xedaa17){return _0x2dc325(_0x2048b6,_0x5ccb69,_0xedaa17);},'gTgll':'pipe','Ggvdx':'data'},_0x5b0088=await discoverAllDevices();if(!_0x5b0088||_0x2dd492['TwjaK'](_0x5b0088[_0xa11832(0x1c2)],0x0)){logger[_0xa11832(0x1a5)](chalk[_0xa11832(0x1be)](_0x2dd492['cakOg']));;return;}let _0x1553cf=_0x5b0088[_0xa11832(0x1d7)](_0x84beda=>_0x84beda[_0xa11832(0x192)]==='online');if(_0x546435[_0xa11832(0x1b3)]){_0x1553cf=_0x5b0088[_0xa11832(0x1d7)](_0x537aa5=>_0x537aa5[_0xa11832(0x1bd)]===_0x546435[_0xa11832(0x1b3)]&&_0x537aa5[_0xa11832(0x192)]===_0xa11832(0x1c4));if(_0x1553cf[_0xa11832(0x1c2)]===0x0){if(_0x2dd492['JCqxe'](_0x2dd492[_0xa11832(0x1b4)],_0x2dd492[_0xa11832(0x1b4)])){logger[_0xa11832(0x1a5)](chalk[_0xa11832(0x1be)](_0xa11832(0x18d)+_0x546435[_0xa11832(0x1b3)]+_0xa11832(0x1a4)));;return;}else({discoverAllDevices:_0x2d4763}=CMzqLA['NXfqV'](_0x25da54,CMzqLA[_0xa11832(0x1d6)]));}}if(_0x1553cf[_0xa11832(0x1c2)]===0x0){logger[_0xa11832(0x1a5)](chalk[_0xa11832(0x1db)](_0x2dd492['nTfLL']));;return;}logger['info'](chalk['cyan'](_0xa11832(0x1a1)+_0x1553cf[_0xa11832(0x1c2)]+_0xa11832(0x189)));;_0x1553cf[_0xa11832(0x1cf)](_0x13a133=>logger[_0xa11832(0x1a5)](_0xa11832(0x1d9)+_0x13a133[_0xa11832(0x1bd)]));;logger['info']('');;const _0x58b350=path[_0xa11832(0x1c7)](__dirname,_0x2dd492[_0xa11832(0x1b5)]);for(const _0x3abb4e of _0x1553cf){if(_0x2dd492[_0xa11832(0x19c)](_0x2dd492[_0xa11832(0x1a9)],_0xa11832(0x194))){const _0x47a6e3=_0x3abb4e['platform'],_0xd34ebc=_0x3abb4e['type'];let _0x234545;if(_0x2dd492[_0xa11832(0x1a3)](_0x47a6e3,_0xa11832(0x1b7))&&_0xd34ebc===_0x2dd492[_0xa11832(0x1b9)])_0x234545=_0xa11832(0x1a7);else{if(_0x47a6e3===_0x2dd492[_0xa11832(0x1c6)]&&_0x2dd492['TwjaK'](_0xd34ebc,_0x2dd492['RWSNY']))_0x234545=_0x2dd492[_0xa11832(0x1d2)];else{if(_0x2dd492[_0xa11832(0x19c)](_0x47a6e3,_0x2dd492[_0xa11832(0x18c)])&&_0x2dd492['ygcCQ'](_0xd34ebc,_0x2dd492['aAuyB']))_0x234545=_0x2dd492[_0xa11832(0x18e)];else{if(_0x2dd492[_0xa11832(0x1a3)](_0x47a6e3,_0x2dd492['onCSZ'])&&_0x2dd492[_0xa11832(0x1ab)](_0xd34ebc,_0x2dd492['RWSNY']))_0x2dd492['ygcCQ'](_0x2dd492[_0xa11832(0x1b2)],_0x2dd492['dLBYA'])?_0x926d13=_0x2dd492[_0xa11832(0x18e)]:_0x234545=_0x2dd492[_0xa11832(0x1d5)];else{logger[_0xa11832(0x1a5)](chalk['yellow'](_0xa11832(0x1cc)+_0x47a6e3+'-'+_0xd34ebc));;continue;}}}}const _0x3e48b0=path[_0xa11832(0x1c7)](_0x58b350,_0x234545);logger[_0xa11832(0x1a5)](chalk[_0xa11832(0x1dc)]('['+_0x3abb4e['name']+_0xa11832(0x1d1)));;const _0x3d10e5=_0x2dd492[_0xa11832(0x1a8)](spawn,_0x3e48b0,['-d',_0x3abb4e[_0xa11832(0x1bd)],..._0x1ed520[_0xa11832(0x18a)]('\x20')],{'stdio':_0x2dd492[_0xa11832(0x193)]});_0x3d10e5[_0xa11832(0x198)]['on']('data',_0x1decf3=>{const _0x27085b=_0xa11832,_0x127ff5=_0x1decf3['toString']()[_0x27085b(0x18a)]('\x0a')['filter'](_0x2eec59=>_0x2eec59[_0x27085b(0x1b1)]());_0x127ff5[_0x27085b(0x1cf)](_0x5952a6=>{const _0x1df74a=_0x27085b;if(_0x2dd492['pqxNE'](_0x1df74a(0x19f),'dYAbm')){_0x282774['info'](_0x5c72ab[_0x1df74a(0x1be)](_0x1df74a(0x1aa)));;return;}else{logger[_0x1df74a(0x1a5)](chalk['gray']('\x20\x20'+_0x5952a6));;}});}),_0x3d10e5[_0xa11832(0x1a6)]['on'](_0x2dd492[_0xa11832(0x18b)],_0x424232=>{const _0x17817e=_0xa11832,_0x3a32d4={};_0x3a32d4[_0x17817e(0x190)]=_0x17817e(0x1d4);const _0x184cd0=_0x3a32d4;if(_0x17817e(0x1bc)!==_0x2dd492[_0x17817e(0x1d3)])_0x1b6ef3=hYanpu[_0x17817e(0x190)];else{const _0x12ba53=_0x424232[_0x17817e(0x1c1)]()[_0x17817e(0x18a)]('\x0a')[_0x17817e(0x1d7)](_0x1dc8be=>_0x1dc8be[_0x17817e(0x1b1)]());_0x12ba53[_0x17817e(0x1cf)](_0x2addd6=>{const _0x41a643=_0x17817e;if(_0x2dd492['zyIvL']===_0x41a643(0x1a0)){const _0xdc8fb=_0x29e60c[_0x41a643(0x1c1)]()[_0x41a643(0x18a)]('\x0a')[_0x41a643(0x1d7)](_0x56978f=>_0x56978f[_0x41a643(0x1b1)]());_0xdc8fb[_0x41a643(0x1cf)](_0x12d35a=>{const _0x300b1b=_0x41a643;_0x355945['info'](_0x5e847b[_0x300b1b(0x1be)]('\x20\x20'+_0x12d35a));;});}else{logger[_0x41a643(0x1a5)](chalk[_0x41a643(0x1be)]('\x20\x20'+_0x2addd6));;}});}}),await new Promise(_0x40c493=>{const _0x51992b=_0xa11832;_0x3d10e5['on'](_0x51992b(0x1b6),_0x28d837=>{const _0x465df=_0x51992b;if(_0x2dd492['FMXsb']===_0x2dd492[_0x465df(0x1c9)]){if(_0x28d837===0x0){logger[_0x465df(0x1a5)](chalk['green']('['+_0x3abb4e[_0x465df(0x1bd)]+_0x465df(0x1cb)));;}else{if(_0x2dd492['TwjaK'](_0x2dd492[_0x465df(0x191)],_0x2dd492[_0x465df(0x1ad)])){const _0x2ecc73=_0xbd28f2[_0x465df(0x1c1)]()[_0x465df(0x18a)]('\x0a')[_0x465df(0x1d7)](_0x5b4c7f=>_0x5b4c7f[_0x465df(0x1b1)]());_0x2ecc73[_0x465df(0x1cf)](_0x58aa51=>{const _0x2dab28=_0x465df;_0x27a672[_0x2dab28(0x1a5)](_0x117a38[_0x2dab28(0x1c0)]('\x20\x20'+_0x58aa51));;});}else{logger[_0x465df(0x1a5)](chalk['red']('['+_0x3abb4e[_0x465df(0x1bd)]+']\x20❌\x20Failed\x20(exit\x20code:\x20'+_0x28d837+')\x0a'));;}}_0x2dd492['GWEmD'](_0x40c493);}else _0xd2b80b=_0x465df(0x1a7);});});}else _0x24fc23['on'](_0xa11832(0x1b6),_0x2da742=>{const _0x4c3086=_0xa11832;if(_0x2da742===0x0){_0x31353f['info'](_0x45241b[_0x4c3086(0x196)]('['+_0x36c4b4[_0x4c3086(0x1bd)]+_0x4c3086(0x1cb)));;}else{_0x257c3a[_0x4c3086(0x1a5)](_0x514e61[_0x4c3086(0x1be)]('['+_0x3a6302['name']+']\x20❌\x20Failed\x20(exit\x20code:\x20'+_0x2da742+')\x0a'));;}_0x4f7d26();});}}const _0x19931b={};_0x19931b['executeCommand']=executeCommand,module['exports']=_0x19931b;
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
|
|
2
|
+
const Logger = require('./logger');
|
|
3
|
+
const logger = new Logger('Executor');
|
|
4
|
+
/**
|
|
5
|
+
* Command executor for Devicely CLI
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
const { spawn } = require('child_process');
|
|
9
|
+
const path = require('path');
|
|
10
|
+
const chalk = require('chalk');
|
|
11
|
+
|
|
12
|
+
// Import deviceDetection from appropriate location
|
|
13
|
+
let discoverAllDevices;
|
|
14
|
+
try {
|
|
15
|
+
({ discoverAllDevices } = require('./deviceDetection'));
|
|
16
|
+
} catch (err) {
|
|
17
|
+
({ discoverAllDevices } = require('../../deviceDetection'));
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
async function executeCommand(command, options = {}) {
|
|
21
|
+
const devices = await discoverAllDevices();
|
|
22
|
+
|
|
23
|
+
if (!devices || devices.length === 0) {
|
|
24
|
+
logger.info(chalk.red('\n❌ No devices found'));;
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
let targetDevices = devices.filter(d => d.status === 'online');
|
|
29
|
+
|
|
30
|
+
if (options.device) {
|
|
31
|
+
targetDevices = devices.filter(d =>
|
|
32
|
+
d.name === options.device && d.status === 'online'
|
|
33
|
+
);
|
|
34
|
+
|
|
35
|
+
if (targetDevices.length === 0) {
|
|
36
|
+
logger.info(chalk.red(`\n❌ Device "${options.device}" not found or offline`));;
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
if (targetDevices.length === 0) {
|
|
42
|
+
logger.info(chalk.yellow('\n⚠️ No online devices found'));;
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
logger.info(chalk.cyan(`\nExecuting on ${targetDevices.length} device(s):`));;
|
|
47
|
+
targetDevices.forEach(d => logger.info(` • ${d.name}`));;
|
|
48
|
+
logger.info('');;
|
|
49
|
+
|
|
50
|
+
const scriptDir = path.join(__dirname, '../../scripts/shell');
|
|
51
|
+
|
|
52
|
+
for (const device of targetDevices) {
|
|
53
|
+
const platform = device.platform;
|
|
54
|
+
const type = device.type;
|
|
55
|
+
|
|
56
|
+
let scriptName;
|
|
57
|
+
if (platform === 'ios' && type === 'usb') {
|
|
58
|
+
scriptName = 'connect_ios_usb_multi_final.sh';
|
|
59
|
+
} else if (platform === 'ios' && type === 'wireless') {
|
|
60
|
+
scriptName = 'connect_ios_wireless_multi_final.sh';
|
|
61
|
+
} else if (platform === 'android' && type === 'usb') {
|
|
62
|
+
scriptName = 'connect_android_usb_multi_final.sh';
|
|
63
|
+
} else if (platform === 'android' && type === 'wireless') {
|
|
64
|
+
scriptName = 'connect_android_wireless_multi_final.sh';
|
|
65
|
+
} else {
|
|
66
|
+
logger.info(chalk.yellow(`⚠️ Unsupported device type: ${platform}-${type}`));;
|
|
67
|
+
continue;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
const scriptPath = path.join(scriptDir, scriptName);
|
|
71
|
+
|
|
72
|
+
logger.info(chalk.blue(`[${device.name}] Running command...`));;
|
|
73
|
+
|
|
74
|
+
const child = spawn(scriptPath, ['-d', device.name, ...command.split(' ')], {
|
|
75
|
+
stdio: 'pipe'
|
|
76
|
+
});
|
|
77
|
+
|
|
78
|
+
child.stdout.on('data', (data) => {
|
|
79
|
+
const lines = data.toString().split('\n').filter(l => l.trim());
|
|
80
|
+
lines.forEach(line => {
|
|
81
|
+
logger.info(chalk.gray(` ${line}`));;
|
|
82
|
+
});
|
|
83
|
+
});
|
|
84
|
+
|
|
85
|
+
child.stderr.on('data', (data) => {
|
|
86
|
+
const lines = data.toString().split('\n').filter(l => l.trim());
|
|
87
|
+
lines.forEach(line => {
|
|
88
|
+
logger.info(chalk.red(` ${line}`));;
|
|
89
|
+
});
|
|
90
|
+
});
|
|
91
|
+
|
|
92
|
+
await new Promise((resolve) => {
|
|
93
|
+
child.on('close', (code) => {
|
|
94
|
+
if (code === 0) {
|
|
95
|
+
logger.info(chalk.green(`[${device.name}] ✅ Success\n`));;
|
|
96
|
+
} else {
|
|
97
|
+
logger.info(chalk.red(`[${device.name}] ❌ Failed (exit code: ${code})\n`));;
|
|
98
|
+
}
|
|
99
|
+
resolve();
|
|
100
|
+
});
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
module.exports = {
|
|
106
|
+
executeCommand
|
|
107
|
+
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"files": {
|
|
3
3
|
"main.css": "/static/css/main.ed39ba12.css",
|
|
4
|
-
"main.js": "/static/js/main.
|
|
4
|
+
"main.js": "/static/js/main.6878ba82.js",
|
|
5
5
|
"index.html": "/index.html",
|
|
6
6
|
"main.ed39ba12.css.map": "/static/css/main.ed39ba12.css.map",
|
|
7
|
-
"main.
|
|
7
|
+
"main.6878ba82.js.map": "/static/js/main.6878ba82.js.map"
|
|
8
8
|
},
|
|
9
9
|
"entrypoints": [
|
|
10
10
|
"static/css/main.ed39ba12.css",
|
|
11
|
-
"static/js/main.
|
|
11
|
+
"static/js/main.6878ba82.js"
|
|
12
12
|
]
|
|
13
13
|
}
|
package/lib/frontend/index.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Devicely - AI-Powered Device Pool Management - Control your iOS device pool with intelligent automation"/><meta http-equiv="Permissions-Policy" content="local-network-access=*"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><title>Devicely - AI-Powered Device Pool</title><style>@keyframes pulse{0%,100%{opacity:1}50%{opacity:.5}}</style><script defer="defer" src="/static/js/main.
|
|
1
|
+
<!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Devicely - AI-Powered Device Pool Management - Control your iOS device pool with intelligent automation"/><meta http-equiv="Permissions-Policy" content="local-network-access=*"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><title>Devicely - AI-Powered Device Pool</title><style>@keyframes pulse{0%,100%{opacity:1}50%{opacity:.5}}</style><script defer="defer" src="/static/js/main.6878ba82.js"></script><link href="/static/css/main.ed39ba12.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
|