@univerjs-pro/mcp 0.15.0-insiders.20260110-48b77c8 → 0.15.1-insiders.20260117-8ce4a01

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 _0x3878(){const _0x2f2e59=['McpConnectionStatusChanged','6612588BpJvLE','@univerjs/core','FUniver','extend','fireEvent','amd','data','getMCPConnectionStatus','_registerMCPFacadeEvents','MCPConnectionController','disconnect','toDisposable','8665168qSKMzK','11436JVdKWi','disconnectMCP','IMCPToolRegistry','6128635TsWBTT','MCPEventId','FEventName','function','subscribe','get','57099pFWbEh','type','getConnectionStatus','callMCPTool','McpToolCallExecuted','MCPEventService','connect','6014244lEMAgT','164dQCPbs','event$','validateToolCall','UniverCoreFacade','186vidWzT','1539582sYetfb','McpToolCallReceived','registerEventHandler','_injector','getAllMCPTools','@univerjs/core/facade','@univerjs-pro/mcp','UniverProMcp','getAllTools','connectMCP','validateMCPToolCall','McpToolCallFailed','_initialize','Event'];_0x3878=function(){return _0x2f2e59;};return _0x3878();}function _0x3f43(_0x391f00,_0x4fa268){_0x391f00=_0x391f00-0x1ed;const _0x387841=_0x3878();let _0x3f4387=_0x387841[_0x391f00];return _0x3f4387;}(function(_0x5d8b43,_0x30f684){const _0x397e5b=_0x3f43,_0x2e727e=_0x5d8b43();while(!![]){try{const _0x224811=parseInt(_0x397e5b(0x1fd))/0x1+parseInt(_0x397e5b(0x1f8))/0x2*(-parseInt(_0x397e5b(0x219))/0x3)+-parseInt(_0x397e5b(0x1f7))/0x4+parseInt(_0x397e5b(0x21c))/0x5+parseInt(_0x397e5b(0x1fc))/0x6*(parseInt(_0x397e5b(0x1f0))/0x7)+-parseInt(_0x397e5b(0x218))/0x8+parseInt(_0x397e5b(0x20c))/0x9;if(_0x224811===_0x30f684)break;else _0x2e727e['push'](_0x2e727e['shift']());}catch(_0x109ae6){_0x2e727e['push'](_0x2e727e['shift']());}}}(_0x3878,0xd0671),function(_0x167565,_0x22e51c){const _0x4b0849=_0x3f43;typeof exports=='object'&&typeof module<'u'?_0x22e51c(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x4b0849(0x1ed)&&define[_0x4b0849(0x211)]?define([_0x4b0849(0x203),_0x4b0849(0x202),_0x4b0849(0x20d)],_0x22e51c):(_0x167565=typeof globalThis<'u'?globalThis:_0x167565||self,_0x22e51c(_0x167565[_0x4b0849(0x204)],_0x167565[_0x4b0849(0x1fb)],_0x167565['UniverCore']));}(this,function(_0x2f7c62,_0x3a938c,_0x55494b){'use strict';const _0x3d6fbc=_0x3f43;class _0x461de5{get[_0x3d6fbc(0x20b)](){const _0x2cb608=_0x3d6fbc;return _0x2f7c62['MCPEventId'][_0x2cb608(0x20b)];}get[_0x3d6fbc(0x1fe)](){return _0x2f7c62['MCPEventId']['McpToolCallReceived'];}get[_0x3d6fbc(0x1f4)](){const _0x22932c=_0x3d6fbc;return _0x2f7c62[_0x22932c(0x21d)][_0x22932c(0x1f4)];}get['McpToolCallFailed'](){const _0x1e1c0f=_0x3d6fbc;return _0x2f7c62[_0x1e1c0f(0x21d)][_0x1e1c0f(0x208)];}}_0x3a938c[_0x3d6fbc(0x21e)]['extend'](_0x461de5);class _0x39c51d extends _0x3a938c[_0x3d6fbc(0x20e)]{[_0x3d6fbc(0x209)](_0x12c58b){const _0x3fa132=_0x3d6fbc;this[_0x3fa132(0x214)](_0x12c58b);}[_0x3d6fbc(0x214)](_0x47335d){const _0x2174f0=_0x3d6fbc,_0x2a5070=_0x47335d['get'](_0x2f7c62[_0x2174f0(0x1f5)]);this['registerEventHandler'](this[_0x2174f0(0x20a)][_0x2174f0(0x20b)],()=>_0x55494b[_0x2174f0(0x217)](_0x2a5070[_0x2174f0(0x1f9)][_0x2174f0(0x1ee)](_0x5b4562=>{const _0x47c671=_0x2174f0;_0x5b4562[_0x47c671(0x1f1)]===_0x2f7c62['MCPEventId'][_0x47c671(0x20b)]&&this['fireEvent'](this[_0x47c671(0x20a)][_0x47c671(0x20b)],_0x5b4562[_0x47c671(0x212)]);}))),this[_0x2174f0(0x1ff)](this[_0x2174f0(0x20a)][_0x2174f0(0x1fe)],()=>_0x55494b[_0x2174f0(0x217)](_0x2a5070[_0x2174f0(0x1f9)][_0x2174f0(0x1ee)](_0x2eb83b=>{const _0x112439=_0x2174f0;_0x2eb83b[_0x112439(0x1f1)]===_0x2f7c62[_0x112439(0x21d)][_0x112439(0x1fe)]&&this[_0x112439(0x210)](this['Event'][_0x112439(0x1fe)],_0x2eb83b[_0x112439(0x212)]);}))),this[_0x2174f0(0x1ff)](this['Event'][_0x2174f0(0x1f4)],()=>_0x55494b[_0x2174f0(0x217)](_0x2a5070[_0x2174f0(0x1f9)][_0x2174f0(0x1ee)](_0x293849=>{const _0x4e9934=_0x2174f0;_0x293849[_0x4e9934(0x1f1)]===_0x2f7c62[_0x4e9934(0x21d)]['McpToolCallExecuted']&&this[_0x4e9934(0x210)](this[_0x4e9934(0x20a)][_0x4e9934(0x1f4)],_0x293849[_0x4e9934(0x212)]);}))),this[_0x2174f0(0x1ff)](this[_0x2174f0(0x20a)][_0x2174f0(0x208)],()=>_0x55494b[_0x2174f0(0x217)](_0x2a5070[_0x2174f0(0x1f9)][_0x2174f0(0x1ee)](_0x2ba91e=>{const _0x5da2e1=_0x2174f0;_0x2ba91e['type']===_0x2f7c62[_0x5da2e1(0x21d)][_0x5da2e1(0x208)]&&this[_0x5da2e1(0x210)](this[_0x5da2e1(0x20a)][_0x5da2e1(0x208)],_0x2ba91e[_0x5da2e1(0x212)]);})));}[_0x3d6fbc(0x207)](_0x3674a8,_0x57af5e){const _0x442917=_0x3d6fbc;return this['_injector'][_0x442917(0x1ef)](_0x2f7c62[_0x442917(0x21b)])[_0x442917(0x1fa)](_0x3674a8,_0x57af5e);}[_0x3d6fbc(0x201)](){const _0x39616b=_0x3d6fbc;return this[_0x39616b(0x200)][_0x39616b(0x1ef)](_0x2f7c62[_0x39616b(0x21b)])[_0x39616b(0x205)]();}[_0x3d6fbc(0x1f3)](_0x30994a,_0x25ce0f){const _0x509505=_0x3d6fbc;return this[_0x509505(0x200)][_0x509505(0x1ef)](_0x2f7c62[_0x509505(0x21b)])['executeTool'](_0x30994a,_0x25ce0f);}[_0x3d6fbc(0x213)](){const _0x263879=_0x3d6fbc;return this[_0x263879(0x200)]['get'](_0x2f7c62[_0x263879(0x215)])[_0x263879(0x1f2)]();}[_0x3d6fbc(0x206)](){const _0x53703a=_0x3d6fbc;this[_0x53703a(0x200)][_0x53703a(0x1ef)](_0x2f7c62[_0x53703a(0x215)])[_0x53703a(0x1f6)]();}[_0x3d6fbc(0x21a)](){const _0x3e8f83=_0x3d6fbc;this[_0x3e8f83(0x200)][_0x3e8f83(0x1ef)](_0x2f7c62[_0x3e8f83(0x215)])[_0x3e8f83(0x216)]();}}_0x3a938c[_0x3d6fbc(0x20e)][_0x3d6fbc(0x20f)](_0x39c51d);}));
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);}));