@synthetic-ai/ae-mcp 2.4.5 → 2.5.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/store.mjs CHANGED
@@ -1 +1 @@
1
- (function(_0x5b1bae,_0x42b756){const _0x2d6471={_0x57c027:0x5d,_0x2c9ada:0x4c,_0x25669d:0x243,_0x3b10cf:0x23e,_0x2ef655:0x58,_0x23139b:0x247,_0x4980c8:0x267,_0x4789ce:0x56,_0x49fa3c:0x67,_0x15d952:0x38,_0x4cc9f0:0x43},_0x1a39ba={_0x48772d:0x102},_0x36ce2c=_0x5b1bae();function _0x4f6ccc(_0x3ce708,_0x2bb06c){return _0x2bb2(_0x3ce708-_0x1a39ba._0x48772d,_0x2bb06c);}function _0x5e67db(_0x490e11,_0x2e28a8){return _0x2bb2(_0x490e11- -0x1a9,_0x2e28a8);}while(!![]){try{const _0x189bd6=parseInt(_0x5e67db(-_0x2d6471._0x57c027,-_0x2d6471._0x2c9ada))/0x1*(parseInt(_0x4f6ccc(_0x2d6471._0x25669d,0x240))/0x2)+parseInt(_0x4f6ccc(_0x2d6471._0x3b10cf,0x239))/0x3*(-parseInt(_0x5e67db(-0x69,-0x67))/0x4)+-parseInt(_0x5e67db(-_0x2d6471._0x2ef655,-0x60))/0x5*(parseInt(_0x4f6ccc(_0x2d6471._0x23139b,0x255))/0x6)+-parseInt(_0x5e67db(-0x6c,-0x76))/0x7*(-parseInt(_0x4f6ccc(0x258,_0x2d6471._0x4980c8))/0x8)+parseInt(_0x5e67db(-_0x2d6471._0x4789ce,-_0x2d6471._0x49fa3c))/0x9*(-parseInt(_0x5e67db(-0x57,-0x4c))/0xa)+parseInt(_0x5e67db(-0x4b,-_0x2d6471._0x15d952))/0xb+parseInt(_0x5e67db(-0x51,-_0x2d6471._0x4cc9f0))/0xc;if(_0x189bd6===_0x42b756)break;else _0x36ce2c['push'](_0x36ce2c['shift']());}catch(_0x231f4b){_0x36ce2c['push'](_0x36ce2c['shift']());}}}(_0x189f,0xea474));import{homedir}from'node:os';function _0x189f(){const _0x3f9d5c=['lNn5BNrOzxrPyY1Hzs1Ty3a','zgvMyxvSDa','mteZnNPZrLnHCG','yM9VBgvHBG','mJy0oteWmdH0ufLYtMS','zgvZy3jPChrPB24','y29Kzq','DhLWzq','C3bSAxq','BMfTzq','otq1nti0oejxExjwBa','B2jQzwn0','DxrMltG','ntKXodm3y1DQte1f','nti5ndfrrMv3sMm','Dhj1zq','y2fSBa','mJbWwgz5zve','mJK4AKjurff2','ChvZAa','twLZC2LUzYbYzxf1AxjLzcbWyxjHBwv0zxiGjW','D3jHChbLCNmUANnVBG','mZbRCNLYzMO','CMvXDwLYzwq','AM9PBG','yxjYyxK','icbBChjVBw90zwqGD3jHChbLCL0','ChjVDg90ExbL','DhjPBq','mZa4ouLrweDRBW','AxnbCNjHEq','C3rYAw5NAwz5','C3rYAw5N','BNvTyMvY','mtyZnduYnuvvrvbbza','mZm0nZbgz1r4y0e','mJC0nxHcvMTxAq'];_0x189f=function(){return _0x3f9d5c;};return _0x189f();}import{join}from'node:path';import{existsSync,mkdirSync,appendFileSync,readFileSync,writeFileSync}from'node:fs';export const DATA_DIR=process.env.AE_MCP_DATA_DIR||join(homedir(),_0x5c4aca(0x1e5,0x1db));export const JOURNAL_PATH=join(DATA_DIR,'journal.jsonl');export const WRAPPERS_PATH=join(DATA_DIR,_0xa7a69f(0x394,0x395));function ensureDir(){if(!existsSync(DATA_DIR))mkdirSync(DATA_DIR,{'recursive':!![]});}export function appendJournal(_0x57c162){const _0x37cb56={_0xf4168b:0x17};function _0x1a5ce5(_0x2bcf8b,_0x3695ad){return _0x5c4aca(_0x3695ad,_0x2bcf8b- -0xf9);}function _0x429d44(_0x48b391,_0x26248e){return _0x5c4aca(_0x48b391,_0x26248e-_0x37cb56._0xf4168b);}try{ensureDir(),appendFileSync(JOURNAL_PATH,JSON[_0x1a5ce5(0xdc,0xd1)](_0x57c162)+'\x0a',_0x429d44(0x20c,0x1fe));}catch(_0x1b8193){}}export function readJournal(){const _0x17c0e9={_0x18c7a4:0x39b,_0x24ec9f:0xed,_0x118898:0x384},_0x56661e={_0x2e8906:0x20};function _0x1657f4(_0x1e9d11,_0x149a54){return _0xa7a69f(_0x1e9d11- -0x2c0,_0x149a54);}function _0x1d1daf(_0x2e6997,_0x4a97dd){return _0xa7a69f(_0x4a97dd- -_0x56661e._0x2e8906,_0x2e6997);}if(!existsSync(JOURNAL_PATH))return[];const _0x54da7b=[];for(const _0x27ca81 of readFileSync(JOURNAL_PATH,_0x1d1daf(0x398,0x390))[_0x1d1daf(_0x17c0e9._0x18c7a4,0x38c)]('\x0a')){const _0x113b0c=_0x27ca81[_0x1657f4(0xdb,_0x17c0e9._0x24ec9f)]();if(!_0x113b0c)continue;try{_0x54da7b[_0x1d1daf(_0x17c0e9._0x118898,0x372)](JSON['parse'](_0x113b0c));}catch(_0x4b05af){}}return _0x54da7b;}export function readWrappers(){const _0x4f00fc={_0x49d909:0x22e};if(!existsSync(WRAPPERS_PATH))return[];function _0x5dcb3d(_0x20f408,_0x13b435){return _0x5c4aca(_0x20f408,_0x13b435- -0x401);}try{const _0x1fd1d8=JSON['parse'](readFileSync(WRAPPERS_PATH,'utf-8'));return Array[_0x5dcb3d(-_0x4f00fc._0x49d909,-0x22d)](_0x1fd1d8)?_0x1fd1d8:[];}catch(_0xdbc554){return[];}}function _0x5c4aca(_0x44eec5,_0x152fb3){const _0x595422={_0x2b8c89:0x87};return _0x2bb2(_0x152fb3-_0x595422._0x2b8c89,_0x44eec5);}function _0x2bb2(_0x42f375,_0x28f264){_0x42f375=_0x42f375-0x13c;const _0x189fb3=_0x189f();let _0x2bb26e=_0x189fb3[_0x42f375];if(_0x2bb2['gPYFkm']===undefined){var _0x308267=function(_0x4743b4){const _0x4727ae='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x57c162='',_0x1b8193='';for(let _0x54da7b=0x0,_0x27ca81,_0x113b0c,_0x4b05af=0x0;_0x113b0c=_0x4743b4['charAt'](_0x4b05af++);~_0x113b0c&&(_0x27ca81=_0x54da7b%0x4?_0x27ca81*0x40+_0x113b0c:_0x113b0c,_0x54da7b++%0x4)?_0x57c162+=String['fromCharCode'](0xff&_0x27ca81>>(-0x2*_0x54da7b&0x6)):0x0){_0x113b0c=_0x4727ae['indexOf'](_0x113b0c);}for(let _0x1fd1d8=0x0,_0xdbc554=_0x57c162['length'];_0x1fd1d8<_0xdbc554;_0x1fd1d8++){_0x1b8193+='%'+('00'+_0x57c162['charCodeAt'](_0x1fd1d8)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1b8193);};_0x2bb2['nbsEph']=_0x308267,_0x2bb2['LZVEsN']={},_0x2bb2['gPYFkm']=!![];}const _0x231b53=_0x189fb3[0x0],_0x4812aa=_0x42f375+_0x231b53,_0x5d3bc0=_0x2bb2['LZVEsN'][_0x4812aa];return!_0x5d3bc0?(_0x2bb26e=_0x2bb2['nbsEph'](_0x2bb26e),_0x2bb2['LZVEsN'][_0x4812aa]=_0x2bb26e):_0x2bb26e=_0x5d3bc0,_0x2bb26e;}export function writeWrappers(_0x2e38b4){const _0x33d59e={_0x31a038:0xea,_0x317fcc:0xf6};function _0x26e72f(_0x18be73,_0x14003a){return _0xa7a69f(_0x14003a-0x107,_0x18be73);}ensureDir();function _0x75887b(_0x106c6f,_0x4c56a6){return _0xa7a69f(_0x106c6f- -0x2c6,_0x4c56a6);}writeFileSync(WRAPPERS_PATH,JSON[_0x26e72f(0x499,0x4a5)](_0x2e38b4,null,0x2),_0x75887b(_0x33d59e._0x31a038,_0x33d59e._0x317fcc));}const TYPE_TO_SCHEMA={'string':()=>({'type':'string'}),'number':()=>({'type':_0xa7a69f(0x3a0,0x39c)}),'boolean':()=>({'type':'boolean'}),'array':()=>({'type':_0xa7a69f(0x398,0x3a8)}),'object':()=>({'type':'object'}),'raw':()=>({'type':_0x5c4aca(0x1cc,0x1d6)})};function _0xa7a69f(_0x513da2,_0x4f1c5b){const _0x16eb5a={_0x3266ae:0x250};return _0x2bb2(_0x513da2-_0x16eb5a._0x3266ae,_0x4f1c5b);}export function wrapperToToolDef(_0x5c2bd0){const _0x864c5e={_0x2635f4:0x479,_0x3fd91e:0x487,_0x4c5cee:0x490,_0x1722ec:0x48f,_0x1c9165:0x487,_0x315729:0x47e,_0x47182d:0x473,_0x4ba246:0x481};function _0x479132(_0x356c88,_0x2a2b66){return _0x5c4aca(_0x2a2b66,_0x356c88-0x2a3);}const _0x37c00c={},_0x58f1d8=[];for(const _0x130329 of _0x5c2bd0['params']||[]){const _0x1b4742=(TYPE_TO_SCHEMA[_0x130329['type']]||TYPE_TO_SCHEMA[_0x479132(_0x864c5e._0x2635f4,0x477)])();_0x37c00c[_0x130329[_0x479132(_0x864c5e._0x3fd91e,0x48e)]]={..._0x1b4742,'description':_0x130329[_0x479132(0x483,_0x864c5e._0x4c5cee)]||''};if(_0x130329['required'])_0x58f1d8['push'](_0x130329[_0x479132(_0x864c5e._0x3fd91e,_0x864c5e._0x1722ec)]);}function _0x568251(_0x910d03,_0x3ea2d9){return _0x5c4aca(_0x3ea2d9,_0x910d03- -0x468);}return{'name':_0x5c2bd0[_0x479132(_0x864c5e._0x1c9165,0x48b)],'description':(_0x5c2bd0[_0x479132(0x483,_0x864c5e._0x315729)]||'')+_0x479132(_0x864c5e._0x47182d,0x469),'inputSchema':{'type':_0x479132(0x489,_0x864c5e._0x4ba246),'properties':_0x37c00c,'required':_0x58f1d8,'additionalProperties':![]}};}function renderLiteral(_0x828af1,_0x1e7979){const _0x566b4e={_0x94787d:0xd0,_0x425537:0xc6,_0x1a9d9:0xd4,_0x4df487:0xe0,_0x2428b1:0xb3,_0x3744e2:0xd2,_0x2caf4b:0xd2},_0x2e551e={_0x133bfa:0x64};function _0xf47c1a(_0x2d0f0a,_0x38168e){return _0xa7a69f(_0x2d0f0a- -_0x2e551e._0x133bfa,_0x38168e);}function _0x47cfda(_0x47e453,_0x419d1f){return _0xa7a69f(_0x47e453- -0x2cc,_0x419d1f);}switch(_0x1e7979){case _0x47cfda(0xd3,_0x566b4e._0x94787d):return JSON[_0x47cfda(0xd2,_0x566b4e._0x425537)](String(_0x828af1??''));case _0x47cfda(_0x566b4e._0x1a9d9,0xcc):return String(Number(_0x828af1));case _0x47cfda(0xdb,_0x566b4e._0x4df487):return _0x828af1?_0x47cfda(0xc2,_0x566b4e._0x2428b1):'false';case _0x47cfda(0xcc,0xce):case _0xf47c1a(0x34b,0x352):return JSON[_0x47cfda(_0x566b4e._0x3744e2,0xd6)](_0x828af1??null);case'raw':return String(_0x828af1??'');default:return JSON[_0x47cfda(_0x566b4e._0x2caf4b,0xcd)](String(_0x828af1??''));}}export function fillTemplate(_0x1410ce,_0x2b0606){const _0xd250e8={_0x516e40:0x26b,_0x592489:0x277,_0x3cc36b:0x140,_0x5452d9:0x250,_0x4d02c1:0x26e,_0x51dd2c:0x267,_0x5e6027:0x144,_0x49bcd1:0x254,_0x4e1271:0x265,_0x13162c:0x128,_0x33e78c:0x258},_0x6ddb80={_0x43c78c:0x311};let _0x2f54f7=_0x1410ce[_0x3a3781(_0xd250e8._0x516e40,_0xd250e8._0x592489)];function _0x3a3781(_0x1ced4e,_0x252ed6){return _0x5c4aca(_0x252ed6,_0x1ced4e-0x8a);}for(const _0x579cf4 of _0x1410ce['params']||[]){const _0x1301d1=_0x2b0606&&Object[_0x38122e(-0x136,-_0xd250e8._0x3cc36b)]['hasOwnProperty'][_0x3a3781(_0xd250e8._0x5452d9,0x252)](_0x2b0606,_0x579cf4['name']);let _0x109a24=_0x1301d1?_0x2b0606[_0x579cf4[_0x3a3781(_0xd250e8._0x4d02c1,_0xd250e8._0x51dd2c)]]:_0x579cf4[_0x3a3781(0x266,0x263)];if(_0x109a24===undefined){if(_0x579cf4[_0x38122e(-0x155,-_0xd250e8._0x5e6027)])throw new Error(_0x3a3781(_0xd250e8._0x49bcd1,_0xd250e8._0x4e1271)+_0x579cf4['name']+'\x27');continue;}const _0x23eea1=renderLiteral(_0x109a24,_0x579cf4[_0x38122e(-_0xd250e8._0x13162c,-0x12f)]);_0x2f54f7=_0x2f54f7['split']('{{'+_0x579cf4['name']+'}}')[_0x3a3781(_0xd250e8._0x33e78c,0x24e)](_0x23eea1);}function _0x38122e(_0x27962a,_0x2b5b9b){return _0x5c4aca(_0x27962a,_0x2b5b9b- -_0x6ddb80._0x43c78c);}return _0x2f54f7;}
1
+ (function(_0x1d8635,_0x43ff01){const _0x30e0ee={_0x4b858a:0x24e,_0xc2ee70:0x250,_0x4fc17d:0x254,_0x37977c:0x54,_0x457dd5:0x64,_0x4f4104:0x57,_0x4a4407:0x6e,_0x5d3fc1:0x24c,_0x37227c:0x245},_0xd6c2de={_0x373bbd:0xe7};function _0x3b7af3(_0x29262a,_0xc9a75a){return _0x6db9(_0xc9a75a- -_0xd6c2de._0x373bbd,_0x29262a);}const _0x3991ab=_0x1d8635();function _0xf74ba5(_0x21cde1,_0x142883){return _0x6db9(_0x21cde1-0xf6,_0x142883);}while(!![]){try{const _0x46c8a1=parseInt(_0xf74ba5(0x242,0x242))/0x1+parseInt(_0x3b7af3(0x58,0x62))/0x2*(-parseInt(_0xf74ba5(0x24f,_0x30e0ee._0x4b858a))/0x3)+-parseInt(_0xf74ba5(_0x30e0ee._0xc2ee70,_0x30e0ee._0x4fc17d))/0x4+-parseInt(_0x3b7af3(_0x30e0ee._0x37977c,0x5f))/0x5+-parseInt(_0x3b7af3(_0x30e0ee._0x457dd5,_0x30e0ee._0x4f4104))/0x6+parseInt(_0x3b7af3(_0x30e0ee._0x4a4407,0x66))/0x7+-parseInt(_0xf74ba5(_0x30e0ee._0x5d3fc1,0x249))/0x8*(-parseInt(_0xf74ba5(_0x30e0ee._0x37227c,0x24b))/0x9);if(_0x46c8a1===_0x43ff01)break;else _0x3991ab['push'](_0x3991ab['shift']());}catch(_0x15b609){_0x3991ab['push'](_0x3991ab['shift']());}}}(_0x21a1,0xcf142));import{homedir}from'node:os';function _0x6db9(_0x1aae38,_0x4d4e9a){_0x1aae38=_0x1aae38-0x139;const _0x21a19e=_0x21a1();let _0x6db9e9=_0x21a19e[_0x1aae38];if(_0x6db9['GnjfKu']===undefined){var _0x32176c=function(_0x42b70e){const _0x33a361='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x389eed='',_0x3832dd='';for(let _0x1a8fab=0x0,_0x2a90e6,_0x50692f,_0x221e46=0x0;_0x50692f=_0x42b70e['charAt'](_0x221e46++);~_0x50692f&&(_0x2a90e6=_0x1a8fab%0x4?_0x2a90e6*0x40+_0x50692f:_0x50692f,_0x1a8fab++%0x4)?_0x389eed+=String['fromCharCode'](0xff&_0x2a90e6>>(-0x2*_0x1a8fab&0x6)):0x0){_0x50692f=_0x33a361['indexOf'](_0x50692f);}for(let _0x132d24=0x0,_0x5aa27b=_0x389eed['length'];_0x132d24<_0x5aa27b;_0x132d24++){_0x3832dd+='%'+('00'+_0x389eed['charCodeAt'](_0x132d24)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3832dd);};_0x6db9['oOZaev']=_0x32176c,_0x6db9['JNWepN']={},_0x6db9['GnjfKu']=!![];}const _0x563db5=_0x21a19e[0x0],_0x20349f=_0x1aae38+_0x563db5,_0xb1611=_0x6db9['JNWepN'][_0x20349f];return!_0xb1611?(_0x6db9e9=_0x6db9['oOZaev'](_0x6db9e9),_0x6db9['JNWepN'][_0x20349f]=_0x6db9e9):_0x6db9e9=_0xb1611,_0x6db9e9;}import{join}from'node:path';function _0x21a1(){const _0x132891=['lNn5BNrOzxrPyY1Hzs1Ty3a','CgfYC2u','mJe0ota4nMnhDKnruG','ntmYmJCYoeXgrKrpuq','DhLWzq','y29Kzq','BMfTzq','ChvZAa','AgfZt3DUuhjVCgvYDhK','ntqWnduXogzXC1boDa','ChjVDg90ExbL','C3rYAw5NAwz5','B2jQzwn0','Dhj1zq','C3rYAw5N','BNvTyMvY','AxnbCNjHEq','ndy0ndK1nuHHB3fluW','yM9VBgvHBG','CMvXDwLYzwq','mNLMtfjSwa','twLZC2LUzYbYzxf1AxjLzcbWyxjHBwv0zxiGjW','DxrMltG','ndCXmdaYs2XHrxPH','mtm3ndG3mePIsKPhBG','AM9PBG','mty1otKXnvPTEffiCa','AM91CM5HBc5QC29UBa','yxjYyxK','CgfYyw1Z','CMf3','zgvZy3jPChrPB24','DhjPBq','mtC2zgLiC0nw'];_0x21a1=function(){return _0x132891;};return _0x21a1();}import{existsSync,mkdirSync,appendFileSync,readFileSync,writeFileSync}from'node:fs';function _0x4d1892(_0x2479f3,_0x3a48ea){const _0x474b9f={_0x376cd9:0x34f};return _0x6db9(_0x3a48ea-_0x474b9f._0x376cd9,_0x2479f3);}export const DATA_DIR=process.env.AE_MCP_DATA_DIR||join(homedir(),_0x529ecb(0x3f7,0x3e6));export const JOURNAL_PATH=join(DATA_DIR,_0x529ecb(0x3f0,0x3ee));export const WRAPPERS_PATH=join(DATA_DIR,'wrappers.json');function ensureDir(){if(!existsSync(DATA_DIR))mkdirSync(DATA_DIR,{'recursive':!![]});}export function appendJournal(_0x389eed){const _0x2fb8b7={_0x445a45:0x4ae,_0x10eb21:0x6},_0x4a0d3b={_0x13e2f0:0x3eb};function _0x5e5d0b(_0x245996,_0x45daa1){return _0x529ecb(_0x45daa1-0xce,_0x245996);}function _0x856b41(_0x10c79b,_0x161518){return _0x529ecb(_0x161518- -_0x4a0d3b._0x13e2f0,_0x10c79b);}try{ensureDir(),appendFileSync(JOURNAL_PATH,JSON[_0x5e5d0b(0x4af,_0x2fb8b7._0x445a45)](_0x389eed)+'\x0a',_0x856b41(-_0x2fb8b7._0x10eb21,0x0));}catch(_0x3832dd){}}export function readJournal(){const _0x529b90={_0xf471cf:0x3fe,_0x47d086:0x150};function _0x205e4e(_0x19ea42,_0x3fe4cb){return _0x529ecb(_0x3fe4cb- -0x548,_0x19ea42);}function _0xe7614f(_0x7d2e5a,_0xe89b49){return _0x529ecb(_0xe89b49-0x3,_0x7d2e5a);}if(!existsSync(JOURNAL_PATH))return[];const _0x1a8fab=[];for(const _0x2a90e6 of readFileSync(JOURNAL_PATH,_0x205e4e(-0x160,-0x15d))['split']('\x0a')){const _0x50692f=_0x2a90e6[_0xe7614f(_0x529b90._0xf471cf,0x3f8)]();if(!_0x50692f)continue;try{_0x1a8fab[_0x205e4e(-0x17c,-0x16c)](JSON[_0x205e4e(-0x15c,-_0x529b90._0x47d086)](_0x50692f));}catch(_0x221e46){}}return _0x1a8fab;}export function readWrappers(){const _0x296da4={_0x2f2705:0x265},_0x3f04a2={_0x22ae6c:0x70d};if(!existsSync(WRAPPERS_PATH))return[];function _0x473326(_0x2ff006,_0x5bfdc5){return _0x4d1892(_0x2ff006,_0x5bfdc5- -_0x3f04a2._0x22ae6c);}function _0x23fcea(_0x3167cb,_0x47223e){return _0x4d1892(_0x47223e,_0x3167cb- -0x29);}try{const _0x132d24=JSON['parse'](readFileSync(WRAPPERS_PATH,_0x473326(-_0x296da4._0x2f2705,-0x273)));return Array[_0x23fcea(0x46b,0x46b)](_0x132d24)?_0x132d24:[];}catch(_0x5aa27b){return[];}}export function writeWrappers(_0x421ee2){const _0x51de86={_0x3055a7:0x472,_0x28290b:0x467},_0xf87b9b={_0x20c8b6:0x636};function _0x1607e1(_0x2ace73,_0x58470a){return _0x529ecb(_0x2ace73- -_0xf87b9b._0x20c8b6,_0x58470a);}function _0x13fbf3(_0x4933d4,_0x9d3c4d){return _0x529ecb(_0x4933d4-0x92,_0x9d3c4d);}ensureDir(),writeFileSync(WRAPPERS_PATH,JSON[_0x13fbf3(_0x51de86._0x3055a7,_0x51de86._0x28290b)](_0x421ee2,null,0x2),_0x13fbf3(0x47d,0x46f));}const TYPE_TO_SCHEMA={'string':()=>({'type':'string'}),'number':()=>({'type':_0x529ecb(0x3e4,0x3f2)}),'boolean':()=>({'type':_0x529ecb(0x3e7,0x3e3)}),'array':()=>({'type':_0x4d1892(0x4a7,0x4a0)}),'object':()=>({'type':_0x529ecb(0x3e1,0x3e1)}),'raw':()=>({'type':_0x4d1892(0x48f,0x492)})};export function wrapperToToolDef(_0xfacff1){const _0x4f20be={_0x1f55cf:0x21c,_0x4a5d66:0x22d,_0x8f1b62:0x21a,_0x42d2ac:0x223,_0x446b7d:0x4ad,_0x135b39:0x4a1,_0x4927f5:0x4c5,_0x53fbdf:0x4c4},_0xae39a9={_0x120193:0x60e},_0x11bb5c={_0x45fb9b:0xd1};function _0x21c1a2(_0x1ff4d7,_0x4d5c10){return _0x529ecb(_0x1ff4d7-_0x11bb5c._0x45fb9b,_0x4d5c10);}const _0x51f826={},_0x1cccbf=[];for(const _0x58e8a6 of _0xfacff1[_0x538303(-_0x4f20be._0x1f55cf,-_0x4f20be._0x4a5d66)]||[]){const _0x6444a3=(TYPE_TO_SCHEMA[_0x58e8a6[_0x538303(-0x235,-0x234)]]||TYPE_TO_SCHEMA[_0x21c1a2(0x4b4,0x4a5)])();_0x51f826[_0x58e8a6[_0x538303(-0x233,-0x228)]]={..._0x6444a3,'description':_0x58e8a6[_0x538303(-_0x4f20be._0x8f1b62,-_0x4f20be._0x42d2ac)]||''};if(_0x58e8a6[_0x21c1a2(0x4b9,0x4be)])_0x1cccbf[_0x21c1a2(_0x4f20be._0x446b7d,_0x4f20be._0x135b39)](_0x58e8a6[_0x538303(-0x233,-0x224)]);}function _0x538303(_0x587d1c,_0x15ed73){return _0x529ecb(_0x587d1c- -_0xae39a9._0x120193,_0x15ed73);}return{'name':_0xfacff1[_0x21c1a2(0x4ac,0x4af)],'description':(_0xfacff1[_0x21c1a2(_0x4f20be._0x4927f5,_0x4f20be._0x53fbdf)]||'')+'\x20\x20[promoted\x20wrapper]','inputSchema':{'type':_0x21c1a2(0x4b2,0x4bd),'properties':_0x51f826,'required':_0x1cccbf,'additionalProperties':![]}};}function _0x529ecb(_0x13dc97,_0x2b9338){return _0x6db9(_0x13dc97-0x2a0,_0x2b9338);}function renderLiteral(_0x5a0807,_0x5188f7){const _0x9a6a61={_0x34c931:0x393,_0x25b5ab:0x397,_0x27efd2:0x395,_0x3c7683:0x390,_0x12af05:0x4cf,_0x3c9994:0x38e,_0x45e1dc:0x396,_0x3ca8cc:0x3a1,_0x5a1c5a:0x4d9},_0x366da0={_0x47b6a2:0x4b},_0x504203={_0x4269ce:0x101};function _0x1568c0(_0x2a77ac,_0x452fe7){return _0x4d1892(_0x452fe7,_0x2a77ac- -_0x504203._0x4269ce);}function _0x32a8cc(_0x4c721d,_0x59c36e){return _0x4d1892(_0x59c36e,_0x4c721d-_0x366da0._0x47b6a2);}switch(_0x5188f7){case _0x1568c0(0x391,_0x9a6a61._0x34c931):return JSON[_0x1568c0(0x38e,_0x9a6a61._0x25b5ab)](String(_0x5a0807??''));case _0x1568c0(0x392,0x39c):return String(Number(_0x5a0807));case _0x1568c0(_0x9a6a61._0x27efd2,_0x9a6a61._0x3c7683):return _0x5a0807?_0x32a8cc(0x4dc,_0x9a6a61._0x12af05):'false';case'array':case'object':return JSON[_0x1568c0(_0x9a6a61._0x3c9994,_0x9a6a61._0x45e1dc)](_0x5a0807??null);case _0x1568c0(_0x9a6a61._0x3ca8cc,0x3ab):return String(_0x5a0807??'');default:return JSON[_0x32a8cc(0x4da,_0x9a6a61._0x5a1c5a)](String(_0x5a0807??''));}}export function fillTemplate(_0x50fc21,_0x4f1d31){const _0x7cca13={_0x59c3ab:0x107,_0x4cbc8b:0x3b3,_0x253625:0x3bc,_0x38725d:0x3b1,_0x10c4e6:0x3a6,_0x22f0fa:0x3ad,_0x2023f0:0x3c0,_0x2cb98b:0x3c2,_0x3114bd:0x108,_0x4cc355:0x3a4,_0x1a50aa:0x3c4};function _0x33eaca(_0x4c1e96,_0x3d4bfc){return _0x4d1892(_0x3d4bfc,_0x4c1e96- -0xd9);}let _0x281b01=_0x50fc21[_0x162266(-_0x7cca13._0x59c3ab,-0x110)];function _0x162266(_0x37b235,_0x57f13d){return _0x4d1892(_0x57f13d,_0x37b235- -0x590);}for(const _0x1a7e36 of _0x50fc21['params']||[]){const _0x308872=_0x4f1d31&&Object[_0x162266(-0x102,-0x108)][_0x33eaca(_0x7cca13._0x4cbc8b,_0x7cca13._0x253625)]['call'](_0x4f1d31,_0x1a7e36['name']);let _0x132cb5=_0x308872?_0x4f1d31[_0x1a7e36[_0x33eaca(_0x7cca13._0x38725d,_0x7cca13._0x10c4e6)]]:_0x1a7e36['default'];if(_0x132cb5===undefined){if(_0x1a7e36[_0x33eaca(0x3be,_0x7cca13._0x22f0fa)])throw new Error(_0x33eaca(_0x7cca13._0x2023f0,0x3b3)+_0x1a7e36[_0x33eaca(_0x7cca13._0x38725d,_0x7cca13._0x2cb98b)]+'\x27');continue;}const _0x565bbd=renderLiteral(_0x132cb5,_0x1a7e36[_0x162266(-_0x7cca13._0x3114bd,-0xfc)]);_0x281b01=_0x281b01['split']('{{'+_0x1a7e36[_0x33eaca(0x3b1,_0x7cca13._0x4cc355)]+'}}')[_0x33eaca(_0x7cca13._0x1a50aa,0x3c2)](_0x565bbd);}return _0x281b01;}
package/package.json CHANGED
@@ -1,50 +1,51 @@
1
- {
2
- "name": "@synthetic-ai/ae-mcp",
3
- "version": "2.4.5",
4
- "type": "module",
5
- "description": "Control Adobe After Effects with 220+ AI tools via MCP. Two modes: Standalone (npx, no AE open) or Panel (CEP bridge, instant). By Synthetic (synthetic.com.ar).",
6
- "homepage": "https://synthetic.com.ar/ae-mcp",
7
- "repository": {
8
- "type": "git",
9
- "url": "https://github.com/matiasEltrece/after-effects-mcp"
10
- },
11
- "author": "Synthetic <hola@synthetic.com.ar> (https://synthetic.com.ar)",
12
- "license": "UNLICENSED",
13
- "keywords": [
14
- "mcp",
15
- "after-effects",
16
- "adobe",
17
- "jsx",
18
- "extendscript",
19
- "model-context-protocol",
20
- "claude",
21
- "ai",
22
- "synthetic"
23
- ],
24
- "main": "./dist/server.mjs",
25
- "bin": {
26
- "ae-mcp": "./dist/server.mjs"
27
- },
28
- "files": [
29
- "dist/server.mjs",
30
- "dist/bridge.mjs",
31
- "dist/store.mjs"
32
- ],
33
- "scripts": {
34
- "build": "node scripts/build.mjs",
35
- "prepublishOnly": "npm run build",
36
- "check": "node --check src/server.mjs",
37
- "inspect:tools": "node scripts/inspect-tools.mjs",
38
- "smoke": "node scripts/smoke-suite.mjs",
39
- "package-cep": "node scripts/package-cep.mjs"
40
- },
41
- "engines": {
42
- "node": ">=18"
43
- },
44
- "publishConfig": {
45
- "access": "public"
46
- },
47
- "devDependencies": {
48
- "javascript-obfuscator": "^5.4.3"
49
- }
50
- }
1
+ {
2
+ "name": "@synthetic-ai/ae-mcp",
3
+ "version": "2.5.0",
4
+ "type": "module",
5
+ "description": "Control Adobe After Effects with 220+ AI tools via MCP. Two modes: Standalone (npx, no AE open) or Panel (CEP bridge, instant). By Synthetic (synthetic.com.ar).",
6
+ "homepage": "https://synthetic.com.ar/ae-mcp",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/matiasEltrece/after-effects-mcp"
10
+ },
11
+ "author": "Synthetic <hola@synthetic.com.ar> (https://synthetic.com.ar)",
12
+ "license": "UNLICENSED",
13
+ "keywords": [
14
+ "mcp",
15
+ "after-effects",
16
+ "adobe",
17
+ "jsx",
18
+ "extendscript",
19
+ "model-context-protocol",
20
+ "claude",
21
+ "ai",
22
+ "synthetic"
23
+ ],
24
+ "main": "./dist/server.mjs",
25
+ "bin": {
26
+ "ae-mcp": "./dist/server.mjs"
27
+ },
28
+ "files": [
29
+ "dist/server.mjs",
30
+ "dist/bridge.mjs",
31
+ "dist/store.mjs",
32
+ "scripts/ae-dialogs.ps1"
33
+ ],
34
+ "scripts": {
35
+ "build": "node scripts/build.mjs",
36
+ "prepublishOnly": "npm run build",
37
+ "check": "node --check src/server.mjs",
38
+ "inspect:tools": "node scripts/inspect-tools.mjs",
39
+ "smoke": "node scripts/smoke-suite.mjs",
40
+ "package-cep": "node scripts/package-cep.mjs"
41
+ },
42
+ "engines": {
43
+ "node": ">=18"
44
+ },
45
+ "publishConfig": {
46
+ "access": "public"
47
+ },
48
+ "devDependencies": {
49
+ "javascript-obfuscator": "^5.4.3"
50
+ }
51
+ }
@@ -0,0 +1,129 @@
1
+ param(
2
+ [ValidateSet("list", "close")]
3
+ [string]$Mode = "list",
4
+ [string]$TitlePattern = "^After Effects$",
5
+ [string]$ButtonPattern = "Aceptar|OK|Accept|Cerrar|Close",
6
+ [switch]$All
7
+ )
8
+
9
+ $ErrorActionPreference = "Stop"
10
+
11
+ Add-Type -AssemblyName UIAutomationClient
12
+ Add-Type -AssemblyName UIAutomationTypes
13
+
14
+ function Convert-Rect($rect) {
15
+ @{
16
+ left = $rect.Left
17
+ top = $rect.Top
18
+ width = $rect.Width
19
+ height = $rect.Height
20
+ }
21
+ }
22
+
23
+ function Get-DescendantText($element) {
24
+ $texts = @()
25
+ $condition = [System.Windows.Automation.Condition]::TrueCondition
26
+ $children = $element.FindAll([System.Windows.Automation.TreeScope]::Descendants, $condition)
27
+
28
+ foreach ($child in $children) {
29
+ $name = $child.Current.Name
30
+ $controlType = $child.Current.ControlType.ProgrammaticName
31
+ if ($name -and $name.Trim().Length -gt 0 -and ($controlType -match "Text|Button|Edit|Document")) {
32
+ $trimmed = $name.Trim()
33
+ if ($texts -notcontains $trimmed) {
34
+ $texts += $trimmed
35
+ }
36
+ }
37
+ }
38
+
39
+ return $texts
40
+ }
41
+
42
+ function Get-DialogButtons($element) {
43
+ $buttons = @()
44
+ $condition = New-Object System.Windows.Automation.PropertyCondition(
45
+ [System.Windows.Automation.AutomationElement]::ControlTypeProperty,
46
+ [System.Windows.Automation.ControlType]::Button
47
+ )
48
+ $items = $element.FindAll([System.Windows.Automation.TreeScope]::Descendants, $condition)
49
+
50
+ foreach ($button in $items) {
51
+ $buttons += [pscustomobject]@{
52
+ name = $button.Current.Name
53
+ automationId = $button.Current.AutomationId
54
+ enabled = $button.Current.IsEnabled
55
+ }
56
+ }
57
+
58
+ return $buttons
59
+ }
60
+
61
+ function Invoke-DialogButton($element, $pattern) {
62
+ $condition = New-Object System.Windows.Automation.PropertyCondition(
63
+ [System.Windows.Automation.AutomationElement]::ControlTypeProperty,
64
+ [System.Windows.Automation.ControlType]::Button
65
+ )
66
+ $buttons = $element.FindAll([System.Windows.Automation.TreeScope]::Descendants, $condition)
67
+
68
+ foreach ($button in $buttons) {
69
+ if ($button.Current.Name -match $pattern -and $button.Current.IsEnabled) {
70
+ $invokePattern = $button.GetCurrentPattern([System.Windows.Automation.InvokePattern]::Pattern)
71
+ $invokePattern.Invoke()
72
+ return $button.Current.Name
73
+ }
74
+ }
75
+
76
+ return $null
77
+ }
78
+
79
+ $root = [System.Windows.Automation.AutomationElement]::RootElement
80
+ $windowCondition = New-Object System.Windows.Automation.PropertyCondition(
81
+ [System.Windows.Automation.AutomationElement]::ControlTypeProperty,
82
+ [System.Windows.Automation.ControlType]::Window
83
+ )
84
+ $windows = $root.FindAll([System.Windows.Automation.TreeScope]::Children, $windowCondition)
85
+ $dialogs = @()
86
+
87
+ foreach ($window in $windows) {
88
+ $name = $window.Current.Name
89
+ $className = $window.Current.ClassName
90
+ $processId = $window.Current.ProcessId
91
+
92
+ if (-not $All -and $name -notmatch $TitlePattern) {
93
+ continue
94
+ }
95
+
96
+ $texts = Get-DescendantText $window
97
+ $buttons = Get-DialogButtons $window
98
+ $closedBy = $null
99
+
100
+ if ($Mode -eq "close") {
101
+ $closedBy = Invoke-DialogButton $window $ButtonPattern
102
+ if (-not $closedBy) {
103
+ try {
104
+ $windowPattern = $window.GetCurrentPattern([System.Windows.Automation.WindowPattern]::Pattern)
105
+ $windowPattern.Close()
106
+ $closedBy = "WindowPattern.Close"
107
+ } catch {
108
+ $closedBy = $null
109
+ }
110
+ }
111
+ }
112
+
113
+ $dialogs += [pscustomobject]@{
114
+ title = $name
115
+ className = $className
116
+ processId = $processId
117
+ bounds = Convert-Rect $window.Current.BoundingRectangle
118
+ texts = $texts
119
+ buttons = $buttons
120
+ closedBy = $closedBy
121
+ }
122
+ }
123
+
124
+ @{
125
+ ok = $true
126
+ mode = $Mode
127
+ count = $dialogs.Count
128
+ dialogs = @($dialogs)
129
+ } | ConvertTo-Json -Depth 8