@univerjs-pro/mcp 0.15.2-insiders.20260122-b1556b1 → 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 _0x1d7f4a=_0x7853;function _0x3404(){const _0x320c18=['McpToolCallFailed','getAllMCPTools','747515bveVxQ','connectMCP','McpConnectionStatusChanged','executeTool','disconnectMCP','McpToolCallExecuted','6NSZixu','McpToolCallReceived','registerEventHandler','Event','subscribe','fireEvent','type','extend','event$','callMCPTool','get','2759560eQYoZl','1194270yKmyGi','1185198zmmtxK','validateMCPToolCall','2500388GxxxcD','1645605qhmIOu','12213819NGpsIC','1CBSCdv','_initialize','_registerMCPFacadeEvents','_injector','validateToolCall','data'];_0x3404=function(){return _0x320c18;};return _0x3404();}(function(_0x1555b4,_0x5bc2b5){const _0x2e7e69=_0x7853,_0x58ffe9=_0x1555b4();while(!![]){try{const _0x7507c6=parseInt(_0x2e7e69(0x18b))/0x1*(parseInt(_0x2e7e69(0x185))/0x2)+parseInt(_0x2e7e69(0x189))/0x3+parseInt(_0x2e7e69(0x188))/0x4+parseInt(_0x2e7e69(0x193))/0x5*(parseInt(_0x2e7e69(0x199))/0x6)+parseInt(_0x2e7e69(0x186))/0x7+-parseInt(_0x2e7e69(0x184))/0x8+-parseInt(_0x2e7e69(0x18a))/0x9;if(_0x7507c6===_0x5bc2b5)break;else _0x58ffe9['push'](_0x58ffe9['shift']());}catch(_0x3787c8){_0x58ffe9['push'](_0x58ffe9['shift']());}}}(_0x3404,0x5e9dc));import{MCPEventId as _0x18d70f,MCPEventService as _0x7fd5ba,IMCPToolRegistry as _0x1db659,MCPConnectionController as _0x5d8c0}from'@univerjs-pro/mcp';import{FEventName as _0x44d09a,FUniver as _0x11a636}from'@univerjs/core/facade';function _0x7853(_0x38a226,_0x25574b){_0x38a226=_0x38a226-0x182;const _0x34043a=_0x3404();let _0x785336=_0x34043a[_0x38a226];return _0x785336;}import{toDisposable as _0x54b005}from'@univerjs/core';class d{get['McpConnectionStatusChanged'](){return _0x18d70f['McpConnectionStatusChanged'];}get[_0x1d7f4a(0x19a)](){const _0x36e390=_0x1d7f4a;return _0x18d70f[_0x36e390(0x19a)];}get[_0x1d7f4a(0x198)](){const _0x2d64cf=_0x1d7f4a;return _0x18d70f[_0x2d64cf(0x198)];}get['McpToolCallFailed'](){const _0x5f2a36=_0x1d7f4a;return _0x18d70f[_0x5f2a36(0x191)];}}_0x44d09a[_0x1d7f4a(0x1a0)](d);class M extends _0x11a636{[_0x1d7f4a(0x18c)](_0x1d3396){const _0x2b6988=_0x1d7f4a;this[_0x2b6988(0x18d)](_0x1d3396);}[_0x1d7f4a(0x18d)](_0x5b68d1){const _0x162c08=_0x1d7f4a,_0x1f35a5=_0x5b68d1[_0x162c08(0x183)](_0x7fd5ba);this[_0x162c08(0x19b)](this['Event']['McpConnectionStatusChanged'],()=>_0x54b005(_0x1f35a5[_0x162c08(0x1a1)]['subscribe'](_0x474234=>{const _0x1f62af=_0x162c08;_0x474234[_0x1f62af(0x19f)]===_0x18d70f[_0x1f62af(0x195)]&&this[_0x1f62af(0x19e)](this['Event'][_0x1f62af(0x195)],_0x474234[_0x1f62af(0x190)]);}))),this['registerEventHandler'](this[_0x162c08(0x19c)][_0x162c08(0x19a)],()=>_0x54b005(_0x1f35a5['event$'][_0x162c08(0x19d)](_0x31a8be=>{const _0x58113e=_0x162c08;_0x31a8be[_0x58113e(0x19f)]===_0x18d70f[_0x58113e(0x19a)]&&this['fireEvent'](this[_0x58113e(0x19c)]['McpToolCallReceived'],_0x31a8be[_0x58113e(0x190)]);}))),this[_0x162c08(0x19b)](this[_0x162c08(0x19c)][_0x162c08(0x198)],()=>_0x54b005(_0x1f35a5[_0x162c08(0x1a1)][_0x162c08(0x19d)](_0x510e17=>{const _0x31fd6a=_0x162c08;_0x510e17[_0x31fd6a(0x19f)]===_0x18d70f['McpToolCallExecuted']&&this['fireEvent'](this['Event'][_0x31fd6a(0x198)],_0x510e17[_0x31fd6a(0x190)]);}))),this['registerEventHandler'](this[_0x162c08(0x19c)][_0x162c08(0x191)],()=>_0x54b005(_0x1f35a5['event$'][_0x162c08(0x19d)](_0x5311df=>{const _0x4e007d=_0x162c08;_0x5311df[_0x4e007d(0x19f)]===_0x18d70f[_0x4e007d(0x191)]&&this[_0x4e007d(0x19e)](this['Event']['McpToolCallFailed'],_0x5311df[_0x4e007d(0x190)]);})));}[_0x1d7f4a(0x187)](_0x1af2b9,_0x2b0d22){const _0x5d8ae7=_0x1d7f4a;return this[_0x5d8ae7(0x18e)][_0x5d8ae7(0x183)](_0x1db659)[_0x5d8ae7(0x18f)](_0x1af2b9,_0x2b0d22);}[_0x1d7f4a(0x192)](){const _0xa4f309=_0x1d7f4a;return this['_injector'][_0xa4f309(0x183)](_0x1db659)['getAllTools']();}[_0x1d7f4a(0x182)](_0x1f45d1,_0x288498){const _0x1efd80=_0x1d7f4a;return this[_0x1efd80(0x18e)]['get'](_0x1db659)[_0x1efd80(0x196)](_0x1f45d1,_0x288498);}['getMCPConnectionStatus'](){const _0x577e59=_0x1d7f4a;return this[_0x577e59(0x18e)][_0x577e59(0x183)](_0x5d8c0)['getConnectionStatus']();}[_0x1d7f4a(0x194)](){this['_injector']['get'](_0x5d8c0)['connect']();}[_0x1d7f4a(0x197)](){const _0x4d5911=_0x1d7f4a;this['_injector'][_0x4d5911(0x183)](_0x5d8c0)['disconnect']();}}_0x11a636[_0x1d7f4a(0x1a0)](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);