@univerjs-pro/mcp 0.12.2 → 0.12.3

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 _0x2179(_0xc2f658,_0x168e49){const _0x578501=_0x5785();return _0x2179=function(_0x21793b,_0x54a800){_0x21793b=_0x21793b-0x182;let _0x4b67d9=_0x578501[_0x21793b];return _0x4b67d9;},_0x2179(_0xc2f658,_0x168e49);}function _0x5785(){const _0x25e68b=['_registerMCPFacadeEvents','16zVJNsT','IMCPToolRegistry','event$','McpToolCallExecuted','5038080uLBYOd','connectMCP','getConnectionStatus','object','3916110huGzWH','MCPEventService','function','validateMCPToolCall','_initialize','UniverCoreFacade','1090892RerQjT','McpToolCallFailed','MCPConnectionController','type','amd','connect','586825UwMbYf','@univerjs/core/facade','fireEvent','disconnect','get','UniverProMcp','data','Event','_injector','6522MIfNOY','extend','McpToolCallReceived','FUniver','disconnectMCP','2430395GDmxnN','toDisposable','executeTool','3228071ARXahW','McpConnectionStatusChanged','registerEventHandler','@univerjs-pro/mcp','subscribe','getAllMCPTools','MCPEventId'];_0x5785=function(){return _0x25e68b;};return _0x5785();}(function(_0x2f9a15,_0x3e2e39){const _0x772411=_0x2179,_0x46a730=_0x2f9a15();while(!![]){try{const _0x35620c=parseInt(_0x772411(0x1a5))/0x1+parseInt(_0x772411(0x191))/0x2*(parseInt(_0x772411(0x1ae))/0x3)+-parseInt(_0x772411(0x19f))/0x4+parseInt(_0x772411(0x186))/0x5+parseInt(_0x772411(0x199))/0x6+-parseInt(_0x772411(0x189))/0x7+-parseInt(_0x772411(0x195))/0x8;if(_0x35620c===_0x3e2e39)break;else _0x46a730['push'](_0x46a730['shift']());}catch(_0x217abe){_0x46a730['push'](_0x46a730['shift']());}}}(_0x5785,0x5c9d1),function(_0x4bb818,_0x5c7902){const _0x32cade=_0x2179;typeof exports==_0x32cade(0x198)&&typeof module<'u'?_0x5c7902(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x32cade(0x19b)&&define[_0x32cade(0x1a3)]?define([_0x32cade(0x18c),_0x32cade(0x1a6),'@univerjs/core'],_0x5c7902):(_0x4bb818=typeof globalThis<'u'?globalThis:_0x4bb818||self,_0x5c7902(_0x4bb818[_0x32cade(0x1aa)],_0x4bb818[_0x32cade(0x19e)],_0x4bb818['UniverCore']));}(this,function(_0x394485,_0xe140da,_0x81c1d2){'use strict';const _0x8a84fc=_0x2179;class _0x190341{get[_0x8a84fc(0x18a)](){const _0x4635bd=_0x8a84fc;return _0x394485[_0x4635bd(0x18f)][_0x4635bd(0x18a)];}get[_0x8a84fc(0x183)](){const _0x19b7c5=_0x8a84fc;return _0x394485['MCPEventId'][_0x19b7c5(0x183)];}get[_0x8a84fc(0x194)](){return _0x394485['MCPEventId']['McpToolCallExecuted'];}get[_0x8a84fc(0x1a0)](){const _0x3624bc=_0x8a84fc;return _0x394485[_0x3624bc(0x18f)]['McpToolCallFailed'];}}_0xe140da['FEventName']['extend'](_0x190341);class _0xb900ac extends _0xe140da[_0x8a84fc(0x184)]{[_0x8a84fc(0x19d)](_0x3482ac){const _0xa92f78=_0x8a84fc;this[_0xa92f78(0x190)](_0x3482ac);}[_0x8a84fc(0x190)](_0x491d91){const _0x1bb4ef=_0x8a84fc,_0x43f1b5=_0x491d91['get'](_0x394485[_0x1bb4ef(0x19a)]);this[_0x1bb4ef(0x18b)](this[_0x1bb4ef(0x1ac)][_0x1bb4ef(0x18a)],()=>_0x81c1d2[_0x1bb4ef(0x187)](_0x43f1b5['event$'][_0x1bb4ef(0x18d)](_0x263958=>{const _0xd7db2a=_0x1bb4ef;_0x263958['type']===_0x394485[_0xd7db2a(0x18f)][_0xd7db2a(0x18a)]&&this[_0xd7db2a(0x1a7)](this['Event']['McpConnectionStatusChanged'],_0x263958[_0xd7db2a(0x1ab)]);}))),this[_0x1bb4ef(0x18b)](this[_0x1bb4ef(0x1ac)]['McpToolCallReceived'],()=>_0x81c1d2['toDisposable'](_0x43f1b5[_0x1bb4ef(0x193)][_0x1bb4ef(0x18d)](_0x58a1f3=>{const _0x311a1c=_0x1bb4ef;_0x58a1f3['type']===_0x394485[_0x311a1c(0x18f)]['McpToolCallReceived']&&this[_0x311a1c(0x1a7)](this[_0x311a1c(0x1ac)][_0x311a1c(0x183)],_0x58a1f3[_0x311a1c(0x1ab)]);}))),this[_0x1bb4ef(0x18b)](this[_0x1bb4ef(0x1ac)][_0x1bb4ef(0x194)],()=>_0x81c1d2['toDisposable'](_0x43f1b5[_0x1bb4ef(0x193)]['subscribe'](_0x3b0893=>{const _0x11abb0=_0x1bb4ef;_0x3b0893[_0x11abb0(0x1a2)]===_0x394485[_0x11abb0(0x18f)][_0x11abb0(0x194)]&&this['fireEvent'](this[_0x11abb0(0x1ac)]['McpToolCallExecuted'],_0x3b0893['data']);}))),this[_0x1bb4ef(0x18b)](this['Event'][_0x1bb4ef(0x1a0)],()=>_0x81c1d2[_0x1bb4ef(0x187)](_0x43f1b5[_0x1bb4ef(0x193)][_0x1bb4ef(0x18d)](_0x515bf1=>{const _0x274b6c=_0x1bb4ef;_0x515bf1[_0x274b6c(0x1a2)]===_0x394485['MCPEventId']['McpToolCallFailed']&&this[_0x274b6c(0x1a7)](this[_0x274b6c(0x1ac)]['McpToolCallFailed'],_0x515bf1[_0x274b6c(0x1ab)]);})));}[_0x8a84fc(0x19c)](_0x57fb79,_0x39458c){const _0x2797f2=_0x8a84fc;return this['_injector'][_0x2797f2(0x1a9)](_0x394485[_0x2797f2(0x192)])['validateToolCall'](_0x57fb79,_0x39458c);}[_0x8a84fc(0x18e)](){const _0x324354=_0x8a84fc;return this['_injector'][_0x324354(0x1a9)](_0x394485[_0x324354(0x192)])['getAllTools']();}['callMCPTool'](_0x1b9dd8,_0x44882c){const _0x10f911=_0x8a84fc;return this[_0x10f911(0x1ad)]['get'](_0x394485[_0x10f911(0x192)])[_0x10f911(0x188)](_0x1b9dd8,_0x44882c);}['getMCPConnectionStatus'](){const _0x46eda1=_0x8a84fc;return this[_0x46eda1(0x1ad)][_0x46eda1(0x1a9)](_0x394485[_0x46eda1(0x1a1)])[_0x46eda1(0x197)]();}[_0x8a84fc(0x196)](){const _0x26254e=_0x8a84fc;this[_0x26254e(0x1ad)]['get'](_0x394485['MCPConnectionController'])[_0x26254e(0x1a4)]();}[_0x8a84fc(0x185)](){const _0x4ff802=_0x8a84fc;this[_0x4ff802(0x1ad)][_0x4ff802(0x1a9)](_0x394485['MCPConnectionController'])[_0x4ff802(0x1a8)]();}}_0xe140da[_0x8a84fc(0x184)][_0x8a84fc(0x182)](_0xb900ac);}));
1
+ function _0x5241(_0x2633eb,_0x8b5f57){const _0x2ca763=_0x2ca7();return _0x5241=function(_0x524135,_0x510e0d){_0x524135=_0x524135-0x118;let _0x5bdd88=_0x2ca763[_0x524135];return _0x5bdd88;},_0x5241(_0x2633eb,_0x8b5f57);}(function(_0x1a771a,_0xe04575){const _0x509cf8=_0x5241,_0x3f195f=_0x1a771a();while(!![]){try{const _0x4dbe88=parseInt(_0x509cf8(0x139))/0x1+-parseInt(_0x509cf8(0x130))/0x2*(-parseInt(_0x509cf8(0x129))/0x3)+-parseInt(_0x509cf8(0x138))/0x4*(-parseInt(_0x509cf8(0x143))/0x5)+-parseInt(_0x509cf8(0x145))/0x6*(parseInt(_0x509cf8(0x136))/0x7)+-parseInt(_0x509cf8(0x13f))/0x8*(-parseInt(_0x509cf8(0x11a))/0x9)+parseInt(_0x509cf8(0x132))/0xa+-parseInt(_0x509cf8(0x124))/0xb;if(_0x4dbe88===_0xe04575)break;else _0x3f195f['push'](_0x3f195f['shift']());}catch(_0x5cbf65){_0x3f195f['push'](_0x3f195f['shift']());}}}(_0x2ca7,0x60c5e),function(_0x42d420,_0x12886a){const _0x4f325c=_0x5241;typeof exports==_0x4f325c(0x120)&&typeof module<'u'?_0x12886a(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define=='function'&&define[_0x4f325c(0x128)]?define([_0x4f325c(0x149),_0x4f325c(0x123),'@univerjs/core'],_0x12886a):(_0x42d420=typeof globalThis<'u'?globalThis:_0x42d420||self,_0x12886a(_0x42d420[_0x4f325c(0x146)],_0x42d420[_0x4f325c(0x118)],_0x42d420[_0x4f325c(0x12d)]));}(this,function(_0x266ae3,_0x586bb7,_0x3eb257){'use strict';const _0x563246=_0x5241;class _0x25e049{get[_0x563246(0x11f)](){const _0x4e069a=_0x563246;return _0x266ae3['MCPEventId'][_0x4e069a(0x11f)];}get['McpToolCallReceived'](){const _0x40539a=_0x563246;return _0x266ae3[_0x40539a(0x135)][_0x40539a(0x137)];}get[_0x563246(0x12c)](){const _0x10d2ed=_0x563246;return _0x266ae3[_0x10d2ed(0x135)][_0x10d2ed(0x12c)];}get[_0x563246(0x13a)](){const _0x1404a3=_0x563246;return _0x266ae3[_0x1404a3(0x135)][_0x1404a3(0x13a)];}}_0x586bb7[_0x563246(0x141)][_0x563246(0x142)](_0x25e049);class _0x346e75 extends _0x586bb7[_0x563246(0x12a)]{[_0x563246(0x134)](_0xfb776a){const _0x1fab7b=_0x563246;this[_0x1fab7b(0x131)](_0xfb776a);}[_0x563246(0x131)](_0x4b717b){const _0x50c96e=_0x563246,_0x2873dd=_0x4b717b[_0x50c96e(0x13d)](_0x266ae3[_0x50c96e(0x14a)]);this[_0x50c96e(0x140)](this[_0x50c96e(0x11e)][_0x50c96e(0x11f)],()=>_0x3eb257[_0x50c96e(0x11c)](_0x2873dd[_0x50c96e(0x12b)][_0x50c96e(0x133)](_0x412ad9=>{const _0x323e96=_0x50c96e;_0x412ad9[_0x323e96(0x13b)]===_0x266ae3['MCPEventId'][_0x323e96(0x11f)]&&this[_0x323e96(0x13c)](this[_0x323e96(0x11e)][_0x323e96(0x11f)],_0x412ad9[_0x323e96(0x11d)]);}))),this[_0x50c96e(0x140)](this[_0x50c96e(0x11e)][_0x50c96e(0x137)],()=>_0x3eb257[_0x50c96e(0x11c)](_0x2873dd[_0x50c96e(0x12b)][_0x50c96e(0x133)](_0x204cae=>{const _0x3accb4=_0x50c96e;_0x204cae['type']===_0x266ae3['MCPEventId'][_0x3accb4(0x137)]&&this['fireEvent'](this['Event']['McpToolCallReceived'],_0x204cae[_0x3accb4(0x11d)]);}))),this[_0x50c96e(0x140)](this[_0x50c96e(0x11e)][_0x50c96e(0x12c)],()=>_0x3eb257[_0x50c96e(0x11c)](_0x2873dd['event$']['subscribe'](_0x45310=>{const _0xda57ef=_0x50c96e;_0x45310['type']===_0x266ae3[_0xda57ef(0x135)][_0xda57ef(0x12c)]&&this['fireEvent'](this[_0xda57ef(0x11e)][_0xda57ef(0x12c)],_0x45310[_0xda57ef(0x11d)]);}))),this[_0x50c96e(0x140)](this['Event']['McpToolCallFailed'],()=>_0x3eb257[_0x50c96e(0x11c)](_0x2873dd[_0x50c96e(0x12b)][_0x50c96e(0x133)](_0x502553=>{const _0x1caca9=_0x50c96e;_0x502553[_0x1caca9(0x13b)]===_0x266ae3[_0x1caca9(0x135)][_0x1caca9(0x13a)]&&this[_0x1caca9(0x13c)](this['Event'][_0x1caca9(0x13a)],_0x502553['data']);})));}[_0x563246(0x125)](_0x26fe2f,_0x5718d0){const _0x348558=_0x563246;return this['_injector'][_0x348558(0x13d)](_0x266ae3[_0x348558(0x13e)])[_0x348558(0x144)](_0x26fe2f,_0x5718d0);}['getAllMCPTools'](){const _0x3c4d03=_0x563246;return this[_0x3c4d03(0x148)][_0x3c4d03(0x13d)](_0x266ae3[_0x3c4d03(0x13e)])[_0x3c4d03(0x122)]();}[_0x563246(0x12e)](_0x5e02b8,_0x233631){const _0x4f490c=_0x563246;return this[_0x4f490c(0x148)][_0x4f490c(0x13d)](_0x266ae3[_0x4f490c(0x13e)])[_0x4f490c(0x11b)](_0x5e02b8,_0x233631);}[_0x563246(0x147)](){const _0x293862=_0x563246;return this[_0x293862(0x148)][_0x293862(0x13d)](_0x266ae3[_0x293862(0x126)])[_0x293862(0x119)]();}[_0x563246(0x127)](){const _0x47cf50=_0x563246;this['_injector'][_0x47cf50(0x13d)](_0x266ae3[_0x47cf50(0x126)])['connect']();}[_0x563246(0x12f)](){const _0x688da9=_0x563246;this[_0x688da9(0x148)]['get'](_0x266ae3[_0x688da9(0x126)])[_0x688da9(0x121)]();}}_0x586bb7['FUniver'][_0x563246(0x142)](_0x346e75);}));function _0x2ca7(){const _0x496f8e=['validateMCPToolCall','MCPConnectionController','connectMCP','amd','42NApFrn','FUniver','event$','McpToolCallExecuted','UniverCore','callMCPTool','disconnectMCP','24516skIcsn','_registerMCPFacadeEvents','5136290IxNdFT','subscribe','_initialize','MCPEventId','1575126hZTwCh','McpToolCallReceived','1371196clNZfU','416909TMxjbp','McpToolCallFailed','type','fireEvent','get','IMCPToolRegistry','8800qxrSAN','registerEventHandler','FEventName','extend','10CoTEMP','validateToolCall','12TopzUp','UniverProMcp','getMCPConnectionStatus','_injector','@univerjs-pro/mcp','MCPEventService','UniverCoreFacade','getConnectionStatus','4527rXqCEh','executeTool','toDisposable','data','Event','McpConnectionStatusChanged','object','disconnect','getAllTools','@univerjs/core/facade','16440930wqHFlv'];_0x2ca7=function(){return _0x496f8e;};return _0x2ca7();}