@univerjs-pro/mcp 0.10.13-nightly.202510290902 → 0.10.14

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/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x5e804a=_0x1ef9;function _0x1ef9(_0x5e63c4,_0x200516){const _0x66fc82=_0x66fc();return _0x1ef9=function(_0x1ef9ed,_0x28fe0f){_0x1ef9ed=_0x1ef9ed-0x194;let _0x4cdfcb=_0x66fc82[_0x1ef9ed];return _0x4cdfcb;},_0x1ef9(_0x5e63c4,_0x200516);}(function(_0x5be841,_0x3c7a7f){const _0x545b0a=_0x1ef9,_0x4a05c1=_0x5be841();while(!![]){try{const _0x1085fb=-parseInt(_0x545b0a(0x196))/0x1*(parseInt(_0x545b0a(0x194))/0x2)+-parseInt(_0x545b0a(0x1ad))/0x3*(-parseInt(_0x545b0a(0x1ab))/0x4)+parseInt(_0x545b0a(0x1bc))/0x5*(parseInt(_0x545b0a(0x1c1))/0x6)+parseInt(_0x545b0a(0x1a9))/0x7*(-parseInt(_0x545b0a(0x195))/0x8)+parseInt(_0x545b0a(0x1be))/0x9+parseInt(_0x545b0a(0x1b8))/0xa*(-parseInt(_0x545b0a(0x1b3))/0xb)+parseInt(_0x545b0a(0x197))/0xc;if(_0x1085fb===_0x3c7a7f)break;else _0x4a05c1['push'](_0x4a05c1['shift']());}catch(_0x390ae6){_0x4a05c1['push'](_0x4a05c1['shift']());}}}(_0x66fc,0x6fdde));const e=require('@univerjs-pro/mcp'),i=require('@univerjs/core/facade'),l=require('@univerjs/core');function _0x66fc(){const _0x1b22b6=['getAllMCPTools','getMCPConnectionStatus','extend','FUniver','subscribe','3070907zGaTxw','type','644YLbSpG','McpToolCallExecuted','5034wGeGhp','executeTool','data','IMCPToolRegistry','toDisposable','registerEventHandler','9205273gFusQS','connectMCP','callMCPTool','_registerMCPFacadeEvents','connect','10TloARa','FEventName','validateToolCall','McpToolCallReceived','404615eloqBT','MCPEventService','3874536zqGCvw','get','disconnectMCP','6xSyhwc','104738KcUxXv','8tJkaen','1oCLvTi','12054408TqNATb','event$','fireEvent','_initialize','disconnect','McpToolCallFailed','getConnectionStatus','MCPConnectionController','McpConnectionStatusChanged','MCPEventId','getAllTools','Event','_injector'];_0x66fc=function(){return _0x1b22b6;};return _0x66fc();}class r{get[_0x5e804a(0x19f)](){const _0x590c02=_0x5e804a;return e[_0x590c02(0x1a0)][_0x590c02(0x19f)];}get[_0x5e804a(0x1bb)](){return e['MCPEventId']['McpToolCallReceived'];}get[_0x5e804a(0x1ac)](){const _0x51f8d1=_0x5e804a;return e[_0x51f8d1(0x1a0)][_0x51f8d1(0x1ac)];}get[_0x5e804a(0x19c)](){const _0x3df654=_0x5e804a;return e[_0x3df654(0x1a0)][_0x3df654(0x19c)];}}i[_0x5e804a(0x1b9)][_0x5e804a(0x1a6)](r);class s extends i[_0x5e804a(0x1a7)]{[_0x5e804a(0x19a)](_0x45db5e){this['_registerMCPFacadeEvents'](_0x45db5e);}[_0x5e804a(0x1b6)](_0x1425cc){const _0x3eeeb3=_0x5e804a,_0x3094be=_0x1425cc[_0x3eeeb3(0x1bf)](e[_0x3eeeb3(0x1bd)]);this['registerEventHandler'](this['Event'][_0x3eeeb3(0x19f)],()=>l[_0x3eeeb3(0x1b1)](_0x3094be[_0x3eeeb3(0x198)][_0x3eeeb3(0x1a8)](_0x3fb838=>{const _0x3ac0a0=_0x3eeeb3;_0x3fb838['type']===e[_0x3ac0a0(0x1a0)][_0x3ac0a0(0x19f)]&&this['fireEvent'](this[_0x3ac0a0(0x1a2)][_0x3ac0a0(0x19f)],_0x3fb838['data']);}))),this[_0x3eeeb3(0x1b2)](this[_0x3eeeb3(0x1a2)]['McpToolCallReceived'],()=>l[_0x3eeeb3(0x1b1)](_0x3094be['event$'][_0x3eeeb3(0x1a8)](_0x141c7f=>{const _0x557e7a=_0x3eeeb3;_0x141c7f['type']===e['MCPEventId'][_0x557e7a(0x1bb)]&&this['fireEvent'](this[_0x557e7a(0x1a2)][_0x557e7a(0x1bb)],_0x141c7f['data']);}))),this['registerEventHandler'](this['Event'][_0x3eeeb3(0x1ac)],()=>l['toDisposable'](_0x3094be[_0x3eeeb3(0x198)]['subscribe'](_0xc091c2=>{const _0x1ce044=_0x3eeeb3;_0xc091c2[_0x1ce044(0x1aa)]===e[_0x1ce044(0x1a0)]['McpToolCallExecuted']&&this[_0x1ce044(0x199)](this[_0x1ce044(0x1a2)][_0x1ce044(0x1ac)],_0xc091c2[_0x1ce044(0x1af)]);}))),this[_0x3eeeb3(0x1b2)](this[_0x3eeeb3(0x1a2)][_0x3eeeb3(0x19c)],()=>l['toDisposable'](_0x3094be[_0x3eeeb3(0x198)]['subscribe'](_0x4c5b49=>{const _0x5ac732=_0x3eeeb3;_0x4c5b49[_0x5ac732(0x1aa)]===e[_0x5ac732(0x1a0)][_0x5ac732(0x19c)]&&this[_0x5ac732(0x199)](this['Event'][_0x5ac732(0x19c)],_0x4c5b49[_0x5ac732(0x1af)]);})));}['validateMCPToolCall'](_0x13ee1c,_0x85b95e){const _0x4cfc1e=_0x5e804a;return this[_0x4cfc1e(0x1a3)][_0x4cfc1e(0x1bf)](e[_0x4cfc1e(0x1b0)])[_0x4cfc1e(0x1ba)](_0x13ee1c,_0x85b95e);}[_0x5e804a(0x1a4)](){const _0x475c75=_0x5e804a;return this[_0x475c75(0x1a3)][_0x475c75(0x1bf)](e[_0x475c75(0x1b0)])[_0x475c75(0x1a1)]();}[_0x5e804a(0x1b5)](_0x2784b5,_0x25d12a){const _0x12486f=_0x5e804a;return this[_0x12486f(0x1a3)][_0x12486f(0x1bf)](e['IMCPToolRegistry'])[_0x12486f(0x1ae)](_0x2784b5,_0x25d12a);}[_0x5e804a(0x1a5)](){const _0x3ff5b7=_0x5e804a;return this['_injector'][_0x3ff5b7(0x1bf)](e[_0x3ff5b7(0x19e)])[_0x3ff5b7(0x19d)]();}[_0x5e804a(0x1b4)](){const _0x231c4b=_0x5e804a;this['_injector'][_0x231c4b(0x1bf)](e[_0x231c4b(0x19e)])[_0x231c4b(0x1b7)]();}[_0x5e804a(0x1c0)](){const _0x20b0b2=_0x5e804a;this[_0x20b0b2(0x1a3)]['get'](e[_0x20b0b2(0x19e)])[_0x20b0b2(0x19b)]();}}i['FUniver']['extend'](s);
1
+ 'use strict';const _0x489cc0=_0x5456;(function(_0x505f14,_0x550924){const _0xade61f=_0x5456,_0x6cb93c=_0x505f14();while(!![]){try{const _0x537eb6=parseInt(_0xade61f(0xea))/0x1*(parseInt(_0xade61f(0xe4))/0x2)+-parseInt(_0xade61f(0xd2))/0x3+-parseInt(_0xade61f(0xf6))/0x4*(-parseInt(_0xade61f(0xe7))/0x5)+parseInt(_0xade61f(0xf7))/0x6*(parseInt(_0xade61f(0xf4))/0x7)+parseInt(_0xade61f(0xe6))/0x8+parseInt(_0xade61f(0xd8))/0x9+-parseInt(_0xade61f(0xfc))/0xa*(parseInt(_0xade61f(0xdf))/0xb);if(_0x537eb6===_0x550924)break;else _0x6cb93c['push'](_0x6cb93c['shift']());}catch(_0x442481){_0x6cb93c['push'](_0x6cb93c['shift']());}}}(_0x3ec9,0x25490));const e=require('@univerjs-pro/mcp'),i=require('@univerjs/core/facade'),l=require('@univerjs/core');function _0x5456(_0x3a29fa,_0x240742){const _0x3ec9d1=_0x3ec9();return _0x5456=function(_0x545688,_0xa1b9dc){_0x545688=_0x545688-0xd2;let _0x2f20c1=_0x3ec9d1[_0x545688];return _0x2f20c1;},_0x5456(_0x3a29fa,_0x240742);}class r{get['McpConnectionStatusChanged'](){const _0x283c79=_0x5456;return e[_0x283c79(0xd6)][_0x283c79(0xf9)];}get['McpToolCallReceived'](){const _0x7ed590=_0x5456;return e[_0x7ed590(0xd6)][_0x7ed590(0xee)];}get[_0x489cc0(0xd5)](){const _0x54437d=_0x489cc0;return e['MCPEventId'][_0x54437d(0xd5)];}get['McpToolCallFailed'](){const _0x3d165e=_0x489cc0;return e[_0x3d165e(0xd6)][_0x3d165e(0xf8)];}}i[_0x489cc0(0xdc)][_0x489cc0(0xd3)](r);class s extends i[_0x489cc0(0xde)]{[_0x489cc0(0xe9)](_0x369374){const _0x34e0a7=_0x489cc0;this[_0x34e0a7(0xda)](_0x369374);}[_0x489cc0(0xda)](_0x2d394e){const _0xd1f67a=_0x489cc0,_0x5e2db0=_0x2d394e['get'](e[_0xd1f67a(0xe8)]);this[_0xd1f67a(0xdd)](this[_0xd1f67a(0xef)]['McpConnectionStatusChanged'],()=>l[_0xd1f67a(0xe2)](_0x5e2db0['event$'][_0xd1f67a(0xe5)](_0x408075=>{const _0x33ebb5=_0xd1f67a;_0x408075[_0x33ebb5(0xe1)]===e[_0x33ebb5(0xd6)]['McpConnectionStatusChanged']&&this[_0x33ebb5(0xf2)](this['Event']['McpConnectionStatusChanged'],_0x408075[_0x33ebb5(0xf1)]);}))),this[_0xd1f67a(0xdd)](this['Event'][_0xd1f67a(0xee)],()=>l['toDisposable'](_0x5e2db0['event$']['subscribe'](_0x1b434f=>{const _0x1be4a6=_0xd1f67a;_0x1b434f[_0x1be4a6(0xe1)]===e[_0x1be4a6(0xd6)][_0x1be4a6(0xee)]&&this[_0x1be4a6(0xf2)](this[_0x1be4a6(0xef)]['McpToolCallReceived'],_0x1b434f[_0x1be4a6(0xf1)]);}))),this['registerEventHandler'](this[_0xd1f67a(0xef)][_0xd1f67a(0xd5)],()=>l[_0xd1f67a(0xe2)](_0x5e2db0['event$'][_0xd1f67a(0xe5)](_0x1cd2b6=>{const _0xa457c8=_0xd1f67a;_0x1cd2b6[_0xa457c8(0xe1)]===e[_0xa457c8(0xd6)]['McpToolCallExecuted']&&this['fireEvent'](this[_0xa457c8(0xef)][_0xa457c8(0xd5)],_0x1cd2b6[_0xa457c8(0xf1)]);}))),this[_0xd1f67a(0xdd)](this[_0xd1f67a(0xef)]['McpToolCallFailed'],()=>l[_0xd1f67a(0xe2)](_0x5e2db0[_0xd1f67a(0xf0)][_0xd1f67a(0xe5)](_0x32187f=>{const _0x33e015=_0xd1f67a;_0x32187f[_0x33e015(0xe1)]===e[_0x33e015(0xd6)][_0x33e015(0xf8)]&&this[_0x33e015(0xf2)](this['Event']['McpToolCallFailed'],_0x32187f[_0x33e015(0xf1)]);})));}[_0x489cc0(0xe3)](_0x20a45a,_0x4a5a2f){const _0x35ba3e=_0x489cc0;return this[_0x35ba3e(0xf3)][_0x35ba3e(0xe0)](e['IMCPToolRegistry'])[_0x35ba3e(0xd4)](_0x20a45a,_0x4a5a2f);}[_0x489cc0(0xfb)](){const _0x2a26d3=_0x489cc0;return this[_0x2a26d3(0xf3)][_0x2a26d3(0xe0)](e[_0x2a26d3(0xf5)])['getAllTools']();}['callMCPTool'](_0x35d4f5,_0x57d9bd){const _0x11963d=_0x489cc0;return this[_0x11963d(0xf3)][_0x11963d(0xe0)](e[_0x11963d(0xf5)])[_0x11963d(0xec)](_0x35d4f5,_0x57d9bd);}[_0x489cc0(0xd7)](){const _0xb34a8c=_0x489cc0;return this[_0xb34a8c(0xf3)][_0xb34a8c(0xe0)](e[_0xb34a8c(0xed)])['getConnectionStatus']();}[_0x489cc0(0xeb)](){const _0x210ba9=_0x489cc0;this[_0x210ba9(0xf3)][_0x210ba9(0xe0)](e[_0x210ba9(0xed)])[_0x210ba9(0xfa)]();}[_0x489cc0(0xd9)](){const _0x949506=_0x489cc0;this[_0x949506(0xf3)]['get'](e[_0x949506(0xed)])[_0x949506(0xdb)]();}}function _0x3ec9(){const _0x2def6e=['data','fireEvent','_injector','35GyYyad','IMCPToolRegistry','1081956TlvxmP','205890MwtLDy','McpToolCallFailed','McpConnectionStatusChanged','connect','getAllMCPTools','402380RNcyLq','732672ouUBsP','extend','validateToolCall','McpToolCallExecuted','MCPEventId','getMCPConnectionStatus','672147ZuHWQm','disconnectMCP','_registerMCPFacadeEvents','disconnect','FEventName','registerEventHandler','FUniver','121UoPoDm','get','type','toDisposable','validateMCPToolCall','12lyoCUR','subscribe','453192TzZeCa','5pUaIFD','MCPEventService','_initialize','44361FWQSMV','connectMCP','executeTool','MCPConnectionController','McpToolCallReceived','Event','event$'];_0x3ec9=function(){return _0x2def6e;};return _0x3ec9();}i[_0x489cc0(0xde)][_0x489cc0(0xd3)](s);