@univerjs-pro/mcp 0.15.0-insiders.20251227-dafc157 → 0.15.0-insiders.20251227-453e4ff

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
- const _0x35f66a=_0x27a5;(function(_0x4281f4,_0x3006e5){const _0x30ea42=_0x27a5,_0x4759a0=_0x4281f4();while(!![]){try{const _0x3ea180=-parseInt(_0x30ea42(0x122))/0x1+parseInt(_0x30ea42(0x121))/0x2*(-parseInt(_0x30ea42(0x127))/0x3)+parseInt(_0x30ea42(0x11e))/0x4+parseInt(_0x30ea42(0x118))/0x5+-parseInt(_0x30ea42(0x12c))/0x6*(parseInt(_0x30ea42(0x11f))/0x7)+-parseInt(_0x30ea42(0x123))/0x8+parseInt(_0x30ea42(0x130))/0x9;if(_0x3ea180===_0x3006e5)break;else _0x4759a0['push'](_0x4759a0['shift']());}catch(_0x524b85){_0x4759a0['push'](_0x4759a0['shift']());}}}(_0x26a2,0xab4d5));import{MCPEventId as _0x354118,MCPEventService as _0x306a02,IMCPToolRegistry as _0x27bcfe,MCPConnectionController as _0x48c54f}from'@univerjs-pro/mcp';import{FEventName as _0x55aa99,FUniver as _0x25ccf5}from'@univerjs/core/facade';import{toDisposable as _0x5b9b61}from'@univerjs/core';class d{get[_0x35f66a(0x11b)](){return _0x354118['McpConnectionStatusChanged'];}get[_0x35f66a(0x113)](){const _0x54d39c=_0x35f66a;return _0x354118[_0x54d39c(0x113)];}get[_0x35f66a(0x11c)](){const _0x51772c=_0x35f66a;return _0x354118[_0x51772c(0x11c)];}get[_0x35f66a(0x12d)](){const _0x28ffd9=_0x35f66a;return _0x354118[_0x28ffd9(0x12d)];}}function _0x26a2(){const _0x4be80e=['_initialize','callMCPTool','5025420ueHBGT','executeTool','connect','McpConnectionStatusChanged','McpToolCallExecuted','subscribe','2262128dMVrmv','273EBXoIp','disconnect','1248334jMyOQb','592252RUsevs','3189560nByooE','getMCPConnectionStatus','validateToolCall','connectMCP','3dqRHeU','getAllMCPTools','validateMCPToolCall','get','_registerMCPFacadeEvents','7506dnMSBh','McpToolCallFailed','Event','_injector','7154460GJPwno','fireEvent','extend','getAllTools','disconnectMCP','type','data','McpToolCallReceived','event$','registerEventHandler'];_0x26a2=function(){return _0x4be80e;};return _0x26a2();}function _0x27a5(_0x57c4e3,_0x387e0f){_0x57c4e3=_0x57c4e3-0x110;const _0x26a2ea=_0x26a2();let _0x27a5b9=_0x26a2ea[_0x57c4e3];return _0x27a5b9;}_0x55aa99['extend'](d);class M extends _0x25ccf5{[_0x35f66a(0x116)](_0x742de7){const _0x540f23=_0x35f66a;this[_0x540f23(0x12b)](_0x742de7);}[_0x35f66a(0x12b)](_0x3ca714){const _0x52f879=_0x35f66a,_0x592369=_0x3ca714[_0x52f879(0x12a)](_0x306a02);this[_0x52f879(0x115)](this[_0x52f879(0x12e)]['McpConnectionStatusChanged'],()=>_0x5b9b61(_0x592369[_0x52f879(0x114)][_0x52f879(0x11d)](_0x4365c6=>{const _0x18410a=_0x52f879;_0x4365c6['type']===_0x354118['McpConnectionStatusChanged']&&this[_0x18410a(0x131)](this[_0x18410a(0x12e)][_0x18410a(0x11b)],_0x4365c6['data']);}))),this['registerEventHandler'](this['Event'][_0x52f879(0x113)],()=>_0x5b9b61(_0x592369[_0x52f879(0x114)]['subscribe'](_0x5413f1=>{const _0x279af8=_0x52f879;_0x5413f1[_0x279af8(0x111)]===_0x354118[_0x279af8(0x113)]&&this[_0x279af8(0x131)](this[_0x279af8(0x12e)][_0x279af8(0x113)],_0x5413f1[_0x279af8(0x112)]);}))),this[_0x52f879(0x115)](this[_0x52f879(0x12e)][_0x52f879(0x11c)],()=>_0x5b9b61(_0x592369[_0x52f879(0x114)][_0x52f879(0x11d)](_0x343737=>{const _0x2fcdd3=_0x52f879;_0x343737[_0x2fcdd3(0x111)]===_0x354118['McpToolCallExecuted']&&this[_0x2fcdd3(0x131)](this[_0x2fcdd3(0x12e)][_0x2fcdd3(0x11c)],_0x343737[_0x2fcdd3(0x112)]);}))),this['registerEventHandler'](this[_0x52f879(0x12e)]['McpToolCallFailed'],()=>_0x5b9b61(_0x592369[_0x52f879(0x114)]['subscribe'](_0x4d449c=>{const _0x2fb0ba=_0x52f879;_0x4d449c['type']===_0x354118['McpToolCallFailed']&&this['fireEvent'](this['Event'][_0x2fb0ba(0x12d)],_0x4d449c[_0x2fb0ba(0x112)]);})));}[_0x35f66a(0x129)](_0x4443d9,_0x28855f){const _0x3d3d16=_0x35f66a;return this['_injector']['get'](_0x27bcfe)[_0x3d3d16(0x125)](_0x4443d9,_0x28855f);}[_0x35f66a(0x128)](){const _0x86fd6c=_0x35f66a;return this['_injector'][_0x86fd6c(0x12a)](_0x27bcfe)[_0x86fd6c(0x133)]();}[_0x35f66a(0x117)](_0x3987eb,_0x547507){const _0x36c94f=_0x35f66a;return this[_0x36c94f(0x12f)][_0x36c94f(0x12a)](_0x27bcfe)[_0x36c94f(0x119)](_0x3987eb,_0x547507);}[_0x35f66a(0x124)](){return this['_injector']['get'](_0x48c54f)['getConnectionStatus']();}[_0x35f66a(0x126)](){const _0x53b233=_0x35f66a;this[_0x53b233(0x12f)][_0x53b233(0x12a)](_0x48c54f)[_0x53b233(0x11a)]();}[_0x35f66a(0x110)](){const _0x1f5e08=_0x35f66a;this['_injector'][_0x1f5e08(0x12a)](_0x48c54f)[_0x1f5e08(0x120)]();}}_0x25ccf5[_0x35f66a(0x132)](M);
1
+ const _0x114039=_0x5f05;(function(_0x2d9dfc,_0x1c9e6a){const _0x4a602d=_0x5f05,_0x59ee8a=_0x2d9dfc();while(!![]){try{const _0x4fb6e9=parseInt(_0x4a602d(0xdd))/0x1+parseInt(_0x4a602d(0xd6))/0x2*(parseInt(_0x4a602d(0xd5))/0x3)+-parseInt(_0x4a602d(0xe3))/0x4+-parseInt(_0x4a602d(0xcd))/0x5*(-parseInt(_0x4a602d(0xcc))/0x6)+-parseInt(_0x4a602d(0xe7))/0x7+parseInt(_0x4a602d(0xcb))/0x8*(-parseInt(_0x4a602d(0xd4))/0x9)+-parseInt(_0x4a602d(0xd8))/0xa*(-parseInt(_0x4a602d(0xd3))/0xb);if(_0x4fb6e9===_0x1c9e6a)break;else _0x59ee8a['push'](_0x59ee8a['shift']());}catch(_0x577ff4){_0x59ee8a['push'](_0x59ee8a['shift']());}}}(_0x4f69,0x2c9df));import{MCPEventId as _0x4047db,MCPEventService as _0xa1996,IMCPToolRegistry as _0x5f30fc,MCPConnectionController as _0x28ab88}from'@univerjs-pro/mcp';import{FEventName as _0x362b81,FUniver as _0x39a4a1}from'@univerjs/core/facade';import{toDisposable as _0x41ef66}from'@univerjs/core';function _0x5f05(_0x321376,_0x303d20){_0x321376=_0x321376-0xca;const _0x4f69e0=_0x4f69();let _0x5f0513=_0x4f69e0[_0x321376];return _0x5f0513;}class d{get[_0x114039(0xe5)](){const _0x2af237=_0x114039;return _0x4047db[_0x2af237(0xe5)];}get[_0x114039(0xeb)](){const _0x2a7307=_0x114039;return _0x4047db[_0x2a7307(0xeb)];}get['McpToolCallExecuted'](){const _0x7bd8c3=_0x114039;return _0x4047db[_0x7bd8c3(0xd2)];}get[_0x114039(0xec)](){return _0x4047db['McpToolCallFailed'];}}_0x362b81[_0x114039(0xe1)](d);class M extends _0x39a4a1{[_0x114039(0xda)](_0x289cda){const _0x32f0a8=_0x114039;this[_0x32f0a8(0xde)](_0x289cda);}[_0x114039(0xde)](_0x4e4fed){const _0x38f145=_0x114039,_0x53e814=_0x4e4fed[_0x38f145(0xe4)](_0xa1996);this[_0x38f145(0xd1)](this['Event'][_0x38f145(0xe5)],()=>_0x41ef66(_0x53e814['event$'][_0x38f145(0xdc)](_0x68491f=>{const _0x1c8fd2=_0x38f145;_0x68491f[_0x1c8fd2(0xe2)]===_0x4047db['McpConnectionStatusChanged']&&this[_0x1c8fd2(0xd9)](this['Event'][_0x1c8fd2(0xe5)],_0x68491f['data']);}))),this['registerEventHandler'](this['Event'][_0x38f145(0xeb)],()=>_0x41ef66(_0x53e814[_0x38f145(0xd7)]['subscribe'](_0x280e98=>{const _0x2d6731=_0x38f145;_0x280e98[_0x2d6731(0xe2)]===_0x4047db[_0x2d6731(0xeb)]&&this[_0x2d6731(0xd9)](this['Event']['McpToolCallReceived'],_0x280e98[_0x2d6731(0xca)]);}))),this['registerEventHandler'](this[_0x38f145(0xce)][_0x38f145(0xd2)],()=>_0x41ef66(_0x53e814[_0x38f145(0xd7)][_0x38f145(0xdc)](_0x42b5d9=>{const _0x384565=_0x38f145;_0x42b5d9[_0x384565(0xe2)]===_0x4047db[_0x384565(0xd2)]&&this[_0x384565(0xd9)](this[_0x384565(0xce)][_0x384565(0xd2)],_0x42b5d9[_0x384565(0xca)]);}))),this[_0x38f145(0xd1)](this['Event'][_0x38f145(0xec)],()=>_0x41ef66(_0x53e814[_0x38f145(0xd7)]['subscribe'](_0x564494=>{const _0x5628ee=_0x38f145;_0x564494['type']===_0x4047db[_0x5628ee(0xec)]&&this[_0x5628ee(0xd9)](this[_0x5628ee(0xce)]['McpToolCallFailed'],_0x564494[_0x5628ee(0xca)]);})));}['validateMCPToolCall'](_0x4c882d,_0x4d94be){const _0x21ed09=_0x114039;return this['_injector'][_0x21ed09(0xe4)](_0x5f30fc)[_0x21ed09(0xe6)](_0x4c882d,_0x4d94be);}[_0x114039(0xcf)](){const _0x1d60e0=_0x114039;return this['_injector'][_0x1d60e0(0xe4)](_0x5f30fc)['getAllTools']();}[_0x114039(0xdf)](_0x58f1ed,_0x24b2dd){const _0x14a812=_0x114039;return this['_injector'][_0x14a812(0xe4)](_0x5f30fc)['executeTool'](_0x58f1ed,_0x24b2dd);}[_0x114039(0xe8)](){const _0x5ebfa9=_0x114039;return this[_0x5ebfa9(0xdb)][_0x5ebfa9(0xe4)](_0x28ab88)[_0x5ebfa9(0xea)]();}['connectMCP'](){const _0x2dc514=_0x114039;this[_0x2dc514(0xdb)][_0x2dc514(0xe4)](_0x28ab88)[_0x2dc514(0xe9)]();}[_0x114039(0xe0)](){const _0x373ef1=_0x114039;this['_injector']['get'](_0x28ab88)[_0x373ef1(0xd0)]();}}_0x39a4a1[_0x114039(0xe1)](M);function _0x4f69(){const _0x399dc6=['20oJmSVU','fireEvent','_initialize','_injector','subscribe','168510pYOpCl','_registerMCPFacadeEvents','callMCPTool','disconnectMCP','extend','type','452172PPHvYO','get','McpConnectionStatusChanged','validateToolCall','1312717IlDHGR','getMCPConnectionStatus','connect','getConnectionStatus','McpToolCallReceived','McpToolCallFailed','data','8UEeaRA','6JLoBGx','161325vyEnBM','Event','getAllMCPTools','disconnect','registerEventHandler','McpToolCallExecuted','1625723TJjrgV','331578wbbRlo','6PmCZTq','23806YRwmLl','event$'];_0x4f69=function(){return _0x399dc6;};return _0x4f69();}