@univerjs-pro/mcp 0.12.1-nightly.202511221011 → 0.12.2-nightly.202511241159

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 _0x558678=_0x1769;(function(_0x3af92a,_0x31e9d6){const _0x5d84ab=_0x1769,_0x196dd9=_0x3af92a();while(!![]){try{const _0x257b03=parseInt(_0x5d84ab(0x70))/0x1+parseInt(_0x5d84ab(0x6a))/0x2+-parseInt(_0x5d84ab(0x72))/0x3+-parseInt(_0x5d84ab(0x68))/0x4+-parseInt(_0x5d84ab(0x75))/0x5*(parseInt(_0x5d84ab(0x81))/0x6)+-parseInt(_0x5d84ab(0x7e))/0x7*(parseInt(_0x5d84ab(0x8a))/0x8)+-parseInt(_0x5d84ab(0x6b))/0x9*(-parseInt(_0x5d84ab(0x71))/0xa);if(_0x257b03===_0x31e9d6)break;else _0x196dd9['push'](_0x196dd9['shift']());}catch(_0x306b95){_0x196dd9['push'](_0x196dd9['shift']());}}}(_0x3d9a,0x33c00));import{MCPEventId as _0x51b352,MCPEventService as _0x394a9b,IMCPToolRegistry as _0x2988af,MCPConnectionController as _0x2cc124}from'@univerjs-pro/mcp';import{FEventName as _0x24ad74,FUniver as _0x34f002}from'@univerjs/core/facade';import{toDisposable as _0x229816}from'@univerjs/core';class d{get[_0x558678(0x88)](){const _0x3a002f=_0x558678;return _0x51b352[_0x3a002f(0x88)];}get[_0x558678(0x86)](){return _0x51b352['McpToolCallReceived'];}get[_0x558678(0x78)](){const _0x577095=_0x558678;return _0x51b352[_0x577095(0x78)];}get[_0x558678(0x82)](){const _0x34cbb3=_0x558678;return _0x51b352[_0x34cbb3(0x82)];}}function _0x3d9a(){const _0xa852df=['_initialize','subscribe','extend','validateMCPToolCall','getAllTools','57169bkmjkP','Event','disconnect','66GgWIUs','McpToolCallFailed','callMCPTool','fireEvent','data','McpToolCallReceived','_injector','McpConnectionStatusChanged','executeTool','64GINVFt','getMCPConnectionStatus','919560tOXetD','type','243880zCdkgd','2367RamnvV','disconnectMCP','get','registerEventHandler','event$','364472waokNb','11630wlixqE','219945AqLTrR','_registerMCPFacadeEvents','connect','96260tRffnd','getAllMCPTools','connectMCP','McpToolCallExecuted'];_0x3d9a=function(){return _0xa852df;};return _0x3d9a();}function _0x1769(_0x58b4fb,_0x4a62c7){const _0x3d9ac1=_0x3d9a();return _0x1769=function(_0x176956,_0x3aec2f){_0x176956=_0x176956-0x68;let _0x23b564=_0x3d9ac1[_0x176956];return _0x23b564;},_0x1769(_0x58b4fb,_0x4a62c7);}_0x24ad74[_0x558678(0x7b)](d);class M extends _0x34f002{[_0x558678(0x79)](_0x2b94c4){const _0x2178db=_0x558678;this[_0x2178db(0x73)](_0x2b94c4);}[_0x558678(0x73)](_0x2f5523){const _0x250c66=_0x558678,_0x49178e=_0x2f5523[_0x250c66(0x6d)](_0x394a9b);this[_0x250c66(0x6e)](this[_0x250c66(0x7f)][_0x250c66(0x88)],()=>_0x229816(_0x49178e['event$'][_0x250c66(0x7a)](_0x82996e=>{const _0x59c2bb=_0x250c66;_0x82996e[_0x59c2bb(0x69)]===_0x51b352['McpConnectionStatusChanged']&&this[_0x59c2bb(0x84)](this[_0x59c2bb(0x7f)][_0x59c2bb(0x88)],_0x82996e['data']);}))),this[_0x250c66(0x6e)](this[_0x250c66(0x7f)][_0x250c66(0x86)],()=>_0x229816(_0x49178e['event$'][_0x250c66(0x7a)](_0x54d6ce=>{const _0x4b3dbc=_0x250c66;_0x54d6ce['type']===_0x51b352[_0x4b3dbc(0x86)]&&this[_0x4b3dbc(0x84)](this[_0x4b3dbc(0x7f)]['McpToolCallReceived'],_0x54d6ce['data']);}))),this['registerEventHandler'](this[_0x250c66(0x7f)][_0x250c66(0x78)],()=>_0x229816(_0x49178e[_0x250c66(0x6f)][_0x250c66(0x7a)](_0x390bf3=>{const _0x43a120=_0x250c66;_0x390bf3[_0x43a120(0x69)]===_0x51b352[_0x43a120(0x78)]&&this[_0x43a120(0x84)](this['Event'][_0x43a120(0x78)],_0x390bf3[_0x43a120(0x85)]);}))),this[_0x250c66(0x6e)](this[_0x250c66(0x7f)][_0x250c66(0x82)],()=>_0x229816(_0x49178e[_0x250c66(0x6f)][_0x250c66(0x7a)](_0x29762e=>{const _0x3945a2=_0x250c66;_0x29762e['type']===_0x51b352[_0x3945a2(0x82)]&&this[_0x3945a2(0x84)](this[_0x3945a2(0x7f)][_0x3945a2(0x82)],_0x29762e[_0x3945a2(0x85)]);})));}[_0x558678(0x7c)](_0x5d4167,_0x50a919){const _0x4c8966=_0x558678;return this[_0x4c8966(0x87)][_0x4c8966(0x6d)](_0x2988af)['validateToolCall'](_0x5d4167,_0x50a919);}[_0x558678(0x76)](){const _0x311b5d=_0x558678;return this[_0x311b5d(0x87)][_0x311b5d(0x6d)](_0x2988af)[_0x311b5d(0x7d)]();}[_0x558678(0x83)](_0x5527c7,_0x363cc5){const _0x515d7f=_0x558678;return this[_0x515d7f(0x87)][_0x515d7f(0x6d)](_0x2988af)[_0x515d7f(0x89)](_0x5527c7,_0x363cc5);}[_0x558678(0x8b)](){const _0x21fc7e=_0x558678;return this['_injector'][_0x21fc7e(0x6d)](_0x2cc124)['getConnectionStatus']();}[_0x558678(0x77)](){const _0x2faa92=_0x558678;this[_0x2faa92(0x87)]['get'](_0x2cc124)[_0x2faa92(0x74)]();}[_0x558678(0x6c)](){const _0x53fecd=_0x558678;this[_0x53fecd(0x87)][_0x53fecd(0x6d)](_0x2cc124)[_0x53fecd(0x80)]();}}_0x34f002[_0x558678(0x7b)](M);
1
+ const _0x159f09=_0x1c14;(function(_0x3a4958,_0x5d83fe){const _0x4826d3=_0x1c14,_0x244338=_0x3a4958();while(!![]){try{const _0x1c65ba=parseInt(_0x4826d3(0x10e))/0x1*(parseInt(_0x4826d3(0x100))/0x2)+-parseInt(_0x4826d3(0x118))/0x3+-parseInt(_0x4826d3(0x119))/0x4+parseInt(_0x4826d3(0x105))/0x5*(-parseInt(_0x4826d3(0xfc))/0x6)+-parseInt(_0x4826d3(0x117))/0x7+-parseInt(_0x4826d3(0x10d))/0x8*(-parseInt(_0x4826d3(0x115))/0x9)+-parseInt(_0x4826d3(0x113))/0xa*(-parseInt(_0x4826d3(0xfb))/0xb);if(_0x1c65ba===_0x5d83fe)break;else _0x244338['push'](_0x244338['shift']());}catch(_0x5b9026){_0x244338['push'](_0x244338['shift']());}}}(_0x4346,0x4c96c));import{MCPEventId as _0x19f43f,MCPEventService as _0x4bbefe,IMCPToolRegistry as _0x1ee6d0,MCPConnectionController as _0x12ecc1}from'@univerjs-pro/mcp';import{FEventName as _0x474db4,FUniver as _0xb3bd8b}from'@univerjs/core/facade';import{toDisposable as _0x1e45f3}from'@univerjs/core';class d{get[_0x159f09(0xff)](){const _0x2c2f11=_0x159f09;return _0x19f43f[_0x2c2f11(0xff)];}get['McpToolCallReceived'](){const _0x20efb2=_0x159f09;return _0x19f43f[_0x20efb2(0x104)];}get['McpToolCallExecuted'](){const _0x3d7dab=_0x159f09;return _0x19f43f[_0x3d7dab(0x10f)];}get[_0x159f09(0x103)](){const _0x1349bc=_0x159f09;return _0x19f43f[_0x1349bc(0x103)];}}function _0x4346(){const _0xed8b34=['fireEvent','get','connectMCP','subscribe','24TZDCrI','153oXspOy','McpToolCallExecuted','connect','registerEventHandler','event$','1894450vMbajz','callMCPTool','250812ORoYjI','data','3765356snmody','529455JTBlcH','252132lACcfW','Event','getMCPConnectionStatus','executeTool','55GoobaR','24NKemFW','validateToolCall','_injector','McpConnectionStatusChanged','3626bEQpHA','getConnectionStatus','_registerMCPFacadeEvents','McpToolCallFailed','McpToolCallReceived','271355FeRjzm','getAllMCPTools','type','disconnectMCP'];_0x4346=function(){return _0xed8b34;};return _0x4346();}_0x474db4['extend'](d);class M extends _0xb3bd8b{['_initialize'](_0x42212b){this['_registerMCPFacadeEvents'](_0x42212b);}[_0x159f09(0x102)](_0x25eb03){const _0x2324a4=_0x159f09,_0x8335f7=_0x25eb03['get'](_0x4bbefe);this[_0x2324a4(0x111)](this['Event'][_0x2324a4(0xff)],()=>_0x1e45f3(_0x8335f7[_0x2324a4(0x112)][_0x2324a4(0x10c)](_0x215bb4=>{const _0x43747b=_0x2324a4;_0x215bb4[_0x43747b(0x107)]===_0x19f43f[_0x43747b(0xff)]&&this[_0x43747b(0x109)](this[_0x43747b(0x11a)][_0x43747b(0xff)],_0x215bb4[_0x43747b(0x116)]);}))),this['registerEventHandler'](this[_0x2324a4(0x11a)][_0x2324a4(0x104)],()=>_0x1e45f3(_0x8335f7[_0x2324a4(0x112)]['subscribe'](_0x3b1a1a=>{const _0xcb8a79=_0x2324a4;_0x3b1a1a[_0xcb8a79(0x107)]===_0x19f43f[_0xcb8a79(0x104)]&&this[_0xcb8a79(0x109)](this[_0xcb8a79(0x11a)][_0xcb8a79(0x104)],_0x3b1a1a[_0xcb8a79(0x116)]);}))),this[_0x2324a4(0x111)](this['Event'][_0x2324a4(0x10f)],()=>_0x1e45f3(_0x8335f7[_0x2324a4(0x112)]['subscribe'](_0x579b31=>{const _0x4c8deb=_0x2324a4;_0x579b31[_0x4c8deb(0x107)]===_0x19f43f[_0x4c8deb(0x10f)]&&this['fireEvent'](this[_0x4c8deb(0x11a)][_0x4c8deb(0x10f)],_0x579b31[_0x4c8deb(0x116)]);}))),this[_0x2324a4(0x111)](this[_0x2324a4(0x11a)][_0x2324a4(0x103)],()=>_0x1e45f3(_0x8335f7[_0x2324a4(0x112)][_0x2324a4(0x10c)](_0x51006b=>{const _0x289d2f=_0x2324a4;_0x51006b[_0x289d2f(0x107)]===_0x19f43f[_0x289d2f(0x103)]&&this[_0x289d2f(0x109)](this[_0x289d2f(0x11a)][_0x289d2f(0x103)],_0x51006b[_0x289d2f(0x116)]);})));}['validateMCPToolCall'](_0x54f4fd,_0x444030){const _0x264ef5=_0x159f09;return this['_injector'][_0x264ef5(0x10a)](_0x1ee6d0)[_0x264ef5(0xfd)](_0x54f4fd,_0x444030);}[_0x159f09(0x106)](){const _0x577d4a=_0x159f09;return this['_injector'][_0x577d4a(0x10a)](_0x1ee6d0)['getAllTools']();}[_0x159f09(0x114)](_0x435584,_0x54022c){const _0x5b866f=_0x159f09;return this[_0x5b866f(0xfe)][_0x5b866f(0x10a)](_0x1ee6d0)[_0x5b866f(0xfa)](_0x435584,_0x54022c);}[_0x159f09(0x11b)](){const _0x350163=_0x159f09;return this[_0x350163(0xfe)][_0x350163(0x10a)](_0x12ecc1)[_0x350163(0x101)]();}[_0x159f09(0x10b)](){const _0x266b57=_0x159f09;this['_injector'][_0x266b57(0x10a)](_0x12ecc1)[_0x266b57(0x110)]();}[_0x159f09(0x108)](){const _0x4c4235=_0x159f09;this[_0x4c4235(0xfe)][_0x4c4235(0x10a)](_0x12ecc1)['disconnect']();}}function _0x1c14(_0x157051,_0x39f59c){const _0x434649=_0x4346();return _0x1c14=function(_0x1c14e3,_0x1943f4){_0x1c14e3=_0x1c14e3-0xfa;let _0xc3c8de=_0x434649[_0x1c14e3];return _0xc3c8de;},_0x1c14(_0x157051,_0x39f59c);}_0xb3bd8b['extend'](M);