@univerjs-pro/mcp 0.15.0-insiders.20260107-3d1cfdf → 0.15.0-insiders.20260108-7b9120d

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
- function _0x1533(){const _0x391af3=['disconnect','1052EYgZVX','getMCPConnectionStatus','275KhhgzO','267134RgkYrW','subscribe','_injector','type','3222SAazIh','executeTool','getAllMCPTools','2145378RSDpdm','callMCPTool','validateToolCall','get','data','McpConnectionStatusChanged','117HTeMUl','_registerMCPFacadeEvents','24ypilxn','event$','Event','McpToolCallFailed','53598zmiifl','connectMCP','fireEvent','494570OUwdXm','connect','extend','registerEventHandler','getConnectionStatus','12104301axlyFM','McpToolCallExecuted','65936KCtZhE','329oCOjJN','McpToolCallReceived','disconnectMCP','_initialize'];_0x1533=function(){return _0x391af3;};return _0x1533();}const _0x384e25=_0x5f1a;(function(_0x269c1b,_0x362c83){const _0x2def04=_0x5f1a,_0x51a989=_0x269c1b();while(!![]){try{const _0x417049=-parseInt(_0x2def04(0xbf))/0x1+-parseInt(_0x2def04(0xc6))/0x2+-parseInt(_0x2def04(0xc3))/0x3*(-parseInt(_0x2def04(0xbc))/0x4)+parseInt(_0x2def04(0xbe))/0x5*(parseInt(_0x2def04(0xd2))/0x6)+-parseInt(_0x2def04(0xb7))/0x7*(parseInt(_0x2def04(0xb6))/0x8)+-parseInt(_0x2def04(0xcc))/0x9*(parseInt(_0x2def04(0xaf))/0xa)+-parseInt(_0x2def04(0xb4))/0xb*(-parseInt(_0x2def04(0xce))/0xc);if(_0x417049===_0x362c83)break;else _0x51a989['push'](_0x51a989['shift']());}catch(_0x12e76a){_0x51a989['push'](_0x51a989['shift']());}}}(_0x1533,0x93905));import{MCPEventId as _0x2d6811,MCPEventService as _0x295880,IMCPToolRegistry as _0xe5ef74,MCPConnectionController as _0x6829f1}from'@univerjs-pro/mcp';function _0x5f1a(_0x54be75,_0x14e07c){_0x54be75=_0x54be75-0xaf;const _0x15339c=_0x1533();let _0x5f1a49=_0x15339c[_0x54be75];return _0x5f1a49;}import{FEventName as _0x4427eb,FUniver as _0x33dac9}from'@univerjs/core/facade';import{toDisposable as _0x2d43cd}from'@univerjs/core';class d{get[_0x384e25(0xcb)](){return _0x2d6811['McpConnectionStatusChanged'];}get[_0x384e25(0xb8)](){const _0x4d2473=_0x384e25;return _0x2d6811[_0x4d2473(0xb8)];}get[_0x384e25(0xb5)](){return _0x2d6811['McpToolCallExecuted'];}get[_0x384e25(0xd1)](){const _0x2b4721=_0x384e25;return _0x2d6811[_0x2b4721(0xd1)];}}_0x4427eb[_0x384e25(0xb1)](d);class M extends _0x33dac9{[_0x384e25(0xba)](_0x53d480){const _0x305ace=_0x384e25;this[_0x305ace(0xcd)](_0x53d480);}[_0x384e25(0xcd)](_0x3372e0){const _0x5ead13=_0x384e25,_0x13e26d=_0x3372e0[_0x5ead13(0xc9)](_0x295880);this['registerEventHandler'](this[_0x5ead13(0xd0)][_0x5ead13(0xcb)],()=>_0x2d43cd(_0x13e26d[_0x5ead13(0xcf)][_0x5ead13(0xc0)](_0x358707=>{const _0x3d9fcd=_0x5ead13;_0x358707[_0x3d9fcd(0xc2)]===_0x2d6811['McpConnectionStatusChanged']&&this[_0x3d9fcd(0xd4)](this[_0x3d9fcd(0xd0)][_0x3d9fcd(0xcb)],_0x358707[_0x3d9fcd(0xca)]);}))),this[_0x5ead13(0xb2)](this[_0x5ead13(0xd0)]['McpToolCallReceived'],()=>_0x2d43cd(_0x13e26d[_0x5ead13(0xcf)]['subscribe'](_0x5425d5=>{const _0x322259=_0x5ead13;_0x5425d5['type']===_0x2d6811[_0x322259(0xb8)]&&this[_0x322259(0xd4)](this[_0x322259(0xd0)][_0x322259(0xb8)],_0x5425d5['data']);}))),this[_0x5ead13(0xb2)](this[_0x5ead13(0xd0)][_0x5ead13(0xb5)],()=>_0x2d43cd(_0x13e26d[_0x5ead13(0xcf)][_0x5ead13(0xc0)](_0x42a7ae=>{const _0x298c87=_0x5ead13;_0x42a7ae[_0x298c87(0xc2)]===_0x2d6811['McpToolCallExecuted']&&this[_0x298c87(0xd4)](this[_0x298c87(0xd0)][_0x298c87(0xb5)],_0x42a7ae[_0x298c87(0xca)]);}))),this[_0x5ead13(0xb2)](this[_0x5ead13(0xd0)]['McpToolCallFailed'],()=>_0x2d43cd(_0x13e26d[_0x5ead13(0xcf)]['subscribe'](_0x362a81=>{const _0xe2bb31=_0x5ead13;_0x362a81['type']===_0x2d6811[_0xe2bb31(0xd1)]&&this['fireEvent'](this[_0xe2bb31(0xd0)][_0xe2bb31(0xd1)],_0x362a81['data']);})));}['validateMCPToolCall'](_0x12747f,_0x3da2f5){const _0x18cd43=_0x384e25;return this['_injector'][_0x18cd43(0xc9)](_0xe5ef74)[_0x18cd43(0xc8)](_0x12747f,_0x3da2f5);}[_0x384e25(0xc5)](){const _0x5c9e54=_0x384e25;return this[_0x5c9e54(0xc1)][_0x5c9e54(0xc9)](_0xe5ef74)['getAllTools']();}[_0x384e25(0xc7)](_0x5192ed,_0x31b625){const _0x586f37=_0x384e25;return this[_0x586f37(0xc1)][_0x586f37(0xc9)](_0xe5ef74)[_0x586f37(0xc4)](_0x5192ed,_0x31b625);}[_0x384e25(0xbd)](){const _0x188deb=_0x384e25;return this[_0x188deb(0xc1)][_0x188deb(0xc9)](_0x6829f1)[_0x188deb(0xb3)]();}[_0x384e25(0xd3)](){const _0x5093a0=_0x384e25;this[_0x5093a0(0xc1)][_0x5093a0(0xc9)](_0x6829f1)[_0x5093a0(0xb0)]();}[_0x384e25(0xb9)](){const _0x2204bf=_0x384e25;this[_0x2204bf(0xc1)][_0x2204bf(0xc9)](_0x6829f1)[_0x2204bf(0xbb)]();}}_0x33dac9[_0x384e25(0xb1)](M);
1
+ const _0x11c006=_0x3a92;(function(_0x1323e6,_0x239296){const _0x42e0aa=_0x3a92,_0x59aacb=_0x1323e6();while(!![]){try{const _0x5438fa=parseInt(_0x42e0aa(0xbc))/0x1+-parseInt(_0x42e0aa(0xac))/0x2+parseInt(_0x42e0aa(0xbe))/0x3*(parseInt(_0x42e0aa(0xb2))/0x4)+-parseInt(_0x42e0aa(0xbb))/0x5+-parseInt(_0x42e0aa(0xb6))/0x6+-parseInt(_0x42e0aa(0xbf))/0x7+parseInt(_0x42e0aa(0xad))/0x8;if(_0x5438fa===_0x239296)break;else _0x59aacb['push'](_0x59aacb['shift']());}catch(_0x5bec41){_0x59aacb['push'](_0x59aacb['shift']());}}}(_0x37a0,0x45c22));function _0x37a0(){const _0x4094b2=['getAllMCPTools','1485855yClpeO','210484TdMmQr','_initialize','36ZAcUre','3767127beGtEu','get','McpToolCallReceived','getMCPConnectionStatus','_injector','data','validateToolCall','subscribe','executeTool','disconnect','getConnectionStatus','connectMCP','event$','McpConnectionStatusChanged','1061730wohukF','12012688NXFNky','getAllTools','type','registerEventHandler','fireEvent','1812xcNbzC','McpToolCallFailed','Event','_registerMCPFacadeEvents','393474Dacnls','extend','callMCPTool','McpToolCallExecuted'];_0x37a0=function(){return _0x4094b2;};return _0x37a0();}import{MCPEventId as _0x157220,MCPEventService as _0x5840b0,IMCPToolRegistry as _0x5de207,MCPConnectionController as _0x22a1d9}from'@univerjs-pro/mcp';import{FEventName as _0x3ff436,FUniver as _0x33c00f}from'@univerjs/core/facade';function _0x3a92(_0x20713f,_0x23589f){_0x20713f=_0x20713f-0xa0;const _0x37a0f7=_0x37a0();let _0x3a9222=_0x37a0f7[_0x20713f];return _0x3a9222;}import{toDisposable as _0x549e08}from'@univerjs/core';class d{get[_0x11c006(0xab)](){const _0x111aa1=_0x11c006;return _0x157220[_0x111aa1(0xab)];}get['McpToolCallReceived'](){const _0x3b9e2e=_0x11c006;return _0x157220[_0x3b9e2e(0xa0)];}get['McpToolCallExecuted'](){const _0x2c6b92=_0x11c006;return _0x157220[_0x2c6b92(0xb9)];}get[_0x11c006(0xb3)](){const _0x544b4c=_0x11c006;return _0x157220[_0x544b4c(0xb3)];}}_0x3ff436[_0x11c006(0xb7)](d);class M extends _0x33c00f{[_0x11c006(0xbd)](_0x32db4d){const _0xd70e0e=_0x11c006;this[_0xd70e0e(0xb5)](_0x32db4d);}[_0x11c006(0xb5)](_0x2311dc){const _0x2c4a21=_0x11c006,_0x2b5294=_0x2311dc['get'](_0x5840b0);this[_0x2c4a21(0xb0)](this[_0x2c4a21(0xb4)][_0x2c4a21(0xab)],()=>_0x549e08(_0x2b5294['event$'][_0x2c4a21(0xa5)](_0x398881=>{const _0xcd90ae=_0x2c4a21;_0x398881[_0xcd90ae(0xaf)]===_0x157220[_0xcd90ae(0xab)]&&this[_0xcd90ae(0xb1)](this[_0xcd90ae(0xb4)][_0xcd90ae(0xab)],_0x398881[_0xcd90ae(0xa3)]);}))),this[_0x2c4a21(0xb0)](this[_0x2c4a21(0xb4)][_0x2c4a21(0xa0)],()=>_0x549e08(_0x2b5294[_0x2c4a21(0xaa)][_0x2c4a21(0xa5)](_0x3cabf0=>{const _0x1923a6=_0x2c4a21;_0x3cabf0[_0x1923a6(0xaf)]===_0x157220[_0x1923a6(0xa0)]&&this['fireEvent'](this[_0x1923a6(0xb4)][_0x1923a6(0xa0)],_0x3cabf0[_0x1923a6(0xa3)]);}))),this[_0x2c4a21(0xb0)](this['Event'][_0x2c4a21(0xb9)],()=>_0x549e08(_0x2b5294[_0x2c4a21(0xaa)][_0x2c4a21(0xa5)](_0xefd010=>{const _0x55c7b9=_0x2c4a21;_0xefd010[_0x55c7b9(0xaf)]===_0x157220[_0x55c7b9(0xb9)]&&this['fireEvent'](this[_0x55c7b9(0xb4)][_0x55c7b9(0xb9)],_0xefd010['data']);}))),this[_0x2c4a21(0xb0)](this[_0x2c4a21(0xb4)][_0x2c4a21(0xb3)],()=>_0x549e08(_0x2b5294[_0x2c4a21(0xaa)][_0x2c4a21(0xa5)](_0x422949=>{const _0x2fa2b3=_0x2c4a21;_0x422949[_0x2fa2b3(0xaf)]===_0x157220['McpToolCallFailed']&&this[_0x2fa2b3(0xb1)](this[_0x2fa2b3(0xb4)][_0x2fa2b3(0xb3)],_0x422949[_0x2fa2b3(0xa3)]);})));}['validateMCPToolCall'](_0x56b736,_0x12c1e7){const _0x31c399=_0x11c006;return this[_0x31c399(0xa2)]['get'](_0x5de207)[_0x31c399(0xa4)](_0x56b736,_0x12c1e7);}[_0x11c006(0xba)](){const _0xbc550=_0x11c006;return this[_0xbc550(0xa2)][_0xbc550(0xc0)](_0x5de207)[_0xbc550(0xae)]();}[_0x11c006(0xb8)](_0x3c9344,_0x30cfb8){const _0x1ffd0c=_0x11c006;return this['_injector']['get'](_0x5de207)[_0x1ffd0c(0xa6)](_0x3c9344,_0x30cfb8);}[_0x11c006(0xa1)](){const _0x13b8c1=_0x11c006;return this['_injector'][_0x13b8c1(0xc0)](_0x22a1d9)[_0x13b8c1(0xa8)]();}[_0x11c006(0xa9)](){const _0x41eebb=_0x11c006;this[_0x41eebb(0xa2)]['get'](_0x22a1d9)['connect']();}['disconnectMCP'](){const _0x246dcb=_0x11c006;this[_0x246dcb(0xa2)]['get'](_0x22a1d9)[_0x246dcb(0xa7)]();}}_0x33c00f[_0x11c006(0xb7)](M);