@univerjs-pro/mcp 0.15.2-insiders.20260119-edc718c → 0.15.2-insiders.20260124-12fc7f0

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/lib/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x297f86=_0x5568;function _0x5568(_0x3e50ee,_0x3d9495){_0x3e50ee=_0x3e50ee-0x78;const _0x29d99a=_0x29d9();let _0x5568d9=_0x29d99a[_0x3e50ee];return _0x5568d9;}(function(_0x20b71a,_0x3d5b94){const _0x31ef2c=_0x5568,_0x4b7da4=_0x20b71a();while(!![]){try{const _0x4ec97e=-parseInt(_0x31ef2c(0x88))/0x1*(parseInt(_0x31ef2c(0x8d))/0x2)+parseInt(_0x31ef2c(0x99))/0x3*(parseInt(_0x31ef2c(0x8b))/0x4)+-parseInt(_0x31ef2c(0x94))/0x5*(parseInt(_0x31ef2c(0x83))/0x6)+-parseInt(_0x31ef2c(0x81))/0x7*(-parseInt(_0x31ef2c(0x8f))/0x8)+-parseInt(_0x31ef2c(0x98))/0x9*(parseInt(_0x31ef2c(0x96))/0xa)+parseInt(_0x31ef2c(0x7a))/0xb*(parseInt(_0x31ef2c(0x84))/0xc)+parseInt(_0x31ef2c(0x80))/0xd;if(_0x4ec97e===_0x3d5b94)break;else _0x4b7da4['push'](_0x4b7da4['shift']());}catch(_0x14236b){_0x4b7da4['push'](_0x4b7da4['shift']());}}}(_0x29d9,0xe98e3));import{MCPEventId as _0x1cea95,MCPEventService as _0x1a42f5,IMCPToolRegistry as _0x13318c,MCPConnectionController as _0x40a300}from'@univerjs-pro/mcp';import{FEventName as _0x1ac136,FUniver as _0x13c95e}from'@univerjs/core/facade';import{toDisposable as _0x57bcec}from'@univerjs/core';class d{get[_0x297f86(0x87)](){const _0xc124de=_0x297f86;return _0x1cea95[_0xc124de(0x87)];}get['McpToolCallReceived'](){return _0x1cea95['McpToolCallReceived'];}get[_0x297f86(0x7d)](){const _0x2c546f=_0x297f86;return _0x1cea95[_0x2c546f(0x7d)];}get['McpToolCallFailed'](){const _0x2f73dd=_0x297f86;return _0x1cea95[_0x2f73dd(0x9a)];}}_0x1ac136['extend'](d);class M extends _0x13c95e{[_0x297f86(0x9b)](_0x3d015d){const _0x1074d3=_0x297f86;this[_0x1074d3(0x8e)](_0x3d015d);}[_0x297f86(0x8e)](_0x595334){const _0x509028=_0x297f86,_0x4b0af8=_0x595334[_0x509028(0x82)](_0x1a42f5);this[_0x509028(0x85)](this[_0x509028(0x7b)][_0x509028(0x87)],()=>_0x57bcec(_0x4b0af8['event$']['subscribe'](_0x567d3f=>{const _0x4efe0c=_0x509028;_0x567d3f[_0x4efe0c(0x8c)]===_0x1cea95[_0x4efe0c(0x87)]&&this[_0x4efe0c(0x7c)](this[_0x4efe0c(0x7b)][_0x4efe0c(0x87)],_0x567d3f[_0x4efe0c(0x7e)]);}))),this['registerEventHandler'](this[_0x509028(0x7b)][_0x509028(0x79)],()=>_0x57bcec(_0x4b0af8[_0x509028(0x92)][_0x509028(0x97)](_0x2d87a6=>{const _0x3454dd=_0x509028;_0x2d87a6[_0x3454dd(0x8c)]===_0x1cea95[_0x3454dd(0x79)]&&this[_0x3454dd(0x7c)](this[_0x3454dd(0x7b)][_0x3454dd(0x79)],_0x2d87a6[_0x3454dd(0x7e)]);}))),this[_0x509028(0x85)](this[_0x509028(0x7b)][_0x509028(0x7d)],()=>_0x57bcec(_0x4b0af8['event$'][_0x509028(0x97)](_0x1f6781=>{const _0x35574f=_0x509028;_0x1f6781[_0x35574f(0x8c)]===_0x1cea95[_0x35574f(0x7d)]&&this[_0x35574f(0x7c)](this[_0x35574f(0x7b)][_0x35574f(0x7d)],_0x1f6781['data']);}))),this[_0x509028(0x85)](this[_0x509028(0x7b)][_0x509028(0x9a)],()=>_0x57bcec(_0x4b0af8[_0x509028(0x92)][_0x509028(0x97)](_0x308c62=>{const _0xca098=_0x509028;_0x308c62['type']===_0x1cea95[_0xca098(0x9a)]&&this[_0xca098(0x7c)](this[_0xca098(0x7b)][_0xca098(0x9a)],_0x308c62[_0xca098(0x7e)]);})));}['validateMCPToolCall'](_0xc98f22,_0x149822){const _0x5502ae=_0x297f86;return this[_0x5502ae(0x78)][_0x5502ae(0x82)](_0x13318c)['validateToolCall'](_0xc98f22,_0x149822);}['getAllMCPTools'](){const _0x34a878=_0x297f86;return this['_injector'][_0x34a878(0x82)](_0x13318c)[_0x34a878(0x93)]();}[_0x297f86(0x8a)](_0x4a7a1c,_0x3e02a6){const _0x57ce28=_0x297f86;return this['_injector'][_0x57ce28(0x82)](_0x13318c)['executeTool'](_0x4a7a1c,_0x3e02a6);}[_0x297f86(0x89)](){const _0x384a5b=_0x297f86;return this[_0x384a5b(0x78)]['get'](_0x40a300)[_0x384a5b(0x86)]();}[_0x297f86(0x7f)](){const _0x1efd71=_0x297f86;this[_0x1efd71(0x78)][_0x1efd71(0x82)](_0x40a300)['connect']();}[_0x297f86(0x95)](){const _0xedd6dc=_0x297f86;this[_0xedd6dc(0x78)][_0xedd6dc(0x82)](_0x40a300)[_0xedd6dc(0x90)]();}}function _0x29d9(){const _0x55ecd9=['event$','getAllTools','8604110zRKVdS','disconnectMCP','4720KBOhYO','subscribe','21771vLZjnB','3819369GLWfXG','McpToolCallFailed','_initialize','_injector','McpToolCallReceived','20010122SjMDLn','Event','fireEvent','McpToolCallExecuted','data','connectMCP','15041299SPDBUq','95837MsqYAC','get','6FqYoxV','12rsuWPP','registerEventHandler','getConnectionStatus','McpConnectionStatusChanged','6397lycnTx','getMCPConnectionStatus','callMCPTool','4DFsUpF','type','494BGWAYe','_registerMCPFacadeEvents','672pCUIQb','disconnect','extend'];_0x29d9=function(){return _0x55ecd9;};return _0x29d9();}_0x13c95e[_0x297f86(0x91)](M);
1
+ const _0x2136e6=_0x5e37;(function(_0x375161,_0x10489f){const _0x13c4d1=_0x5e37,_0x587438=_0x375161();while(!![]){try{const _0x2db7b3=-parseInt(_0x13c4d1(0x13e))/0x1*(-parseInt(_0x13c4d1(0x154))/0x2)+parseInt(_0x13c4d1(0x145))/0x3*(parseInt(_0x13c4d1(0x147))/0x4)+-parseInt(_0x13c4d1(0x13c))/0x5+-parseInt(_0x13c4d1(0x148))/0x6*(-parseInt(_0x13c4d1(0x132))/0x7)+-parseInt(_0x13c4d1(0x133))/0x8*(-parseInt(_0x13c4d1(0x14b))/0x9)+-parseInt(_0x13c4d1(0x14a))/0xa+parseInt(_0x13c4d1(0x137))/0xb;if(_0x2db7b3===_0x10489f)break;else _0x587438['push'](_0x587438['shift']());}catch(_0x3158a5){_0x587438['push'](_0x587438['shift']());}}}(_0x435c,0xce1da));import{MCPEventId as _0x5ddee0,MCPEventService as _0x16cfc7,IMCPToolRegistry as _0x24b6a6,MCPConnectionController as _0x3a1d84}from'@univerjs-pro/mcp';function _0x5e37(_0x2d1de3,_0x12b01e){_0x2d1de3=_0x2d1de3-0x131;const _0x435cbf=_0x435c();let _0x5e37e1=_0x435cbf[_0x2d1de3];return _0x5e37e1;}import{FEventName as _0x130837,FUniver as _0x2088bb}from'@univerjs/core/facade';function _0x435c(){const _0x15d2a2=['McpToolCallExecuted','_registerMCPFacadeEvents','Event','McpConnectionStatusChanged','extend','event$','connect','callMCPTool','2214qivovV','getAllMCPTools','2513jxfzTA','1024hRhdNu','getAllTools','disconnectMCP','get','9603055lgknqU','disconnect','executeTool','registerEventHandler','McpToolCallFailed','5952250MbuMAf','_injector','754YhAeap','_initialize','fireEvent','getConnectionStatus','McpToolCallReceived','subscribe','getMCPConnectionStatus','96GdoZpr','data','14072IrFCAr','5442FDBjuI','type','4640680Bpkfjq','24813vgwHzN'];_0x435c=function(){return _0x15d2a2;};return _0x435c();}import{toDisposable as _0x177399}from'@univerjs/core';class d{get[_0x2136e6(0x14f)](){const _0x1e7658=_0x2136e6;return _0x5ddee0[_0x1e7658(0x14f)];}get[_0x2136e6(0x142)](){const _0x557b4e=_0x2136e6;return _0x5ddee0[_0x557b4e(0x142)];}get[_0x2136e6(0x14c)](){const _0x4c2b89=_0x2136e6;return _0x5ddee0[_0x4c2b89(0x14c)];}get[_0x2136e6(0x13b)](){const _0x1be2b5=_0x2136e6;return _0x5ddee0[_0x1be2b5(0x13b)];}}_0x130837[_0x2136e6(0x150)](d);class M extends _0x2088bb{[_0x2136e6(0x13f)](_0x27c525){const _0x1b6fea=_0x2136e6;this[_0x1b6fea(0x14d)](_0x27c525);}[_0x2136e6(0x14d)](_0x13c3d4){const _0x4811fd=_0x2136e6,_0x56fc77=_0x13c3d4[_0x4811fd(0x136)](_0x16cfc7);this[_0x4811fd(0x13a)](this['Event'][_0x4811fd(0x14f)],()=>_0x177399(_0x56fc77[_0x4811fd(0x151)][_0x4811fd(0x143)](_0x50df3e=>{const _0x1696f4=_0x4811fd;_0x50df3e[_0x1696f4(0x149)]===_0x5ddee0[_0x1696f4(0x14f)]&&this[_0x1696f4(0x140)](this[_0x1696f4(0x14e)][_0x1696f4(0x14f)],_0x50df3e[_0x1696f4(0x146)]);}))),this[_0x4811fd(0x13a)](this[_0x4811fd(0x14e)]['McpToolCallReceived'],()=>_0x177399(_0x56fc77[_0x4811fd(0x151)][_0x4811fd(0x143)](_0x487076=>{const _0xaa16=_0x4811fd;_0x487076[_0xaa16(0x149)]===_0x5ddee0[_0xaa16(0x142)]&&this['fireEvent'](this['Event']['McpToolCallReceived'],_0x487076[_0xaa16(0x146)]);}))),this[_0x4811fd(0x13a)](this[_0x4811fd(0x14e)]['McpToolCallExecuted'],()=>_0x177399(_0x56fc77[_0x4811fd(0x151)][_0x4811fd(0x143)](_0x3b44b7=>{const _0x54dff7=_0x4811fd;_0x3b44b7['type']===_0x5ddee0['McpToolCallExecuted']&&this[_0x54dff7(0x140)](this[_0x54dff7(0x14e)][_0x54dff7(0x14c)],_0x3b44b7['data']);}))),this['registerEventHandler'](this['Event'][_0x4811fd(0x13b)],()=>_0x177399(_0x56fc77[_0x4811fd(0x151)]['subscribe'](_0x302399=>{const _0x1b9a06=_0x4811fd;_0x302399[_0x1b9a06(0x149)]===_0x5ddee0['McpToolCallFailed']&&this['fireEvent'](this[_0x1b9a06(0x14e)]['McpToolCallFailed'],_0x302399[_0x1b9a06(0x146)]);})));}['validateMCPToolCall'](_0x1daff4,_0x418381){const _0x1aa48e=_0x2136e6;return this[_0x1aa48e(0x13d)][_0x1aa48e(0x136)](_0x24b6a6)['validateToolCall'](_0x1daff4,_0x418381);}[_0x2136e6(0x131)](){const _0x53c424=_0x2136e6;return this[_0x53c424(0x13d)][_0x53c424(0x136)](_0x24b6a6)[_0x53c424(0x134)]();}[_0x2136e6(0x153)](_0x46f41e,_0x231809){const _0x2f094f=_0x2136e6;return this[_0x2f094f(0x13d)][_0x2f094f(0x136)](_0x24b6a6)[_0x2f094f(0x139)](_0x46f41e,_0x231809);}[_0x2136e6(0x144)](){const _0x1d38a7=_0x2136e6;return this['_injector'][_0x1d38a7(0x136)](_0x3a1d84)[_0x1d38a7(0x141)]();}['connectMCP'](){const _0x4d2291=_0x2136e6;this['_injector'][_0x4d2291(0x136)](_0x3a1d84)[_0x4d2291(0x152)]();}[_0x2136e6(0x135)](){const _0x4a8ddd=_0x2136e6;this[_0x4a8ddd(0x13d)][_0x4a8ddd(0x136)](_0x3a1d84)[_0x4a8ddd(0x138)]();}}_0x2088bb[_0x2136e6(0x150)](M);