@univerjs-pro/mcp 0.12.0-nightly.202511220628 → 0.12.1-nightly.202511221011

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 _0x4164e8=_0x305c;(function(_0x56204a,_0x5093a9){const _0x43c708=_0x305c,_0x5c556a=_0x56204a();while(!![]){try{const _0x91e307=-parseInt(_0x43c708(0x12c))/0x1*(-parseInt(_0x43c708(0x118))/0x2)+-parseInt(_0x43c708(0x137))/0x3+-parseInt(_0x43c708(0x117))/0x4+-parseInt(_0x43c708(0x130))/0x5*(parseInt(_0x43c708(0x12d))/0x6)+parseInt(_0x43c708(0x135))/0x7*(-parseInt(_0x43c708(0x131))/0x8)+-parseInt(_0x43c708(0x12b))/0x9+-parseInt(_0x43c708(0x124))/0xa*(-parseInt(_0x43c708(0x128))/0xb);if(_0x91e307===_0x5093a9)break;else _0x5c556a['push'](_0x5c556a['shift']());}catch(_0x306939){_0x5c556a['push'](_0x5c556a['shift']());}}}(_0x27cf,0x4e5ec));import{MCPEventId as _0x180c4f,MCPEventService as _0x1fd117,IMCPToolRegistry as _0x2f43cc,MCPConnectionController as _0x4ad916}from'@univerjs-pro/mcp';function _0x27cf(){const _0x3c624f=['743776RgSPUn','1022612ilMaIe','disconnectMCP','McpToolCallReceived','extend','data','_registerMCPFacadeEvents','type','_injector','validateToolCall','event$','callMCPTool','McpConnectionStatusChanged','14339740hmgiER','_initialize','getAllMCPTools','getMCPConnectionStatus','11BXOqIn','Event','McpToolCallExecuted','2557764Lqceps','1eiZTvQ','6EpwNil','validateMCPToolCall','executeTool','1804300jhKLSx','1664rJIqLI','McpToolCallFailed','connectMCP','disconnect','11312TqdTpU','registerEventHandler','1371444ODHJua','subscribe','getAllTools','getConnectionStatus','fireEvent','get'];_0x27cf=function(){return _0x3c624f;};return _0x27cf();}import{FEventName as _0x587e87,FUniver as _0x507264}from'@univerjs/core/facade';import{toDisposable as _0x40968f}from'@univerjs/core';class d{get[_0x4164e8(0x123)](){const _0x3c6a32=_0x4164e8;return _0x180c4f[_0x3c6a32(0x123)];}get[_0x4164e8(0x11a)](){const _0x12bac4=_0x4164e8;return _0x180c4f[_0x12bac4(0x11a)];}get[_0x4164e8(0x12a)](){const _0x56e4c6=_0x4164e8;return _0x180c4f[_0x56e4c6(0x12a)];}get['McpToolCallFailed'](){return _0x180c4f['McpToolCallFailed'];}}_0x587e87[_0x4164e8(0x11b)](d);class M extends _0x507264{[_0x4164e8(0x125)](_0x38a362){const _0x3b995c=_0x4164e8;this[_0x3b995c(0x11d)](_0x38a362);}[_0x4164e8(0x11d)](_0x54a1b9){const _0x1da87b=_0x4164e8,_0x30e955=_0x54a1b9[_0x1da87b(0x116)](_0x1fd117);this['registerEventHandler'](this[_0x1da87b(0x129)][_0x1da87b(0x123)],()=>_0x40968f(_0x30e955[_0x1da87b(0x121)][_0x1da87b(0x138)](_0x4d8484=>{const _0x367036=_0x1da87b;_0x4d8484['type']===_0x180c4f[_0x367036(0x123)]&&this[_0x367036(0x115)](this['Event'][_0x367036(0x123)],_0x4d8484['data']);}))),this['registerEventHandler'](this[_0x1da87b(0x129)]['McpToolCallReceived'],()=>_0x40968f(_0x30e955[_0x1da87b(0x121)][_0x1da87b(0x138)](_0x311a78=>{const _0x2d5d09=_0x1da87b;_0x311a78[_0x2d5d09(0x11e)]===_0x180c4f[_0x2d5d09(0x11a)]&&this[_0x2d5d09(0x115)](this[_0x2d5d09(0x129)][_0x2d5d09(0x11a)],_0x311a78[_0x2d5d09(0x11c)]);}))),this[_0x1da87b(0x136)](this[_0x1da87b(0x129)][_0x1da87b(0x12a)],()=>_0x40968f(_0x30e955[_0x1da87b(0x121)][_0x1da87b(0x138)](_0x286e32=>{const _0x1f47d4=_0x1da87b;_0x286e32[_0x1f47d4(0x11e)]===_0x180c4f[_0x1f47d4(0x12a)]&&this['fireEvent'](this[_0x1f47d4(0x129)][_0x1f47d4(0x12a)],_0x286e32[_0x1f47d4(0x11c)]);}))),this[_0x1da87b(0x136)](this[_0x1da87b(0x129)][_0x1da87b(0x132)],()=>_0x40968f(_0x30e955[_0x1da87b(0x121)][_0x1da87b(0x138)](_0x1abaf1=>{const _0x3fc021=_0x1da87b;_0x1abaf1[_0x3fc021(0x11e)]===_0x180c4f[_0x3fc021(0x132)]&&this[_0x3fc021(0x115)](this[_0x3fc021(0x129)][_0x3fc021(0x132)],_0x1abaf1[_0x3fc021(0x11c)]);})));}[_0x4164e8(0x12e)](_0x241e3c,_0x5b430a){const _0x1c01a4=_0x4164e8;return this[_0x1c01a4(0x11f)][_0x1c01a4(0x116)](_0x2f43cc)[_0x1c01a4(0x120)](_0x241e3c,_0x5b430a);}[_0x4164e8(0x126)](){const _0x4c45f2=_0x4164e8;return this[_0x4c45f2(0x11f)][_0x4c45f2(0x116)](_0x2f43cc)[_0x4c45f2(0x139)]();}[_0x4164e8(0x122)](_0x24f324,_0x2075f7){const _0x111854=_0x4164e8;return this[_0x111854(0x11f)]['get'](_0x2f43cc)[_0x111854(0x12f)](_0x24f324,_0x2075f7);}[_0x4164e8(0x127)](){const _0x35555e=_0x4164e8;return this['_injector'][_0x35555e(0x116)](_0x4ad916)[_0x35555e(0x114)]();}[_0x4164e8(0x133)](){const _0x38f8df=_0x4164e8;this[_0x38f8df(0x11f)][_0x38f8df(0x116)](_0x4ad916)['connect']();}[_0x4164e8(0x119)](){const _0x1e95b8=_0x4164e8;this[_0x1e95b8(0x11f)][_0x1e95b8(0x116)](_0x4ad916)[_0x1e95b8(0x134)]();}}function _0x305c(_0x41a815,_0x2940f5){const _0x27cfb9=_0x27cf();return _0x305c=function(_0x305cb8,_0x4cad8c){_0x305cb8=_0x305cb8-0x114;let _0x36d9de=_0x27cfb9[_0x305cb8];return _0x36d9de;},_0x305c(_0x41a815,_0x2940f5);}_0x507264[_0x4164e8(0x11b)](M);
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);