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

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 _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();}
1
+ const _0x53bfe2=_0x567b;(function(_0x4a6d75,_0xc81e55){const _0x47d105=_0x567b,_0x2058dc=_0x4a6d75();while(!![]){try{const _0x14e66a=-parseInt(_0x47d105(0x1a8))/0x1+-parseInt(_0x47d105(0x1b0))/0x2+-parseInt(_0x47d105(0x19f))/0x3+-parseInt(_0x47d105(0x1b6))/0x4+parseInt(_0x47d105(0x1a1))/0x5*(parseInt(_0x47d105(0x1a5))/0x6)+parseInt(_0x47d105(0x19d))/0x7+parseInt(_0x47d105(0x1b3))/0x8;if(_0x14e66a===_0xc81e55)break;else _0x2058dc['push'](_0x2058dc['shift']());}catch(_0x3c1ec5){_0x2058dc['push'](_0x2058dc['shift']());}}}(_0xef58,0x447d0));import{MCPEventId as _0x1cf935,MCPEventService as _0xb92119,IMCPToolRegistry as _0x6defee,MCPConnectionController as _0x56985d}from'@univerjs-pro/mcp';import{FEventName as _0x5dede0,FUniver as _0x5d8755}from'@univerjs/core/facade';import{toDisposable as _0x2ac57a}from'@univerjs/core';function _0x567b(_0xa15050,_0x121c06){_0xa15050=_0xa15050-0x19c;const _0xef58dd=_0xef58();let _0x567b0b=_0xef58dd[_0xa15050];return _0x567b0b;}class d{get[_0x53bfe2(0x1ab)](){return _0x1cf935['McpConnectionStatusChanged'];}get['McpToolCallReceived'](){const _0x3843c2=_0x53bfe2;return _0x1cf935[_0x3843c2(0x1b1)];}get[_0x53bfe2(0x1ad)](){const _0x5aebfb=_0x53bfe2;return _0x1cf935[_0x5aebfb(0x1ad)];}get[_0x53bfe2(0x19e)](){const _0x1d53ca=_0x53bfe2;return _0x1cf935[_0x1d53ca(0x19e)];}}_0x5dede0['extend'](d);class M extends _0x5d8755{['_initialize'](_0x2fd691){const _0x435e6a=_0x53bfe2;this[_0x435e6a(0x1ae)](_0x2fd691);}['_registerMCPFacadeEvents'](_0x9cef73){const _0x5b07d8=_0x53bfe2,_0x2635b3=_0x9cef73[_0x5b07d8(0x1a7)](_0xb92119);this[_0x5b07d8(0x1b2)](this[_0x5b07d8(0x1b9)][_0x5b07d8(0x1ab)],()=>_0x2ac57a(_0x2635b3[_0x5b07d8(0x1a0)][_0x5b07d8(0x19c)](_0x2fd546=>{const _0x176bd4=_0x5b07d8;_0x2fd546['type']===_0x1cf935[_0x176bd4(0x1ab)]&&this[_0x176bd4(0x1aa)](this[_0x176bd4(0x1b9)][_0x176bd4(0x1ab)],_0x2fd546[_0x176bd4(0x1b7)]);}))),this['registerEventHandler'](this[_0x5b07d8(0x1b9)][_0x5b07d8(0x1b1)],()=>_0x2ac57a(_0x2635b3[_0x5b07d8(0x1a0)][_0x5b07d8(0x19c)](_0x292ce5=>{const _0x39e345=_0x5b07d8;_0x292ce5[_0x39e345(0x1ac)]===_0x1cf935[_0x39e345(0x1b1)]&&this['fireEvent'](this[_0x39e345(0x1b9)][_0x39e345(0x1b1)],_0x292ce5['data']);}))),this[_0x5b07d8(0x1b2)](this[_0x5b07d8(0x1b9)][_0x5b07d8(0x1ad)],()=>_0x2ac57a(_0x2635b3[_0x5b07d8(0x1a0)][_0x5b07d8(0x19c)](_0x5b0158=>{const _0x26bf86=_0x5b07d8;_0x5b0158[_0x26bf86(0x1ac)]===_0x1cf935[_0x26bf86(0x1ad)]&&this[_0x26bf86(0x1aa)](this[_0x26bf86(0x1b9)]['McpToolCallExecuted'],_0x5b0158[_0x26bf86(0x1b7)]);}))),this['registerEventHandler'](this[_0x5b07d8(0x1b9)][_0x5b07d8(0x19e)],()=>_0x2ac57a(_0x2635b3[_0x5b07d8(0x1a0)][_0x5b07d8(0x19c)](_0x474402=>{const _0x5975e9=_0x5b07d8;_0x474402[_0x5975e9(0x1ac)]===_0x1cf935[_0x5975e9(0x19e)]&&this[_0x5975e9(0x1aa)](this[_0x5975e9(0x1b9)][_0x5975e9(0x19e)],_0x474402['data']);})));}['validateMCPToolCall'](_0x41276e,_0x41b4a9){const _0x5499f6=_0x53bfe2;return this[_0x5499f6(0x1a2)][_0x5499f6(0x1a7)](_0x6defee)['validateToolCall'](_0x41276e,_0x41b4a9);}[_0x53bfe2(0x1b4)](){const _0x72dd68=_0x53bfe2;return this[_0x72dd68(0x1a2)]['get'](_0x6defee)[_0x72dd68(0x1af)]();}[_0x53bfe2(0x1b5)](_0x310968,_0x17f0bc){const _0x33dad8=_0x53bfe2;return this[_0x33dad8(0x1a2)][_0x33dad8(0x1a7)](_0x6defee)[_0x33dad8(0x1a4)](_0x310968,_0x17f0bc);}['getMCPConnectionStatus'](){const _0x37c3cf=_0x53bfe2;return this['_injector'][_0x37c3cf(0x1a7)](_0x56985d)['getConnectionStatus']();}[_0x53bfe2(0x1a6)](){const _0x2718a9=_0x53bfe2;this['_injector'][_0x2718a9(0x1a7)](_0x56985d)[_0x2718a9(0x1a9)]();}[_0x53bfe2(0x1ba)](){const _0x4405fb=_0x53bfe2;this[_0x4405fb(0x1a2)][_0x4405fb(0x1a7)](_0x56985d)[_0x4405fb(0x1a3)]();}}_0x5d8755[_0x53bfe2(0x1b8)](M);function _0xef58(){const _0x26cf90=['94353ZobbHh','connect','fireEvent','McpConnectionStatusChanged','type','McpToolCallExecuted','_registerMCPFacadeEvents','getAllTools','554442RDZXhJ','McpToolCallReceived','registerEventHandler','1704840zHmBFB','getAllMCPTools','callMCPTool','550692PHptBq','data','extend','Event','disconnectMCP','subscribe','3591175OaXwnb','McpToolCallFailed','1246368ArVnOd','event$','35giKkyA','_injector','disconnect','executeTool','410658WHFAWi','connectMCP','get'];_0xef58=function(){return _0x26cf90;};return _0xef58();}