@univerjs-pro/mcp 0.15.0-insiders.20260108-7b9120d → 0.15.0-insiders.20260110-48b77c8

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/es/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x11c006=_0x3a92;(function(_0x1323e6,_0x239296){const _0x42e0aa=_0x3a92,_0x59aacb=_0x1323e6();while(!![]){try{const _0x5438fa=parseInt(_0x42e0aa(0xbc))/0x1+-parseInt(_0x42e0aa(0xac))/0x2+parseInt(_0x42e0aa(0xbe))/0x3*(parseInt(_0x42e0aa(0xb2))/0x4)+-parseInt(_0x42e0aa(0xbb))/0x5+-parseInt(_0x42e0aa(0xb6))/0x6+-parseInt(_0x42e0aa(0xbf))/0x7+parseInt(_0x42e0aa(0xad))/0x8;if(_0x5438fa===_0x239296)break;else _0x59aacb['push'](_0x59aacb['shift']());}catch(_0x5bec41){_0x59aacb['push'](_0x59aacb['shift']());}}}(_0x37a0,0x45c22));function _0x37a0(){const _0x4094b2=['getAllMCPTools','1485855yClpeO','210484TdMmQr','_initialize','36ZAcUre','3767127beGtEu','get','McpToolCallReceived','getMCPConnectionStatus','_injector','data','validateToolCall','subscribe','executeTool','disconnect','getConnectionStatus','connectMCP','event$','McpConnectionStatusChanged','1061730wohukF','12012688NXFNky','getAllTools','type','registerEventHandler','fireEvent','1812xcNbzC','McpToolCallFailed','Event','_registerMCPFacadeEvents','393474Dacnls','extend','callMCPTool','McpToolCallExecuted'];_0x37a0=function(){return _0x4094b2;};return _0x37a0();}import{MCPEventId as _0x157220,MCPEventService as _0x5840b0,IMCPToolRegistry as _0x5de207,MCPConnectionController as _0x22a1d9}from'@univerjs-pro/mcp';import{FEventName as _0x3ff436,FUniver as _0x33c00f}from'@univerjs/core/facade';function _0x3a92(_0x20713f,_0x23589f){_0x20713f=_0x20713f-0xa0;const _0x37a0f7=_0x37a0();let _0x3a9222=_0x37a0f7[_0x20713f];return _0x3a9222;}import{toDisposable as _0x549e08}from'@univerjs/core';class d{get[_0x11c006(0xab)](){const _0x111aa1=_0x11c006;return _0x157220[_0x111aa1(0xab)];}get['McpToolCallReceived'](){const _0x3b9e2e=_0x11c006;return _0x157220[_0x3b9e2e(0xa0)];}get['McpToolCallExecuted'](){const _0x2c6b92=_0x11c006;return _0x157220[_0x2c6b92(0xb9)];}get[_0x11c006(0xb3)](){const _0x544b4c=_0x11c006;return _0x157220[_0x544b4c(0xb3)];}}_0x3ff436[_0x11c006(0xb7)](d);class M extends _0x33c00f{[_0x11c006(0xbd)](_0x32db4d){const _0xd70e0e=_0x11c006;this[_0xd70e0e(0xb5)](_0x32db4d);}[_0x11c006(0xb5)](_0x2311dc){const _0x2c4a21=_0x11c006,_0x2b5294=_0x2311dc['get'](_0x5840b0);this[_0x2c4a21(0xb0)](this[_0x2c4a21(0xb4)][_0x2c4a21(0xab)],()=>_0x549e08(_0x2b5294['event$'][_0x2c4a21(0xa5)](_0x398881=>{const _0xcd90ae=_0x2c4a21;_0x398881[_0xcd90ae(0xaf)]===_0x157220[_0xcd90ae(0xab)]&&this[_0xcd90ae(0xb1)](this[_0xcd90ae(0xb4)][_0xcd90ae(0xab)],_0x398881[_0xcd90ae(0xa3)]);}))),this[_0x2c4a21(0xb0)](this[_0x2c4a21(0xb4)][_0x2c4a21(0xa0)],()=>_0x549e08(_0x2b5294[_0x2c4a21(0xaa)][_0x2c4a21(0xa5)](_0x3cabf0=>{const _0x1923a6=_0x2c4a21;_0x3cabf0[_0x1923a6(0xaf)]===_0x157220[_0x1923a6(0xa0)]&&this['fireEvent'](this[_0x1923a6(0xb4)][_0x1923a6(0xa0)],_0x3cabf0[_0x1923a6(0xa3)]);}))),this[_0x2c4a21(0xb0)](this['Event'][_0x2c4a21(0xb9)],()=>_0x549e08(_0x2b5294[_0x2c4a21(0xaa)][_0x2c4a21(0xa5)](_0xefd010=>{const _0x55c7b9=_0x2c4a21;_0xefd010[_0x55c7b9(0xaf)]===_0x157220[_0x55c7b9(0xb9)]&&this['fireEvent'](this[_0x55c7b9(0xb4)][_0x55c7b9(0xb9)],_0xefd010['data']);}))),this[_0x2c4a21(0xb0)](this[_0x2c4a21(0xb4)][_0x2c4a21(0xb3)],()=>_0x549e08(_0x2b5294[_0x2c4a21(0xaa)][_0x2c4a21(0xa5)](_0x422949=>{const _0x2fa2b3=_0x2c4a21;_0x422949[_0x2fa2b3(0xaf)]===_0x157220['McpToolCallFailed']&&this[_0x2fa2b3(0xb1)](this[_0x2fa2b3(0xb4)][_0x2fa2b3(0xb3)],_0x422949[_0x2fa2b3(0xa3)]);})));}['validateMCPToolCall'](_0x56b736,_0x12c1e7){const _0x31c399=_0x11c006;return this[_0x31c399(0xa2)]['get'](_0x5de207)[_0x31c399(0xa4)](_0x56b736,_0x12c1e7);}[_0x11c006(0xba)](){const _0xbc550=_0x11c006;return this[_0xbc550(0xa2)][_0xbc550(0xc0)](_0x5de207)[_0xbc550(0xae)]();}[_0x11c006(0xb8)](_0x3c9344,_0x30cfb8){const _0x1ffd0c=_0x11c006;return this['_injector']['get'](_0x5de207)[_0x1ffd0c(0xa6)](_0x3c9344,_0x30cfb8);}[_0x11c006(0xa1)](){const _0x13b8c1=_0x11c006;return this['_injector'][_0x13b8c1(0xc0)](_0x22a1d9)[_0x13b8c1(0xa8)]();}[_0x11c006(0xa9)](){const _0x41eebb=_0x11c006;this[_0x41eebb(0xa2)]['get'](_0x22a1d9)['connect']();}['disconnectMCP'](){const _0x246dcb=_0x11c006;this[_0x246dcb(0xa2)]['get'](_0x22a1d9)[_0x246dcb(0xa7)]();}}_0x33c00f[_0x11c006(0xb7)](M);
1
+ const _0x423d85=_0x1290;function _0x4ce0(){const _0x395cd6=['getAllTools','26RrwyGl','connect','callMCPTool','validateMCPToolCall','6006948GdWqmc','disconnect','event$','registerEventHandler','52691bxygic','executeTool','10366610zauxTq','McpConnectionStatusChanged','McpToolCallExecuted','data','_initialize','disconnectMCP','subscribe','894042vIAJYM','9AVWeIc','type','3754085YrdXYu','_registerMCPFacadeEvents','4ImBvDL','7ddTeHi','connectMCP','McpToolCallReceived','2137245juZftM','Event','get','_injector','validateToolCall','McpToolCallFailed','getMCPConnectionStatus','extend','fireEvent','3581760dvnfPS'];_0x4ce0=function(){return _0x395cd6;};return _0x4ce0();}(function(_0x1c7a35,_0x411dd0){const _0xf7001b=_0x1290,_0x49b6e8=_0x1c7a35();while(!![]){try{const _0xe03606=-parseInt(_0xf7001b(0x11e))/0x1*(parseInt(_0xf7001b(0x116))/0x2)+-parseInt(_0xf7001b(0x127))/0x3+-parseInt(_0xf7001b(0x12c))/0x4*(parseInt(_0xf7001b(0x12a))/0x5)+parseInt(_0xf7001b(0x11a))/0x6*(parseInt(_0xf7001b(0x12d))/0x7)+parseInt(_0xf7001b(0x114))/0x8+parseInt(_0xf7001b(0x128))/0x9*(parseInt(_0xf7001b(0x120))/0xa)+-parseInt(_0xf7001b(0x130))/0xb;if(_0xe03606===_0x411dd0)break;else _0x49b6e8['push'](_0x49b6e8['shift']());}catch(_0x5aa63c){_0x49b6e8['push'](_0x49b6e8['shift']());}}}(_0x4ce0,0x88176));import{MCPEventId as _0x4cf654,MCPEventService as _0x1cfc25,IMCPToolRegistry as _0x18b87e,MCPConnectionController as _0x258516}from'@univerjs-pro/mcp';import{FEventName as _0x45aa7a,FUniver as _0x1d91a5}from'@univerjs/core/facade';import{toDisposable as _0x4b32ea}from'@univerjs/core';class d{get[_0x423d85(0x121)](){const _0x5e2f00=_0x423d85;return _0x4cf654[_0x5e2f00(0x121)];}get[_0x423d85(0x12f)](){const _0x55b8c0=_0x423d85;return _0x4cf654[_0x55b8c0(0x12f)];}get['McpToolCallExecuted'](){return _0x4cf654['McpToolCallExecuted'];}get['McpToolCallFailed'](){return _0x4cf654['McpToolCallFailed'];}}_0x45aa7a['extend'](d);function _0x1290(_0x564171,_0x130ed7){_0x564171=_0x564171-0x10c;const _0x4ce011=_0x4ce0();let _0x1290f0=_0x4ce011[_0x564171];return _0x1290f0;}class M extends _0x1d91a5{[_0x423d85(0x124)](_0x27882b){const _0x41677b=_0x423d85;this[_0x41677b(0x12b)](_0x27882b);}[_0x423d85(0x12b)](_0x1ae620){const _0x5cef3b=_0x423d85,_0x1fc3a6=_0x1ae620['get'](_0x1cfc25);this['registerEventHandler'](this[_0x5cef3b(0x10c)][_0x5cef3b(0x121)],()=>_0x4b32ea(_0x1fc3a6[_0x5cef3b(0x11c)][_0x5cef3b(0x126)](_0x4234c4=>{const _0x2b18ed=_0x5cef3b;_0x4234c4[_0x2b18ed(0x129)]===_0x4cf654['McpConnectionStatusChanged']&&this[_0x2b18ed(0x113)](this[_0x2b18ed(0x10c)][_0x2b18ed(0x121)],_0x4234c4[_0x2b18ed(0x123)]);}))),this[_0x5cef3b(0x11d)](this[_0x5cef3b(0x10c)]['McpToolCallReceived'],()=>_0x4b32ea(_0x1fc3a6[_0x5cef3b(0x11c)][_0x5cef3b(0x126)](_0x5e011e=>{const _0x39857b=_0x5cef3b;_0x5e011e[_0x39857b(0x129)]===_0x4cf654[_0x39857b(0x12f)]&&this[_0x39857b(0x113)](this[_0x39857b(0x10c)][_0x39857b(0x12f)],_0x5e011e['data']);}))),this[_0x5cef3b(0x11d)](this[_0x5cef3b(0x10c)][_0x5cef3b(0x122)],()=>_0x4b32ea(_0x1fc3a6['event$']['subscribe'](_0x4d0e22=>{const _0x542e88=_0x5cef3b;_0x4d0e22[_0x542e88(0x129)]===_0x4cf654[_0x542e88(0x122)]&&this[_0x542e88(0x113)](this['Event'][_0x542e88(0x122)],_0x4d0e22['data']);}))),this[_0x5cef3b(0x11d)](this[_0x5cef3b(0x10c)][_0x5cef3b(0x110)],()=>_0x4b32ea(_0x1fc3a6[_0x5cef3b(0x11c)][_0x5cef3b(0x126)](_0x5681fd=>{const _0x618d8e=_0x5cef3b;_0x5681fd[_0x618d8e(0x129)]===_0x4cf654[_0x618d8e(0x110)]&&this['fireEvent'](this['Event'][_0x618d8e(0x110)],_0x5681fd[_0x618d8e(0x123)]);})));}[_0x423d85(0x119)](_0x53b675,_0x5e248a){const _0x55edf8=_0x423d85;return this[_0x55edf8(0x10e)][_0x55edf8(0x10d)](_0x18b87e)[_0x55edf8(0x10f)](_0x53b675,_0x5e248a);}['getAllMCPTools'](){const _0x55f96b=_0x423d85;return this[_0x55f96b(0x10e)][_0x55f96b(0x10d)](_0x18b87e)[_0x55f96b(0x115)]();}[_0x423d85(0x118)](_0x4a1292,_0x14703a){const _0x55e40f=_0x423d85;return this[_0x55e40f(0x10e)][_0x55e40f(0x10d)](_0x18b87e)[_0x55e40f(0x11f)](_0x4a1292,_0x14703a);}[_0x423d85(0x111)](){const _0x21f207=_0x423d85;return this[_0x21f207(0x10e)][_0x21f207(0x10d)](_0x258516)['getConnectionStatus']();}[_0x423d85(0x12e)](){const _0x3a16c0=_0x423d85;this[_0x3a16c0(0x10e)][_0x3a16c0(0x10d)](_0x258516)[_0x3a16c0(0x117)]();}[_0x423d85(0x125)](){const _0x1b51f6=_0x423d85;this[_0x1b51f6(0x10e)][_0x1b51f6(0x10d)](_0x258516)[_0x1b51f6(0x11b)]();}}_0x1d91a5[_0x423d85(0x112)](M);