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

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 _0x110f(_0x45bcaa,_0x177798){_0x45bcaa=_0x45bcaa-0x1e6;const _0x507026=_0x5070();let _0x110f92=_0x507026[_0x45bcaa];return _0x110f92;}(function(_0x2635bd,_0x15adb0){const _0x75000f=_0x110f,_0x7b372c=_0x2635bd();while(!![]){try{const _0x34d42c=parseInt(_0x75000f(0x217))/0x1*(parseInt(_0x75000f(0x214))/0x2)+parseInt(_0x75000f(0x20e))/0x3+parseInt(_0x75000f(0x202))/0x4+-parseInt(_0x75000f(0x20b))/0x5+-parseInt(_0x75000f(0x1f5))/0x6*(parseInt(_0x75000f(0x1fd))/0x7)+parseInt(_0x75000f(0x200))/0x8*(-parseInt(_0x75000f(0x201))/0x9)+-parseInt(_0x75000f(0x1f9))/0xa*(-parseInt(_0x75000f(0x1ff))/0xb);if(_0x34d42c===_0x15adb0)break;else _0x7b372c['push'](_0x7b372c['shift']());}catch(_0x56bac3){_0x7b372c['push'](_0x7b372c['shift']());}}}(_0x5070,0x90f4e),function(_0x9e083d,_0x510e83){const _0xccd502=_0x110f;typeof exports==_0xccd502(0x206)&&typeof module<'u'?_0x510e83(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0xccd502(0x218)&&define[_0xccd502(0x1f6)]?define([_0xccd502(0x1e9),_0xccd502(0x211),_0xccd502(0x208)],_0x510e83):(_0x9e083d=typeof globalThis<'u'?globalThis:_0x9e083d||self,_0x510e83(_0x9e083d[_0xccd502(0x213)],_0x9e083d[_0xccd502(0x20c)],_0x9e083d[_0xccd502(0x204)]));}(this,function(_0x18d4b6,_0x45e7f7,_0x6d49be){'use strict';const _0x5f0216=_0x110f;class _0x353359{get[_0x5f0216(0x209)](){const _0x555a64=_0x5f0216;return _0x18d4b6[_0x555a64(0x205)][_0x555a64(0x209)];}get['McpToolCallReceived'](){const _0x369df1=_0x5f0216;return _0x18d4b6['MCPEventId'][_0x369df1(0x1e7)];}get[_0x5f0216(0x20f)](){const _0x5f3aaf=_0x5f0216;return _0x18d4b6[_0x5f3aaf(0x205)]['McpToolCallExecuted'];}get[_0x5f0216(0x216)](){const _0x4c3069=_0x5f0216;return _0x18d4b6[_0x4c3069(0x205)][_0x4c3069(0x216)];}}_0x45e7f7['FEventName'][_0x5f0216(0x1f7)](_0x353359);class _0x4c1895 extends _0x45e7f7[_0x5f0216(0x1f2)]{[_0x5f0216(0x1f4)](_0xa01933){const _0x25a3bd=_0x5f0216;this[_0x25a3bd(0x1f3)](_0xa01933);}[_0x5f0216(0x1f3)](_0x3b0da8){const _0x420114=_0x5f0216,_0x2036ab=_0x3b0da8[_0x420114(0x203)](_0x18d4b6[_0x420114(0x1ee)]);this[_0x420114(0x1ef)](this[_0x420114(0x1fc)][_0x420114(0x209)],()=>_0x6d49be[_0x420114(0x1f0)](_0x2036ab[_0x420114(0x1ea)]['subscribe'](_0x955442=>{const _0xc743df=_0x420114;_0x955442['type']===_0x18d4b6[_0xc743df(0x205)][_0xc743df(0x209)]&&this['fireEvent'](this[_0xc743df(0x1fc)][_0xc743df(0x209)],_0x955442[_0xc743df(0x1f1)]);}))),this[_0x420114(0x1ef)](this[_0x420114(0x1fc)][_0x420114(0x1e7)],()=>_0x6d49be[_0x420114(0x1f0)](_0x2036ab[_0x420114(0x1ea)][_0x420114(0x1fe)](_0x27e1a2=>{const _0x1366f4=_0x420114;_0x27e1a2[_0x1366f4(0x1e6)]===_0x18d4b6[_0x1366f4(0x205)][_0x1366f4(0x1e7)]&&this[_0x1366f4(0x20d)](this['Event'][_0x1366f4(0x1e7)],_0x27e1a2['data']);}))),this[_0x420114(0x1ef)](this['Event'][_0x420114(0x20f)],()=>_0x6d49be[_0x420114(0x1f0)](_0x2036ab[_0x420114(0x1ea)][_0x420114(0x1fe)](_0x1f5852=>{const _0x22bea2=_0x420114;_0x1f5852[_0x22bea2(0x1e6)]===_0x18d4b6[_0x22bea2(0x205)][_0x22bea2(0x20f)]&&this['fireEvent'](this[_0x22bea2(0x1fc)][_0x22bea2(0x20f)],_0x1f5852[_0x22bea2(0x1f1)]);}))),this[_0x420114(0x1ef)](this['Event'][_0x420114(0x216)],()=>_0x6d49be[_0x420114(0x1f0)](_0x2036ab[_0x420114(0x1ea)][_0x420114(0x1fe)](_0x56f092=>{const _0x5f10e3=_0x420114;_0x56f092[_0x5f10e3(0x1e6)]===_0x18d4b6[_0x5f10e3(0x205)][_0x5f10e3(0x216)]&&this[_0x5f10e3(0x20d)](this[_0x5f10e3(0x1fc)][_0x5f10e3(0x216)],_0x56f092[_0x5f10e3(0x1f1)]);})));}[_0x5f0216(0x207)](_0x1ac5a9,_0x1cae2c){const _0x1f66e6=_0x5f0216;return this['_injector'][_0x1f66e6(0x203)](_0x18d4b6[_0x1f66e6(0x1f8)])[_0x1f66e6(0x215)](_0x1ac5a9,_0x1cae2c);}[_0x5f0216(0x212)](){const _0x455816=_0x5f0216;return this['_injector']['get'](_0x18d4b6[_0x455816(0x1f8)])['getAllTools']();}[_0x5f0216(0x20a)](_0xd5f971,_0x54767b){const _0x1e2f02=_0x5f0216;return this[_0x1e2f02(0x210)][_0x1e2f02(0x203)](_0x18d4b6[_0x1e2f02(0x1f8)])[_0x1e2f02(0x1fb)](_0xd5f971,_0x54767b);}[_0x5f0216(0x1fa)](){const _0x3a0d1f=_0x5f0216;return this[_0x3a0d1f(0x210)][_0x3a0d1f(0x203)](_0x18d4b6[_0x3a0d1f(0x1eb)])[_0x3a0d1f(0x1ec)]();}[_0x5f0216(0x1ed)](){const _0x487d09=_0x5f0216;this[_0x487d09(0x210)][_0x487d09(0x203)](_0x18d4b6['MCPConnectionController'])['connect']();}[_0x5f0216(0x1e8)](){const _0x1177ce=_0x5f0216;this[_0x1177ce(0x210)][_0x1177ce(0x203)](_0x18d4b6[_0x1177ce(0x1eb)])['disconnect']();}}_0x45e7f7['FUniver'][_0x5f0216(0x1f7)](_0x4c1895);}));function _0x5070(){const _0x4469ea=['data','FUniver','_registerMCPFacadeEvents','_initialize','577164poMIwE','amd','extend','IMCPToolRegistry','50errRly','getMCPConnectionStatus','executeTool','Event','49ToeOYe','subscribe','421102swJmOS','329392HfTicb','126ndQmQD','4278692tCHPzG','get','UniverCore','MCPEventId','object','validateMCPToolCall','@univerjs/core','McpConnectionStatusChanged','callMCPTool','4568340VLYvfK','UniverCoreFacade','fireEvent','1192392uIYVbW','McpToolCallExecuted','_injector','@univerjs/core/facade','getAllMCPTools','UniverProMcp','18tUVYsZ','validateToolCall','McpToolCallFailed','122073bywBms','function','type','McpToolCallReceived','disconnectMCP','@univerjs-pro/mcp','event$','MCPConnectionController','getConnectionStatus','connectMCP','MCPEventService','registerEventHandler','toDisposable'];_0x5070=function(){return _0x4469ea;};return _0x5070();}