@univerjs-pro/mcp 0.14.0-insiders.20251227-b250a8d → 0.15.0-insiders.20251227-dafc157

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 _0x4052bf=_0x5e72;(function(_0x5e2c34,_0xecc40e){const _0x2b7bf9=_0x5e72,_0x4e8f92=_0x5e2c34();while(!![]){try{const _0x5450d9=-parseInt(_0x2b7bf9(0x187))/0x1+parseInt(_0x2b7bf9(0x19a))/0x2*(-parseInt(_0x2b7bf9(0x1a5))/0x3)+parseInt(_0x2b7bf9(0x1a4))/0x4+-parseInt(_0x2b7bf9(0x196))/0x5*(-parseInt(_0x2b7bf9(0x18a))/0x6)+-parseInt(_0x2b7bf9(0x19f))/0x7*(parseInt(_0x2b7bf9(0x192))/0x8)+parseInt(_0x2b7bf9(0x1a8))/0x9+-parseInt(_0x2b7bf9(0x195))/0xa*(-parseInt(_0x2b7bf9(0x194))/0xb);if(_0x5450d9===_0xecc40e)break;else _0x4e8f92['push'](_0x4e8f92['shift']());}catch(_0x245901){_0x4e8f92['push'](_0x4e8f92['shift']());}}}(_0x2f59,0xef978));function _0x5e72(_0x3b5c5d,_0x1cc875){_0x3b5c5d=_0x3b5c5d-0x185;const _0x2f596f=_0x2f59();let _0x5e7225=_0x2f596f[_0x3b5c5d];return _0x5e7225;}import{MCPEventId as _0x530409,MCPEventService as _0x4a8b63,IMCPToolRegistry as _0x1f87c8,MCPConnectionController as _0x4d283b}from'@univerjs-pro/mcp';import{FEventName as _0x558c42,FUniver as _0x4b12b8}from'@univerjs/core/facade';import{toDisposable as _0xe7bab3}from'@univerjs/core';class d{get['McpConnectionStatusChanged'](){const _0x32a4e8=_0x5e72;return _0x530409[_0x32a4e8(0x18c)];}get[_0x4052bf(0x193)](){const _0x50fc86=_0x4052bf;return _0x530409[_0x50fc86(0x193)];}get[_0x4052bf(0x1a0)](){const _0x165330=_0x4052bf;return _0x530409[_0x165330(0x1a0)];}get[_0x4052bf(0x190)](){const _0x47172e=_0x4052bf;return _0x530409[_0x47172e(0x190)];}}function _0x2f59(){const _0x3e3e7d=['getAllTools','get','6sPCTkz','_registerMCPFacadeEvents','McpConnectionStatusChanged','Event','extend','type','McpToolCallFailed','executeTool','11777384imuFBP','McpToolCallReceived','28665131KXicnW','10lnLLfo','6231790EttljR','registerEventHandler','_injector','connect','2pTmmxK','fireEvent','validateToolCall','data','getConnectionStatus','7cBsutV','McpToolCallExecuted','callMCPTool','event$','disconnectMCP','3872544dSiEGQ','2683047kYohBo','disconnect','connectMCP','2809071kKlazc','getAllMCPTools','subscribe','_initialize','getMCPConnectionStatus','1784644vjZQrq'];_0x2f59=function(){return _0x3e3e7d;};return _0x2f59();}_0x558c42[_0x4052bf(0x18e)](d);class M extends _0x4b12b8{[_0x4052bf(0x185)](_0x455a4c){const _0x552801=_0x4052bf;this[_0x552801(0x18b)](_0x455a4c);}['_registerMCPFacadeEvents'](_0x1ca63e){const _0xa777e2=_0x4052bf,_0x941b32=_0x1ca63e[_0xa777e2(0x189)](_0x4a8b63);this['registerEventHandler'](this['Event'][_0xa777e2(0x18c)],()=>_0xe7bab3(_0x941b32[_0xa777e2(0x1a2)][_0xa777e2(0x1aa)](_0x53c070=>{const _0x724256=_0xa777e2;_0x53c070[_0x724256(0x18f)]===_0x530409['McpConnectionStatusChanged']&&this['fireEvent'](this[_0x724256(0x18d)][_0x724256(0x18c)],_0x53c070[_0x724256(0x19d)]);}))),this[_0xa777e2(0x197)](this[_0xa777e2(0x18d)][_0xa777e2(0x193)],()=>_0xe7bab3(_0x941b32['event$'][_0xa777e2(0x1aa)](_0x30bdfb=>{const _0xfe6a23=_0xa777e2;_0x30bdfb[_0xfe6a23(0x18f)]===_0x530409[_0xfe6a23(0x193)]&&this[_0xfe6a23(0x19b)](this[_0xfe6a23(0x18d)][_0xfe6a23(0x193)],_0x30bdfb[_0xfe6a23(0x19d)]);}))),this['registerEventHandler'](this[_0xa777e2(0x18d)][_0xa777e2(0x1a0)],()=>_0xe7bab3(_0x941b32[_0xa777e2(0x1a2)]['subscribe'](_0x4209a1=>{const _0x50ae02=_0xa777e2;_0x4209a1[_0x50ae02(0x18f)]===_0x530409[_0x50ae02(0x1a0)]&&this[_0x50ae02(0x19b)](this[_0x50ae02(0x18d)]['McpToolCallExecuted'],_0x4209a1[_0x50ae02(0x19d)]);}))),this[_0xa777e2(0x197)](this[_0xa777e2(0x18d)][_0xa777e2(0x190)],()=>_0xe7bab3(_0x941b32['event$'][_0xa777e2(0x1aa)](_0x2784c9=>{const _0x58f94b=_0xa777e2;_0x2784c9[_0x58f94b(0x18f)]===_0x530409[_0x58f94b(0x190)]&&this['fireEvent'](this[_0x58f94b(0x18d)][_0x58f94b(0x190)],_0x2784c9['data']);})));}['validateMCPToolCall'](_0x13c98b,_0x17b9e7){const _0x85331=_0x4052bf;return this[_0x85331(0x198)]['get'](_0x1f87c8)[_0x85331(0x19c)](_0x13c98b,_0x17b9e7);}[_0x4052bf(0x1a9)](){const _0x2bd43c=_0x4052bf;return this[_0x2bd43c(0x198)][_0x2bd43c(0x189)](_0x1f87c8)[_0x2bd43c(0x188)]();}[_0x4052bf(0x1a1)](_0x36f16e,_0x586561){const _0x5d5703=_0x4052bf;return this[_0x5d5703(0x198)][_0x5d5703(0x189)](_0x1f87c8)[_0x5d5703(0x191)](_0x36f16e,_0x586561);}[_0x4052bf(0x186)](){const _0x4532b5=_0x4052bf;return this['_injector'][_0x4532b5(0x189)](_0x4d283b)[_0x4532b5(0x19e)]();}[_0x4052bf(0x1a7)](){const _0x4203ea=_0x4052bf;this[_0x4203ea(0x198)]['get'](_0x4d283b)[_0x4203ea(0x199)]();}[_0x4052bf(0x1a3)](){const _0x5a4527=_0x4052bf;this[_0x5a4527(0x198)][_0x5a4527(0x189)](_0x4d283b)[_0x5a4527(0x1a6)]();}}_0x4b12b8[_0x4052bf(0x18e)](M);
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);