@synthetic-ai/ae-mcp 2.2.0 → 2.2.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/dist/bridge.mjs +1 -1
- package/dist/server.mjs +1 -1
- package/dist/store.mjs +1 -1
- package/package.json +4 -1
package/dist/bridge.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
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){}}
|