@synthetic-ai/ae-mcp 2.2.1 → 2.4.0

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/dist/bridge.mjs CHANGED
@@ -1 +1 @@
1
- (function(_0x16b871,_0x37ff70){const _0x2f3740={_0x1b46ba:0x2d6,_0x362af2:0x2dd,_0x59c377:0x2e3,_0x715637:0x199,_0x594f1f:0x2ff,_0x562789:0x2f1,_0x486f46:0x2ef,_0x10c6bd:0x2f4,_0x3cdc3d:0x197,_0x4f1617:0x18d,_0x19a757:0x2ee,_0x28f610:0x183},_0x32a85b=_0x16b871();function _0xef31b0(_0x5ae9f7,_0x4c83ad){return _0x2c20(_0x4c83ad-0x20b,_0x5ae9f7);}function _0x12fc89(_0xe2ae86,_0x51b341){return _0x2c20(_0xe2ae86-0xb5,_0x51b341);}while(!![]){try{const _0x27038e=-parseInt(_0xef31b0(_0x2f3740._0x1b46ba,_0x2f3740._0x362af2))/0x1*(-parseInt(_0xef31b0(0x2d5,_0x2f3740._0x59c377))/0x2)+-parseInt(_0xef31b0(0x2eb,0x2e4))/0x3+parseInt(_0x12fc89(_0x2f3740._0x715637,0x191))/0x4+parseInt(_0xef31b0(_0x2f3740._0x594f1f,_0x2f3740._0x562789))/0x5*(parseInt(_0xef31b0(_0x2f3740._0x486f46,0x2e2))/0x6)+-parseInt(_0xef31b0(_0x2f3740._0x10c6bd,0x2e9))/0x7*(-parseInt(_0x12fc89(_0x2f3740._0x3cdc3d,_0x2f3740._0x4f1617))/0x8)+-parseInt(_0xef31b0(0x2e1,_0x2f3740._0x19a757))/0x9+-parseInt(_0x12fc89(0x19a,0x191))/0xa*(parseInt(_0x12fc89(_0x2f3740._0x28f610,0x190))/0xb);if(_0x27038e===_0x37ff70)break;else _0x32a85b['push'](_0x32a85b['shift']());}catch(_0x262c16){_0x32a85b['push'](_0x32a85b['shift']());}}}(_0x7b84,0x4262e));import{mkdirSync,writeFileSync,readFileSync,unlinkSync,existsSync,readdirSync,renameSync}from'node:fs';import{join}from'node:path';import{tmpdir}from'node:os';const DEFAULT_TEMP_DIR=join(tmpdir(),'ae-mcp-bridge'),POLL_INTERVAL_MS=0x64,DEFAULT_TIMEOUT_MS=0x7530,MAX_SCRIPT_SIZE=0x1f4*0x400;let _counter=0x0;function ensureDir(_0x555c3c){if(!existsSync(_0x555c3c))mkdirSync(_0x555c3c,{'recursive':!![],'mode':0x1c0});}export function getTempDir(_0x51eda4){const _0x25765d={_0x563c0a:0xd3,_0x4cc30c:0xdc},_0x513c56={_0x5ef34d:0x1c6};function _0x12e0dc(_0x4234b6,_0x17020b){return _0x2c20(_0x17020b- -_0x513c56._0x5ef34d,_0x4234b6);}return _0x51eda4&&_0x51eda4[_0x12e0dc(-_0x25765d._0x563c0a,-_0x25765d._0x4cc30c)]||process.env.AE_MCP_TEMP_DIR||DEFAULT_TEMP_DIR;}function _0x2c20(_0x55231d,_0x3c681b){_0x55231d=_0x55231d-0xce;const _0x7b8444=_0x7b84();let _0x2c2021=_0x7b8444[_0x55231d];if(_0x2c20['vjBxGe']===undefined){var _0x42e1fb=function(_0x58eeaf){const _0x41de6d='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x555c3c='',_0x51eda4='';for(let _0x5962a3=0x0,_0x3fcb72,_0xd2a049,_0x29d1b9=0x0;_0xd2a049=_0x58eeaf['charAt'](_0x29d1b9++);~_0xd2a049&&(_0x3fcb72=_0x5962a3%0x4?_0x3fcb72*0x40+_0xd2a049:_0xd2a049,_0x5962a3++%0x4)?_0x555c3c+=String['fromCharCode'](0xff&_0x3fcb72>>(-0x2*_0x5962a3&0x6)):0x0){_0xd2a049=_0x41de6d['indexOf'](_0xd2a049);}for(let _0x3f3ea1=0x0,_0x2a3594=_0x555c3c['length'];_0x3f3ea1<_0x2a3594;_0x3f3ea1++){_0x51eda4+='%'+('00'+_0x555c3c['charCodeAt'](_0x3f3ea1)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x51eda4);};_0x2c20['JwBJnW']=_0x42e1fb,_0x2c20['zXVGgF']={},_0x2c20['vjBxGe']=!![];}const _0x53d710=_0x7b8444[0x0],_0x2d155e=_0x55231d+_0x53d710,_0x52a00c=_0x2c20['zXVGgF'][_0x2d155e];return!_0x52a00c?(_0x2c2021=_0x2c20['JwBJnW'](_0x2c2021),_0x2c20['zXVGgF'][_0x2d155e]=_0x2c2021):_0x2c2021=_0x52a00c,_0x2c2021;}export async function sendCommand(_0x5962a3,_0x3fcb72){const _0x4062fc={_0x1ade0f:0x455,_0x4b05e4:0x435,_0x4adf68:0x1e,_0x2f2815:0xf,_0x217ace:0x451,_0x4b866e:0x7,_0x12bbf9:0x2},_0x2587b2={_0xef1232:0xcc};function _0x2dfe49(_0x20b2ac,_0x1e741c){return _0x2c20(_0x20b2ac-0x371,_0x1e741c);}if(Buffer['byteLength'](_0x5962a3,'utf-8')>MAX_SCRIPT_SIZE)throw new Error('Script\x20exceeds\x20500KB\x20size\x20limit');const _0xd2a049=getTempDir(_0x3fcb72),_0x29d1b9=_0x3fcb72&&_0x3fcb72['timeoutMs']||DEFAULT_TIMEOUT_MS;ensureDir(_0xd2a049);const _0x3f3ea1=Date[_0x2dfe49(0x452,_0x4062fc._0x1ade0f)]()+'_'+ ++_counter,_0x2a3594=join(_0xd2a049,_0x2dfe49(0x441,_0x4062fc._0x4b05e4)+_0x3f3ea1+_0x1c05c4(0x14,_0x4062fc._0x4adf68)),_0x5a992b=join(_0xd2a049,_0x1c05c4(_0x4062fc._0x2f2815,0x18)+_0x3f3ea1+_0x2dfe49(_0x4062fc._0x217ace,0x454));function _0x1c05c4(_0x4a30cb,_0x4083b4){return _0x2c20(_0x4a30cb- -_0x2587b2._0xef1232,_0x4083b4);}const _0xf3cc21=join(_0xd2a049,_0x1c05c4(_0x4062fc._0x4b866e,-_0x4062fc._0x12bbf9)+_0x3f3ea1+'.json');writeFileSync(_0x2a3594,_0x5962a3,'utf-8'),renameSync(_0x2a3594,_0x5a992b);const _0x5553f7=await poll(_0xf3cc21,_0x29d1b9);return safeUnlink(_0x5a992b),safeUnlink(_0xf3cc21),_0x5553f7;}export async function callPanelTool(_0x36a2d9,_0x2ddf3d,_0x3aaef6){const _0x22e22={_0x5688ad:0x10a,_0xac403e:0x110,_0x486d80:0x118,_0x34dca6:0x6f,_0x53996a:0x79,_0x5be047:0x7d,_0x5bc349:0x89,_0x59f4a1:0x7f,_0x3e5ead:0x77,_0x229bc6:0x113,_0x43cb6e:0x120,_0x3cc5a0:0x122,_0x35779f:0x70},_0x55764b={_0x16aac8:0x1e9},_0x3977dc=JSON[_0x26950d(-_0x22e22._0x5688ad,-_0x22e22._0xac403e)](_0x2ddf3d||{}),_0x1a1c2b=_0x26950d(-_0x22e22._0x486d80,-0x112)+JSON['stringify'](_0x36a2d9)+']\x20!==\x20\x22function\x22)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20JSON.stringify({\x20success:\x20false,\x20error:\x20\x22Tool\x20\x27'+_0x36a2d9+_0x10acb0(-_0x22e22._0x34dca6,-0x70)+JSON[_0x10acb0(-_0x22e22._0x53996a,-_0x22e22._0x5be047)](_0x36a2d9)+']('+_0x3977dc+_0x26950d(-0x10f,-0x101);function _0x10acb0(_0x6f6db8,_0x854fe1){return _0x2c20(_0x6f6db8- -0x158,_0x854fe1);}function _0x26950d(_0x229bac,_0x25ccbd){return _0x2c20(_0x229bac- -_0x55764b._0x16aac8,_0x25ccbd);}const _0x4cf3a9=await sendCommand(_0x1a1c2b,_0x3aaef6);if(!_0x4cf3a9['success'])return _0x4cf3a9;try{if(typeof _0x4cf3a9[_0x10acb0(-_0x22e22._0x5bc349,-_0x22e22._0x59f4a1)]===_0x10acb0(-0x7b,-_0x22e22._0x3e5ead))return JSON[_0x26950d(-_0x22e22._0x229bc6,-_0x22e22._0x43cb6e)](_0x4cf3a9[_0x26950d(-0x11a,-_0x22e22._0x3cc5a0)]);return _0x4cf3a9;}catch(_0x319785){return{'success':![],'error':'Bridge\x20returned\x20non-JSON:\x20'+String(_0x4cf3a9['data'])[_0x10acb0(-0x71,-_0x22e22._0x35779f)](0x0,0xc8)};}}function _0x7b84(){const _0x28a0b4=['BM93','mtu2mgDSuKnjrW','mZy1ndK5mfvNA1bYwq','nty2mdG0rgzsCvrP','mtCWyLDrt1Ls','nde1zgDpq3fQ','C2XPy2u','C3rHCNrZv2L0Aa','jYbUB3qGCMvNAxn0zxjLzcbVBIb0AguGquuGyNjPzgDLlIbjCYb0AguGCgfUzwWGC3rHCNrLzd8Iih0PoWOGicaGicb9cIaGicaGihjLDhvYBIaKlMDSB2jHBc5Fx1nztL9brvS','DgvTCerPCG','mtG1nZaYBfnLwwfq','zgf0yq','Dg1WxW','kgz1BMn0Aw9UkcL7cIaGicb0CNKGEWOGicaGicbPzIaODhLWzw9MicqUz2XVyMfSlL9Fu1Lox0ffid09psaIDw5KzwzPBMvKiIb8Fcb0ExbLB2yGjc5NBg9IywWUx19twu5FquvB','ntuYngLWAMD1sa','CMvZxW','rMfPBgvKihrVihbHCNnLihjLC3bVBNnLoIa','BxmUieLZihrOzsbtEw50Agv0AwmGquuGtunqihbHBMvSihj1BM5PBMCGAw5ZAwrLiefMDgvYievMzMvJDhm/icHxAw5KB3CGpIbfEhrLBNnPB25Zid4Gu3LUDgHLDgLJieffie1ducWGDgHLBIbJBgLJAYbtDgfYDcbcCMLKz2uP','CgfYC2u','mtu0nJHQuvzusM0','mtK2AKvuD1f4','mtaYnte0nxbesfnqCG','ktSkicaGih0Gy2f0y2GGkguPihSkicaGicaGCMv0DxjUiePtt04UC3rYAw5NAwz5khSGC3vJy2vZCZOGzMfSC2uSigvYCM9YoIbtDhjPBMCOzsaMjIbLlM1LC3nHz2uGFhWGzsKGFsK7cIaGicb9cIaGFsKOktS','y21KxW','DxrMltG','C3rYAw5N','mtq3mtrZu0neugO','C3rYAw5NAwz5','lMPZEa'];_0x7b84=function(){return _0x28a0b4;};return _0x7b84();}function poll(_0xf25041,_0x202311){const _0x182649={_0x1c9d59:0x26},_0x1006f3={_0x54b48b:0x2f4,_0x29dcc7:0x133},_0x4ef23a={_0x2e401f:0xbb};function _0x3fc40b(_0x234856,_0x300350){return _0x2c20(_0x300350- -_0x4ef23a._0x2e401f,_0x234856);}const _0x13c9b5=Date[_0x3fc40b(0x28,_0x182649._0x1c9d59)]();return new Promise(_0x69ffaf=>{const _0x535ed6=()=>{if(existsSync(_0xf25041)){try{const _0x2d8462=readFileSync(_0xf25041,_0x5957eb(0x140,0x14d));_0x69ffaf(JSON[_0x5d27b9(-0x2fe,-_0x1006f3._0x54b48b)](_0x2d8462));}catch(_0x3965e6){_0x69ffaf({'success':![],'error':_0x5957eb(0x138,_0x1006f3._0x29dcc7)+_0x3965e6['message']});}return;}if(Date[_0x5957eb(0x145,0x145)]()-_0x13c9b5>_0x202311){_0x69ffaf({'success':![],'error':'Bridge\x20timed\x20out\x20after\x20'+_0x202311+_0x5957eb(0x139,0x13f)});return;}function _0x5957eb(_0x48dbcb,_0xb1d555){return _0x2c20(_0x48dbcb-0x64,_0xb1d555);}function _0x5d27b9(_0x4089f9,_0x373f74){return _0x2c20(_0x4089f9- -0x3d4,_0x373f74);}setTimeout(_0x535ed6,POLL_INTERVAL_MS);};_0x535ed6();});}function safeUnlink(_0x499990){try{if(existsSync(_0x499990))unlinkSync(_0x499990);}catch(_0x3f95f1){}}export function cleanupTempDir(_0x16f4c2){const _0x3e8104={_0x4cc1f1:0x109},_0xa06662={_0x54376d:0xdd},_0x441041=getTempDir(_0x16f4c2);if(!existsSync(_0x441041))return;function _0x1aaed8(_0x2d156f,_0x38df90){return _0x2c20(_0x2d156f- -_0xa06662._0x54376d,_0x38df90);}function _0x3976fe(_0x10d6f5,_0x34ade9){return _0x2c20(_0x10d6f5-0x21,_0x34ade9);}try{for(const _0x4727c6 of readdirSync(_0x441041)){(_0x4727c6[_0x3976fe(_0x3e8104._0x4cc1f1,0xfb)]('cmd_')||_0x4727c6[_0x3976fe(0x109,0x10a)]('res_')||_0x4727c6['startsWith'](_0x3976fe(0xf1,0x100)))&&safeUnlink(join(_0x441041,_0x4727c6));}}catch(_0x3e03c3){}}
1
+ (function(_0x38a88d,_0x3af6e3){const _0x46adc1={_0x25e15c:0xc4,_0x4feb02:0xd3,_0x454627:0xc4,_0x272979:0xca,_0x4d2c41:0xac,_0x21d948:0xbd,_0x3e17fe:0xd2,_0x3e381b:0xc8,_0x3f9f97:0x41b,_0xc4bf16:0x403,_0x35af72:0x415},_0x686ba9={_0x38a120:0x2da};function _0x490534(_0x390c79,_0x11e39c){return _0x1932(_0x11e39c- -0x6f,_0x390c79);}function _0x5fd492(_0x34eb47,_0x36ee4f){return _0x1932(_0x34eb47-_0x686ba9._0x38a120,_0x36ee4f);}const _0x1d5b26=_0x38a88d();while(!![]){try{const _0x49f4ee=-parseInt(_0x490534(_0x46adc1._0x25e15c,_0x46adc1._0x4feb02))/0x1+-parseInt(_0x490534(0xd3,_0x46adc1._0x454627))/0x2+-parseInt(_0x490534(0xc0,_0x46adc1._0x272979))/0x3+-parseInt(_0x5fd492(0x40f,0x421))/0x4+-parseInt(_0x490534(_0x46adc1._0x4d2c41,_0x46adc1._0x21d948))/0x5+parseInt(_0x490534(_0x46adc1._0x3e17fe,_0x46adc1._0x3e381b))/0x6*(parseInt(_0x5fd492(_0x46adc1._0x3f9f97,0x416))/0x7)+-parseInt(_0x5fd492(_0x46adc1._0xc4bf16,0x3fb))/0x8*(-parseInt(_0x5fd492(_0x46adc1._0x35af72,0x40e))/0x9);if(_0x49f4ee===_0x3af6e3)break;else _0x1d5b26['push'](_0x1d5b26['shift']());}catch(_0x88b2a8){_0x1d5b26['push'](_0x1d5b26['shift']());}}}(_0x3391,0xdd6a9));import{mkdirSync,writeFileSync,readFileSync,unlinkSync,existsSync,readdirSync,renameSync}from'node:fs';import{join}from'node:path';import{tmpdir}from'node:os';function _0x3391(){const _0x517fab=['mtzsvMX1wem','DxrMltG','CgfYC2u','nJe4mZmWALn2vLPs','yM9VBgvHBG','lMPZEa','Dg1WxW','C3rYAw5N','ktSkicaGih0Gy2f0y2GGkguPihSkicaGicaGCMv0DxjUiePtt04UC3rYAw5NAwz5khSGC3vJy2vZCZOGzMfSC2uSigvYCM9YoIbtDhjPBMCOzsaMjIbLlM1LC3nHz2uGFhWGzsKGFsK7cIaGicb9cIaGFsKOktS','lMPZB24','mJm3nZGZmgzjB3LKsW','C2XPy2u','mtGZndq0nfbtyxjQua','jYbUB3qGCMvNAxn0zxjLzcbVBIb0AguGquuGyNjPzgDLlIbjCYb0AguGCgfUzwWGC3rHCNrLzd8Iih0PoWOGicaGicb9cIaGicaGihjLDhvYBIaKlMDSB2jHBc5Fx1nztL9brvS','mtiZntrfuKvcrwm','yNL0zuXLBMD0Aa','mJi4mZq0n0zhzKr2wq','C3rHCNrZv2L0Aa','mtC2nty1mZnnrMfmrxK','kgz1BMn0Aw9UkcL7cIaGicb0CNKGEWOGicaGicbPzIaODhLWzw9MicqUz2XVyMfSlL9Fu1Lox0ffid09psaIDw5KzwzPBMvKiIb8Fcb0ExbLB2yGjc5NBg9IywWUx19twu5FquvB','zgf0yq','lIbsyxCGkgzPCNn0idmWmcbJAgfYCYK6ia','y21KxW','u2nYAxb0igv4y2vLzhmGntaWs0iGC2L6zsbSAw1PDa','ndeZn0rUAKD5va','mtCWmti4mvHItgzlvG','C3vJy2vZCW','B2jQzwn0','ywuTBwnWlwjYAwrNzq','rMfPBgvKihrVihbHCNnLihbHBMvSihjLC3bVBNnLoIa','BwvZC2fNzq','CMvZxW','BM93','qNjPzgDLihjLDhvYBMvKig5VBI1ku09ooIa','DgLTzw91De1Z','BxmUievPDgHLCIb0AguGu3LUDgHLDgLJieffie1ducbWyw5LBcbPC24NDcbYDw5UAw5NicHxAw5KB3CGpIbfEhrLBNnPB25Zid4Gu3LUDgHLDgLJieffie1duca+ifn0yxj0iejYAwrNzsKSig9YihrOzsbfEhrLBMrty3jPChqGB3aGzxHJzwvKzwqGDgHLihbHBMvSj3mGCgvYlwnHBgWGDgLTzw91Dc4GrM9Yig9WCYbVBIbODw5KCMvKCYbVzIbJB21WCYWGywXZBYbYzs1PBNn0ywXSihrOzsbSyxrLC3qGC2LNBMvKic56EhaGzNjVBsbODhrWCZOVl3n5BNrOzxrPyY5JB20UyxiVzgfZAgjVyxjKl2rVD25SB2fKCYdIGjqGB2XKzxiGCgfUzwXZignHChbLzcbWzxiTy2fSBcbLEgvJDxrPB24GyxqGmJuGCYbYzwDHCMrSzxnZig9MihrOAxmGC2v0DgLUzY4','C3rYAw5NAwz5'];_0x3391=function(){return _0x517fab;};return _0x3391();}const DEFAULT_TEMP_DIR=join(tmpdir(),_0x1687c8(0xf,0x2)),POLL_INTERVAL_MS=0x64,DEFAULT_TIMEOUT_MS=0x1d4c0,MAX_SCRIPT_SIZE=0x1f4*0x400;let _counter=0x0;function _0x1687c8(_0x174a08,_0xaf4e74){return _0x1932(_0x174a08- -0x136,_0xaf4e74);}function ensureDir(_0x28d1d4){if(!existsSync(_0x28d1d4))mkdirSync(_0x28d1d4,{'recursive':!![],'mode':0x1c0});}export function getTempDir(_0x91dd59){return _0x91dd59&&_0x91dd59['tempDir']||process.env.AE_MCP_TEMP_DIR||DEFAULT_TEMP_DIR;}export async function sendCommand(_0x3fa119,_0x3c5543){const _0x186945={_0x14cd45:0x113,_0x56d559:0xf5,_0x550586:0xf1,_0x3ca0d4:0xe8,_0x18ad83:0x108,_0x2aee98:0xfb,_0x19369e:0xf7,_0x3f1d25:0x101,_0x7a356c:0x20c},_0x33163a={_0x917c44:0x218},_0x2d19e4={_0x4f6fb8:0x103};if(Buffer[_0x29bc8a(0x105,_0x186945._0x14cd45)](_0x3fa119,_0x29bc8a(0xf7,_0x186945._0x56d559))>MAX_SCRIPT_SIZE)throw new Error(_0x1cea0e(0x233,0x222));const _0x35c58d=getTempDir(_0x3c5543),_0x5c737d=_0x3c5543&&_0x3c5543[_0x29bc8a(0xf3,0xec)]||DEFAULT_TIMEOUT_MS;ensureDir(_0x35c58d);const _0x4795de=Date[_0x29bc8a(_0x186945._0x550586,_0x186945._0x3ca0d4)]()+'_'+ ++_counter,_0x46953e=join(_0x35c58d,_0x29bc8a(0xfc,0x107)+_0x4795de+_0x1cea0e(0x210,0x210)),_0x4ec079=_0x4795de+'_t'+_0x5c737d,_0x39b84e=join(_0x35c58d,_0x29bc8a(0x10c,_0x186945._0x18ad83)+_0x4ec079+_0x29bc8a(_0x186945._0x2aee98,_0x186945._0x19369e)),_0x681426=join(_0x35c58d,_0x29bc8a(0xf0,_0x186945._0x3f1d25)+_0x4ec079+_0x1cea0e(0x20e,0x214));writeFileSync(_0x46953e,_0x3fa119,_0x1cea0e(0x208,_0x186945._0x7a356c)),renameSync(_0x46953e,_0x39b84e);function _0x29bc8a(_0x4193c8,_0x156f91){return _0x1687c8(_0x4193c8-_0x2d19e4._0x4f6fb8,_0x156f91);}const _0x431b01=await poll(_0x681426,_0x5c737d);safeUnlink(_0x39b84e);function _0x1cea0e(_0x1f9e6a,_0xb524cc){return _0x1687c8(_0xb524cc-_0x33163a._0x917c44,_0x1f9e6a);}return safeUnlink(_0x681426),_0x431b01;}export async function callPanelTool(_0x5a08e1,_0xb8bed1,_0x593e77){const _0xf2d70b={_0xbe5f85:0x1fb,_0x49f27b:0x1fb,_0x5893b2:0x1f8,_0x263e0e:0x1fa,_0xaca4d7:0x4bb,_0x57e3ec:0x4bf,_0x1619a8:0x4cb,_0x39c22e:0x4c7,_0x210a65:0x215,_0x1c18eb:0x4b5,_0x10d863:0x4cd,_0x4c05db:0x1f8,_0x10b92a:0x1ee,_0x4d600a:0x4c7},_0x29b0eb={_0x28a339:0x209},_0xe5592d=JSON[_0x19eb11(_0xf2d70b._0xbe5f85,0x207)](_0xb8bed1||{}),_0x62bd56=_0x137d7d(0x4ba,0x4c6)+JSON[_0x19eb11(_0xf2d70b._0x49f27b,_0xf2d70b._0x5893b2)](_0x5a08e1)+']\x20!==\x20\x22function\x22)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20JSON.stringify({\x20success:\x20false,\x20error:\x20\x22Tool\x20\x27'+_0x5a08e1+_0x19eb11(0x209,0x204)+JSON[_0x19eb11(0x1fb,_0xf2d70b._0x263e0e)](_0x5a08e1)+']('+_0xe5592d+_0x137d7d(0x4c1,_0xf2d70b._0xaca4d7);function _0x137d7d(_0x65c439,_0x7018cd){return _0x1687c8(_0x7018cd-0x4c0,_0x65c439);}const _0xc0a835=await sendCommand(_0x62bd56,_0x593e77);function _0x19eb11(_0x8c1660,_0x324507){return _0x1687c8(_0x8c1660-_0x29b0eb._0x28a339,_0x324507);}if(!_0xc0a835[_0x137d7d(_0xf2d70b._0x57e3ec,0x4cd)])return _0xc0a835;try{if(typeof _0xc0a835[_0x137d7d(_0xf2d70b._0x1619a8,_0xf2d70b._0x39c22e)]===_0x19eb11(0x203,_0xf2d70b._0x210a65))return JSON[_0x137d7d(0x4a6,_0xf2d70b._0x1c18eb)](_0xc0a835[_0x137d7d(_0xf2d70b._0x10d863,_0xf2d70b._0x39c22e)]);return _0xc0a835;}catch(_0x4bc09b){return{'success':![],'error':_0x19eb11(_0xf2d70b._0x4c05db,_0xf2d70b._0x10b92a)+String(_0xc0a835[_0x137d7d(0x4bb,_0xf2d70b._0x4d600a)])[_0x19eb11(0x207,0x202)](0x0,0xc8)};}}function _0x1932(_0x224d53,_0x15e7b7){_0x224d53=_0x224d53-0x121;const _0x3391fa=_0x3391();let _0x1932b1=_0x3391fa[_0x224d53];if(_0x1932['cBNYpB']===undefined){var _0x215f59=function(_0x313971){const _0x314341='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x28d1d4='',_0x91dd59='';for(let _0x3fa119=0x0,_0x3c5543,_0x35c58d,_0x5c737d=0x0;_0x35c58d=_0x313971['charAt'](_0x5c737d++);~_0x35c58d&&(_0x3c5543=_0x3fa119%0x4?_0x3c5543*0x40+_0x35c58d:_0x35c58d,_0x3fa119++%0x4)?_0x28d1d4+=String['fromCharCode'](0xff&_0x3c5543>>(-0x2*_0x3fa119&0x6)):0x0){_0x35c58d=_0x314341['indexOf'](_0x35c58d);}for(let _0x4795de=0x0,_0x46953e=_0x28d1d4['length'];_0x4795de<_0x46953e;_0x4795de++){_0x91dd59+='%'+('00'+_0x28d1d4['charCodeAt'](_0x4795de)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x91dd59);};_0x1932['JcdihO']=_0x215f59,_0x1932['sXRGfg']={},_0x1932['cBNYpB']=!![];}const _0x1ed41b=_0x3391fa[0x0],_0x30458e=_0x224d53+_0x1ed41b,_0x448e4f=_0x1932['sXRGfg'][_0x30458e];return!_0x448e4f?(_0x1932b1=_0x1932['JcdihO'](_0x1932b1),_0x1932['sXRGfg'][_0x30458e]=_0x1932b1):_0x1932b1=_0x448e4f,_0x1932b1;}function normalizeBridgeResponse(_0x17c0cb){const _0x4d68ce={_0x5ea7aa:0x248,_0x3944f0:0xd,_0x15ab7e:0x13,_0x36c30b:0x25a,_0x4b51ca:0x25b};if(_0x17c0cb!==null&&typeof _0x17c0cb===_0x39bc62(-0x23e,-0x233)&&typeof _0x17c0cb[_0x39bc62(-0x23f,-_0x4d68ce._0x5ea7aa)]===_0x1c17c3(_0x4d68ce._0x3944f0,_0x4d68ce._0x15ab7e))return _0x17c0cb;function _0x1c17c3(_0x475448,_0x497f8b){return _0x1687c8(_0x475448-0x16,_0x497f8b);}function _0x39bc62(_0xaba0d4,_0xba98c){return _0x1687c8(_0xaba0d4- -0x24c,_0xba98c);}return{'success':!![],'data':JSON[_0x39bc62(-_0x4d68ce._0x36c30b,-_0x4d68ce._0x4b51ca)](_0x17c0cb)};}function poll(_0x150bde,_0x6a1417){const _0x3161d3={_0x12793f:0x1bf,_0x46185f:0x1ce},_0x32579a={_0x5ed3c1:0x1e0},_0x8f5eb4=Date[_0x236d38(_0x3161d3._0x12793f,_0x3161d3._0x46185f)]();function _0x236d38(_0x313479,_0x5b1589){return _0x1687c8(_0x5b1589-_0x32579a._0x5ed3c1,_0x313479);}return new Promise(_0x327045=>{const _0xbbfcfb={_0x19c7dd:0x261,_0x2a61b2:0x1a6,_0x3f2c8b:0x19d,_0x431be0:0x26d},_0x25941c=()=>{const _0x28e2bd={_0x37f09f:0x2d1};function _0x1db8fb(_0x1864e7,_0x547e23){return _0x1932(_0x547e23- -_0x28e2bd._0x37f09f,_0x1864e7);}function _0xafa215(_0x55214b,_0x55a0d2){return _0x1932(_0x55a0d2- -0x394,_0x55214b);}if(existsSync(_0x150bde)){let _0x17e5f3='';try{_0x17e5f3=readFileSync(_0x150bde,_0xafa215(-_0xbbfcfb._0x19c7dd,-0x26a));const _0x370b04=JSON['parse'](_0x17e5f3);_0x327045(normalizeBridgeResponse(_0x370b04));}catch(_0x4cba24){_0x327045({'success':![],'error':_0x1db8fb(-0x1b3,-0x1b0)+_0x4cba24[_0x1db8fb(-_0xbbfcfb._0x2a61b2,-0x1af)]+_0xafa215(-0x24e,-0x256)+String(_0x17e5f3)['slice'](0x0,0x12c)});}return;}if(Date[_0x1db8fb(-_0xbbfcfb._0x3f2c8b,-0x1ad)]()-_0x8f5eb4>_0x6a1417){_0x327045({'success':![],'error':'Bridge\x20timed\x20out\x20after\x20'+_0x6a1417+_0xafa215(-0x27f,-_0xbbfcfb._0x431be0)});return;}setTimeout(_0x25941c,POLL_INTERVAL_MS);};_0x25941c();});}function safeUnlink(_0xd5fbae){try{if(existsSync(_0xd5fbae))unlinkSync(_0xd5fbae);}catch(_0x34365f){}}export function cleanupTempDir(_0x12c966){const _0x112028={_0x7d1fc6:0x34b,_0x4d62c4:0x1b9,_0x20eb52:0x1d0,_0x435ac4:0x1db,_0x58944b:0x1c4},_0x2b8b3c={_0x24d890:0x1bd},_0x4e476d=getTempDir(_0x12c966);function _0x2061af(_0x5ceca4,_0x83904f){return _0x1687c8(_0x5ceca4- -_0x2b8b3c._0x24d890,_0x83904f);}function _0x4400a(_0xe56399,_0xdd5908){return _0x1687c8(_0xdd5908-0x34f,_0xe56399);}if(!existsSync(_0x4e476d))return;try{for(const _0x2100bd of readdirSync(_0x4e476d)){(_0x2100bd[_0x4400a(0x356,0x353)](_0x4400a(_0x112028._0x7d1fc6,0x358))||_0x2100bd[_0x2061af(-_0x112028._0x4d62c4,-0x1ab)](_0x2061af(-_0x112028._0x20eb52,-_0x112028._0x435ac4))||_0x2100bd['startsWith'](_0x2061af(-_0x112028._0x58944b,-0x1d3)))&&safeUnlink(join(_0x4e476d,_0x2100bd));}}catch(_0x57b5bb){}}