@univerjs-pro/mcp 0.15.1-insiders.20260117-8ce4a01 → 0.15.2

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/umd/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x3bc7(_0x28c702,_0x55dd06){_0x28c702=_0x28c702-0x139;const _0x4c664a=_0x4c66();let _0x3bc728=_0x4c664a[_0x28c702];return _0x3bc728;}function _0x4c66(){const _0x2379bd=['McpConnectionStatusChanged','6795lmkcuc','validateMCPToolCall','fireEvent','22810TowsIh','callMCPTool','function','IMCPToolRegistry','98688JJebvB','2333592NkeIUD','MCPEventService','FUniver','FEventName','@univerjs-pro/mcp','event$','_initialize','extend','@univerjs/core/facade','object','subscribe','53850170udWOIO','436542zUUIyo','disconnectMCP','McpToolCallReceived','type','toDisposable','_injector','UniverCore','MCPConnectionController','registerEventHandler','Event','MCPEventId','McpToolCallExecuted','1339942ZRymmQ','161BSyDMc','10SIiOKl','data','2CvVogD','11794224rmYopY','disconnect','get','UniverCoreFacade','_registerMCPFacadeEvents','executeTool','UniverProMcp','McpToolCallFailed'];_0x4c66=function(){return _0x2379bd;};return _0x4c66();}(function(_0x52e0ea,_0x4fb1b1){const _0x1b92f2=_0x3bc7,_0x2c7f41=_0x52e0ea();while(!![]){try{const _0x397827=parseInt(_0x1b92f2(0x15c))/0x1*(-parseInt(_0x1b92f2(0x160))/0x2)+parseInt(_0x1b92f2(0x143))/0x3+-parseInt(_0x1b92f2(0x144))/0x4*(parseInt(_0x1b92f2(0x15e))/0x5)+parseInt(_0x1b92f2(0x150))/0x6*(-parseInt(_0x1b92f2(0x15d))/0x7)+-parseInt(_0x1b92f2(0x161))/0x8+-parseInt(_0x1b92f2(0x13c))/0x9*(-parseInt(_0x1b92f2(0x13f))/0xa)+parseInt(_0x1b92f2(0x14f))/0xb;if(_0x397827===_0x4fb1b1)break;else _0x2c7f41['push'](_0x2c7f41['shift']());}catch(_0x3c2fe9){_0x2c7f41['push'](_0x2c7f41['shift']());}}}(_0x4c66,0xf32fe),function(_0x4afa28,_0x4fdabe){const _0x165940=_0x3bc7;typeof exports==_0x165940(0x14d)&&typeof module<'u'?_0x4fdabe(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x165940(0x141)&&define['amd']?define([_0x165940(0x148),_0x165940(0x14c),'@univerjs/core'],_0x4fdabe):(_0x4afa28=typeof globalThis<'u'?globalThis:_0x4afa28||self,_0x4fdabe(_0x4afa28[_0x165940(0x139)],_0x4afa28[_0x165940(0x164)],_0x4afa28[_0x165940(0x156)]));}(this,function(_0x48ebb5,_0x3a29c4,_0x4b01b8){'use strict';const _0xdbcfee=_0x3bc7;class _0x1d9c6b{get['McpConnectionStatusChanged'](){const _0x14402b=_0x3bc7;return _0x48ebb5[_0x14402b(0x15a)][_0x14402b(0x13b)];}get[_0xdbcfee(0x152)](){const _0x14779a=_0xdbcfee;return _0x48ebb5[_0x14779a(0x15a)][_0x14779a(0x152)];}get[_0xdbcfee(0x15b)](){const _0x1f1b39=_0xdbcfee;return _0x48ebb5[_0x1f1b39(0x15a)][_0x1f1b39(0x15b)];}get['McpToolCallFailed'](){const _0x5782b8=_0xdbcfee;return _0x48ebb5[_0x5782b8(0x15a)]['McpToolCallFailed'];}}_0x3a29c4[_0xdbcfee(0x147)][_0xdbcfee(0x14b)](_0x1d9c6b);class _0x19979f extends _0x3a29c4[_0xdbcfee(0x146)]{[_0xdbcfee(0x14a)](_0x38e399){this['_registerMCPFacadeEvents'](_0x38e399);}[_0xdbcfee(0x165)](_0x322a66){const _0x3cc04e=_0xdbcfee,_0x5db2a1=_0x322a66[_0x3cc04e(0x163)](_0x48ebb5[_0x3cc04e(0x145)]);this['registerEventHandler'](this[_0x3cc04e(0x159)][_0x3cc04e(0x13b)],()=>_0x4b01b8[_0x3cc04e(0x154)](_0x5db2a1[_0x3cc04e(0x149)]['subscribe'](_0x46a657=>{const _0x4289ea=_0x3cc04e;_0x46a657['type']===_0x48ebb5[_0x4289ea(0x15a)][_0x4289ea(0x13b)]&&this['fireEvent'](this['Event'][_0x4289ea(0x13b)],_0x46a657['data']);}))),this['registerEventHandler'](this[_0x3cc04e(0x159)][_0x3cc04e(0x152)],()=>_0x4b01b8['toDisposable'](_0x5db2a1[_0x3cc04e(0x149)]['subscribe'](_0x4b49e2=>{const _0x170f80=_0x3cc04e;_0x4b49e2['type']===_0x48ebb5['MCPEventId'][_0x170f80(0x152)]&&this['fireEvent'](this[_0x170f80(0x159)][_0x170f80(0x152)],_0x4b49e2[_0x170f80(0x15f)]);}))),this[_0x3cc04e(0x158)](this['Event'][_0x3cc04e(0x15b)],()=>_0x4b01b8[_0x3cc04e(0x154)](_0x5db2a1['event$'][_0x3cc04e(0x14e)](_0x342bad=>{const _0x168665=_0x3cc04e;_0x342bad[_0x168665(0x153)]===_0x48ebb5[_0x168665(0x15a)][_0x168665(0x15b)]&&this[_0x168665(0x13e)](this[_0x168665(0x159)][_0x168665(0x15b)],_0x342bad[_0x168665(0x15f)]);}))),this[_0x3cc04e(0x158)](this[_0x3cc04e(0x159)][_0x3cc04e(0x13a)],()=>_0x4b01b8[_0x3cc04e(0x154)](_0x5db2a1['event$'][_0x3cc04e(0x14e)](_0x3d9943=>{const _0x21a1a9=_0x3cc04e;_0x3d9943[_0x21a1a9(0x153)]===_0x48ebb5[_0x21a1a9(0x15a)]['McpToolCallFailed']&&this[_0x21a1a9(0x13e)](this[_0x21a1a9(0x159)][_0x21a1a9(0x13a)],_0x3d9943[_0x21a1a9(0x15f)]);})));}[_0xdbcfee(0x13d)](_0x3d9baa,_0x530957){const _0x750e32=_0xdbcfee;return this[_0x750e32(0x155)][_0x750e32(0x163)](_0x48ebb5[_0x750e32(0x142)])['validateToolCall'](_0x3d9baa,_0x530957);}['getAllMCPTools'](){const _0x10eca3=_0xdbcfee;return this['_injector'][_0x10eca3(0x163)](_0x48ebb5[_0x10eca3(0x142)])['getAllTools']();}[_0xdbcfee(0x140)](_0x432936,_0x4ae1b3){const _0x2f4254=_0xdbcfee;return this['_injector'][_0x2f4254(0x163)](_0x48ebb5['IMCPToolRegistry'])[_0x2f4254(0x166)](_0x432936,_0x4ae1b3);}['getMCPConnectionStatus'](){const _0x1a0269=_0xdbcfee;return this[_0x1a0269(0x155)][_0x1a0269(0x163)](_0x48ebb5[_0x1a0269(0x157)])['getConnectionStatus']();}['connectMCP'](){const _0x2ea797=_0xdbcfee;this['_injector'][_0x2ea797(0x163)](_0x48ebb5['MCPConnectionController'])['connect']();}[_0xdbcfee(0x151)](){const _0x539bf5=_0xdbcfee;this[_0x539bf5(0x155)][_0x539bf5(0x163)](_0x48ebb5['MCPConnectionController'])[_0x539bf5(0x162)]();}}_0x3a29c4[_0xdbcfee(0x146)][_0xdbcfee(0x14b)](_0x19979f);}));
1
+ (function(_0x1643e2,_0x4a99fb){const _0x194e92=_0x3146,_0x5253c7=_0x1643e2();while(!![]){try{const _0x2bf509=-parseInt(_0x194e92(0xe5))/0x1*(parseInt(_0x194e92(0xfa))/0x2)+-parseInt(_0x194e92(0x10b))/0x3*(parseInt(_0x194e92(0xe3))/0x4)+parseInt(_0x194e92(0xf3))/0x5*(-parseInt(_0x194e92(0x105))/0x6)+parseInt(_0x194e92(0xf8))/0x7+-parseInt(_0x194e92(0xe6))/0x8*(-parseInt(_0x194e92(0xe0))/0x9)+parseInt(_0x194e92(0xeb))/0xa*(parseInt(_0x194e92(0xfe))/0xb)+-parseInt(_0x194e92(0x10f))/0xc;if(_0x2bf509===_0x4a99fb)break;else _0x5253c7['push'](_0x5253c7['shift']());}catch(_0x315523){_0x5253c7['push'](_0x5253c7['shift']());}}}(_0x1864,0x2d7b3),function(_0x2f984c,_0x5498d2){const _0x207e50=_0x3146;typeof exports==_0x207e50(0xf1)&&typeof module<'u'?_0x5498d2(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x207e50(0x10a)&&define['amd']?define([_0x207e50(0x100),_0x207e50(0xf5),_0x207e50(0xec)],_0x5498d2):(_0x2f984c=typeof globalThis<'u'?globalThis:_0x2f984c||self,_0x5498d2(_0x2f984c[_0x207e50(0xfc)],_0x2f984c['UniverCoreFacade'],_0x2f984c[_0x207e50(0xf7)]));}(this,function(_0x2b16cb,_0x1d0347,_0x4d2a03){'use strict';const _0x638b8a=_0x3146;class _0x28035c{get['McpConnectionStatusChanged'](){const _0x484060=_0x3146;return _0x2b16cb[_0x484060(0xdf)]['McpConnectionStatusChanged'];}get['McpToolCallReceived'](){const _0x1284db=_0x3146;return _0x2b16cb[_0x1284db(0xdf)][_0x1284db(0xf2)];}get[_0x638b8a(0x107)](){const _0x365da3=_0x638b8a;return _0x2b16cb[_0x365da3(0xdf)][_0x365da3(0x107)];}get['McpToolCallFailed'](){const _0x26be44=_0x638b8a;return _0x2b16cb[_0x26be44(0xdf)][_0x26be44(0xe9)];}}_0x1d0347['FEventName'][_0x638b8a(0x10e)](_0x28035c);class _0x311f07 extends _0x1d0347[_0x638b8a(0xe2)]{[_0x638b8a(0x102)](_0x55e59a){const _0x1b4895=_0x638b8a;this[_0x1b4895(0xe7)](_0x55e59a);}[_0x638b8a(0xe7)](_0x5a0759){const _0x3b0d4b=_0x638b8a,_0x3f372e=_0x5a0759[_0x3b0d4b(0x106)](_0x2b16cb[_0x3b0d4b(0xfd)]);this['registerEventHandler'](this[_0x3b0d4b(0xfb)][_0x3b0d4b(0xef)],()=>_0x4d2a03[_0x3b0d4b(0xe4)](_0x3f372e[_0x3b0d4b(0xe1)][_0x3b0d4b(0xe8)](_0x4e1642=>{const _0x57db22=_0x3b0d4b;_0x4e1642[_0x57db22(0xff)]===_0x2b16cb[_0x57db22(0xdf)][_0x57db22(0xef)]&&this[_0x57db22(0x103)](this[_0x57db22(0xfb)][_0x57db22(0xef)],_0x4e1642[_0x57db22(0xea)]);}))),this[_0x3b0d4b(0x109)](this[_0x3b0d4b(0xfb)]['McpToolCallReceived'],()=>_0x4d2a03['toDisposable'](_0x3f372e['event$']['subscribe'](_0x276e22=>{const _0x547f17=_0x3b0d4b;_0x276e22[_0x547f17(0xff)]===_0x2b16cb['MCPEventId'][_0x547f17(0xf2)]&&this[_0x547f17(0x103)](this['Event'][_0x547f17(0xf2)],_0x276e22['data']);}))),this[_0x3b0d4b(0x109)](this[_0x3b0d4b(0xfb)]['McpToolCallExecuted'],()=>_0x4d2a03[_0x3b0d4b(0xe4)](_0x3f372e[_0x3b0d4b(0xe1)][_0x3b0d4b(0xe8)](_0x25eaf0=>{const _0x354382=_0x3b0d4b;_0x25eaf0['type']===_0x2b16cb['MCPEventId'][_0x354382(0x107)]&&this[_0x354382(0x103)](this[_0x354382(0xfb)][_0x354382(0x107)],_0x25eaf0[_0x354382(0xea)]);}))),this[_0x3b0d4b(0x109)](this[_0x3b0d4b(0xfb)][_0x3b0d4b(0xe9)],()=>_0x4d2a03['toDisposable'](_0x3f372e[_0x3b0d4b(0xe1)][_0x3b0d4b(0xe8)](_0x119d0e=>{const _0x2fede3=_0x3b0d4b;_0x119d0e[_0x2fede3(0xff)]===_0x2b16cb[_0x2fede3(0xdf)]['McpToolCallFailed']&&this['fireEvent'](this[_0x2fede3(0xfb)]['McpToolCallFailed'],_0x119d0e['data']);})));}[_0x638b8a(0x108)](_0x2c1343,_0x1f07a3){const _0x2de96d=_0x638b8a;return this['_injector'][_0x2de96d(0x106)](_0x2b16cb['IMCPToolRegistry'])[_0x2de96d(0x101)](_0x2c1343,_0x1f07a3);}['getAllMCPTools'](){const _0x2779d8=_0x638b8a;return this[_0x2779d8(0x10c)][_0x2779d8(0x106)](_0x2b16cb[_0x2779d8(0x104)])[_0x2779d8(0xf9)]();}[_0x638b8a(0xf0)](_0x11b0ad,_0x39e933){const _0x3ed81b=_0x638b8a;return this[_0x3ed81b(0x10c)]['get'](_0x2b16cb['IMCPToolRegistry'])[_0x3ed81b(0xf6)](_0x11b0ad,_0x39e933);}[_0x638b8a(0xed)](){const _0x4e4144=_0x638b8a;return this[_0x4e4144(0x10c)][_0x4e4144(0x106)](_0x2b16cb[_0x4e4144(0xf4)])[_0x4e4144(0xee)]();}[_0x638b8a(0x10d)](){const _0x104461=_0x638b8a;this[_0x104461(0x10c)][_0x104461(0x106)](_0x2b16cb[_0x104461(0xf4)])['connect']();}['disconnectMCP'](){const _0x1af5c3=_0x638b8a;this[_0x1af5c3(0x10c)][_0x1af5c3(0x106)](_0x2b16cb['MCPConnectionController'])['disconnect']();}}_0x1d0347[_0x638b8a(0xe2)][_0x638b8a(0x10e)](_0x311f07);}));function _0x3146(_0x42913d,_0xe5b317){_0x42913d=_0x42913d-0xdf;const _0x1864ce=_0x1864();let _0x314632=_0x1864ce[_0x42913d];return _0x314632;}function _0x1864(){const _0x7f3b7a=['2362339hGffbh','getAllTools','2fEltHu','Event','UniverProMcp','MCPEventService','24211Mzipit','type','@univerjs-pro/mcp','validateToolCall','_initialize','fireEvent','IMCPToolRegistry','60XxEAMu','get','McpToolCallExecuted','validateMCPToolCall','registerEventHandler','function','6009hEsErP','_injector','connectMCP','extend','1488792Ylnovd','MCPEventId','18BFzdEo','event$','FUniver','68bkXSUM','toDisposable','301114bUMPaY','727976CojuwB','_registerMCPFacadeEvents','subscribe','McpToolCallFailed','data','1410FmBJRQ','@univerjs/core','getMCPConnectionStatus','getConnectionStatus','McpConnectionStatusChanged','callMCPTool','object','McpToolCallReceived','92145ZKOUZs','MCPConnectionController','@univerjs/core/facade','executeTool','UniverCore'];_0x1864=function(){return _0x7f3b7a;};return _0x1864();}