@univerjs-pro/mcp 0.15.2-insiders.20260124-12fc7f0 → 0.15.3-insiders.20260131-b9b8805

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 _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);
1
+ const _0x21ee62=_0x45f5;(function(_0xebe441,_0x3ed493){const _0x4b2f94=_0x45f5,_0x25f3e5=_0xebe441();while(!![]){try{const _0x3e8fdf=parseInt(_0x4b2f94(0x1c6))/0x1*(-parseInt(_0x4b2f94(0x1bb))/0x2)+-parseInt(_0x4b2f94(0x1b5))/0x3+-parseInt(_0x4b2f94(0x1c2))/0x4+-parseInt(_0x4b2f94(0x1c3))/0x5+parseInt(_0x4b2f94(0x1d0))/0x6*(-parseInt(_0x4b2f94(0x1b6))/0x7)+-parseInt(_0x4b2f94(0x1b9))/0x8*(parseInt(_0x4b2f94(0x1be))/0x9)+parseInt(_0x4b2f94(0x1ba))/0xa*(parseInt(_0x4b2f94(0x1cb))/0xb);if(_0x3e8fdf===_0x3ed493)break;else _0x25f3e5['push'](_0x25f3e5['shift']());}catch(_0x5c0785){_0x25f3e5['push'](_0x25f3e5['shift']());}}}(_0x1e70,0x24e5d));import{MCPEventId as _0x5c0086,MCPEventService as _0x1b5509,IMCPToolRegistry as _0x313c90,MCPConnectionController as _0x531689}from'@univerjs-pro/mcp';function _0x45f5(_0x48d135,_0x1a5d4f){_0x48d135=_0x48d135-0x1af;const _0x1e700b=_0x1e70();let _0x45f573=_0x1e700b[_0x48d135];return _0x45f573;}import{FEventName as _0x5c88da,FUniver as _0x4a2e02}from'@univerjs/core/facade';import{toDisposable as _0x1703b9}from'@univerjs/core';function _0x1e70(){const _0x472bd1=['getAllTools','getMCPConnectionStatus','20493LuQlJp','35eIMSMT','connectMCP','McpToolCallReceived','42848iJyMyT','10bIyzmR','2aMJImC','validateToolCall','getAllMCPTools','225mglshn','subscribe','event$','_registerMCPFacadeEvents','149736aukBSQ','783720FxWMci','disposeWithMe','McpToolCallFailed','127509xavJdN','extend','disconnect','McpToolCallExecuted','get','7133401PAdrXe','validateMCPToolCall','_injector','disconnectMCP','McpConnectionStatusChanged','41928qAqbhK','data','callMCPTool','fireEvent','type','registerEventHandler','Event'];_0x1e70=function(){return _0x472bd1;};return _0x1e70();}class d{get[_0x21ee62(0x1cf)](){const _0x32a72d=_0x21ee62;return _0x5c0086[_0x32a72d(0x1cf)];}get[_0x21ee62(0x1b8)](){const _0x296ce8=_0x21ee62;return _0x5c0086[_0x296ce8(0x1b8)];}get[_0x21ee62(0x1c9)](){const _0x3463b7=_0x21ee62;return _0x5c0086[_0x3463b7(0x1c9)];}get[_0x21ee62(0x1c5)](){return _0x5c0086['McpToolCallFailed'];}}_0x5c88da['extend'](d);class M extends _0x4a2e02{['_initialize'](_0x95bba6){this['_registerMCPFacadeEvents'](_0x95bba6);}[_0x21ee62(0x1c1)](_0x1fcf62){const _0x420d49=_0x21ee62,_0x440368=_0x1fcf62[_0x420d49(0x1ca)](_0x1b5509);this[_0x420d49(0x1c4)](this['registerEventHandler'](this[_0x420d49(0x1b2)][_0x420d49(0x1cf)],()=>_0x1703b9(_0x440368[_0x420d49(0x1c0)][_0x420d49(0x1bf)](_0x42fe24=>{const _0x46d21f=_0x420d49;_0x42fe24[_0x46d21f(0x1b0)]===_0x5c0086['McpConnectionStatusChanged']&&this[_0x46d21f(0x1af)](this[_0x46d21f(0x1b2)]['McpConnectionStatusChanged'],_0x42fe24['data']);})))),this[_0x420d49(0x1c4)](this[_0x420d49(0x1b1)](this[_0x420d49(0x1b2)][_0x420d49(0x1b8)],()=>_0x1703b9(_0x440368[_0x420d49(0x1c0)]['subscribe'](_0x4d8f74=>{const _0x3ad7e5=_0x420d49;_0x4d8f74[_0x3ad7e5(0x1b0)]===_0x5c0086[_0x3ad7e5(0x1b8)]&&this[_0x3ad7e5(0x1af)](this[_0x3ad7e5(0x1b2)][_0x3ad7e5(0x1b8)],_0x4d8f74[_0x3ad7e5(0x1d1)]);})))),this[_0x420d49(0x1c4)](this['registerEventHandler'](this['Event'][_0x420d49(0x1c9)],()=>_0x1703b9(_0x440368[_0x420d49(0x1c0)][_0x420d49(0x1bf)](_0x5a929b=>{const _0x18aeea=_0x420d49;_0x5a929b[_0x18aeea(0x1b0)]===_0x5c0086['McpToolCallExecuted']&&this[_0x18aeea(0x1af)](this[_0x18aeea(0x1b2)]['McpToolCallExecuted'],_0x5a929b[_0x18aeea(0x1d1)]);})))),this['disposeWithMe'](this[_0x420d49(0x1b1)](this[_0x420d49(0x1b2)]['McpToolCallFailed'],()=>_0x1703b9(_0x440368['event$'][_0x420d49(0x1bf)](_0x562307=>{const _0x3b63fc=_0x420d49;_0x562307[_0x3b63fc(0x1b0)]===_0x5c0086[_0x3b63fc(0x1c5)]&&this[_0x3b63fc(0x1af)](this['Event'][_0x3b63fc(0x1c5)],_0x562307[_0x3b63fc(0x1d1)]);}))));}[_0x21ee62(0x1cc)](_0x3cca4e,_0x3b0f21){const _0x4f20bf=_0x21ee62;return this['_injector'][_0x4f20bf(0x1ca)](_0x313c90)[_0x4f20bf(0x1bc)](_0x3cca4e,_0x3b0f21);}[_0x21ee62(0x1bd)](){const _0x100a39=_0x21ee62;return this[_0x100a39(0x1cd)][_0x100a39(0x1ca)](_0x313c90)[_0x100a39(0x1b3)]();}[_0x21ee62(0x1d2)](_0x2b0342,_0x301794){const _0x4c77d0=_0x21ee62;return this[_0x4c77d0(0x1cd)][_0x4c77d0(0x1ca)](_0x313c90)['executeTool'](_0x2b0342,_0x301794);}[_0x21ee62(0x1b4)](){return this['_injector']['get'](_0x531689)['getConnectionStatus']();}[_0x21ee62(0x1b7)](){const _0x360865=_0x21ee62;this[_0x360865(0x1cd)]['get'](_0x531689)['connect']();}[_0x21ee62(0x1ce)](){const _0x29fbc7=_0x21ee62;this[_0x29fbc7(0x1cd)][_0x29fbc7(0x1ca)](_0x531689)[_0x29fbc7(0x1c8)]();}}_0x4a2e02[_0x21ee62(0x1c7)](M);