@univerjs-pro/mcp 0.13.0-insiders.20251215-64041bb → 0.13.0-insiders.20251218-2062647

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/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x4aacba=_0x32f8;(function(_0x16d759,_0x7426e1){const _0x2075eb=_0x32f8,_0x541573=_0x16d759();while(!![]){try{const _0x48840f=parseInt(_0x2075eb(0xef))/0x1+-parseInt(_0x2075eb(0xf6))/0x2*(-parseInt(_0x2075eb(0x107))/0x3)+parseInt(_0x2075eb(0xea))/0x4*(-parseInt(_0x2075eb(0xfb))/0x5)+parseInt(_0x2075eb(0xf9))/0x6+parseInt(_0x2075eb(0xe7))/0x7+parseInt(_0x2075eb(0xe9))/0x8*(parseInt(_0x2075eb(0xf8))/0x9)+-parseInt(_0x2075eb(0xe4))/0xa;if(_0x48840f===_0x7426e1)break;else _0x541573['push'](_0x541573['shift']());}catch(_0x375933){_0x541573['push'](_0x541573['shift']());}}}(_0x41ea,0x744b3));function _0x41ea(){const _0x3b3ded=['getAllMCPTools','getConnectionStatus','extend','get','_initialize','disconnect','576DrUBOt','event$','10694480ftRemD','disconnectMCP','getAllTools','1236571OlLlcu','connect','184bpReeb','1635088oovWix','type','callMCPTool','executeTool','registerEventHandler','943328lJUmTG','McpToolCallFailed','validateToolCall','McpToolCallExecuted','_registerMCPFacadeEvents','connectMCP','_injector','7836oxTExt','Event','142353mrQVjW','763818RoSgKo','data','10MGzqkK','subscribe','fireEvent','McpToolCallReceived','validateMCPToolCall','McpConnectionStatusChanged'];_0x41ea=function(){return _0x3b3ded;};return _0x41ea();}import{MCPEventId as _0x403e3b,MCPEventService as _0x1ae106,IMCPToolRegistry as _0x535714,MCPConnectionController as _0x1834b8}from'@univerjs-pro/mcp';function _0x32f8(_0x2524c4,_0x215778){_0x2524c4=_0x2524c4-0xe4;const _0x41eadf=_0x41ea();let _0x32f873=_0x41eadf[_0x2524c4];return _0x32f873;}import{FEventName as _0x2b6e27,FUniver as _0x246595}from'@univerjs/core/facade';import{toDisposable as _0x2ce8ee}from'@univerjs/core';class d{get['McpConnectionStatusChanged'](){const _0x1fbaef=_0x32f8;return _0x403e3b[_0x1fbaef(0x100)];}get[_0x4aacba(0xfe)](){const _0x493323=_0x4aacba;return _0x403e3b[_0x493323(0xfe)];}get['McpToolCallExecuted'](){return _0x403e3b['McpToolCallExecuted'];}get[_0x4aacba(0xf0)](){const _0x2e588d=_0x4aacba;return _0x403e3b[_0x2e588d(0xf0)];}}_0x2b6e27['extend'](d);class M extends _0x246595{[_0x4aacba(0x105)](_0x2a9ff2){this['_registerMCPFacadeEvents'](_0x2a9ff2);}[_0x4aacba(0xf3)](_0x20905d){const _0x266774=_0x4aacba,_0x4834ac=_0x20905d[_0x266774(0x104)](_0x1ae106);this[_0x266774(0xee)](this[_0x266774(0xf7)][_0x266774(0x100)],()=>_0x2ce8ee(_0x4834ac['event$'][_0x266774(0xfc)](_0x4c28b1=>{const _0x269500=_0x266774;_0x4c28b1[_0x269500(0xeb)]===_0x403e3b[_0x269500(0x100)]&&this[_0x269500(0xfd)](this[_0x269500(0xf7)]['McpConnectionStatusChanged'],_0x4c28b1[_0x269500(0xfa)]);}))),this[_0x266774(0xee)](this[_0x266774(0xf7)][_0x266774(0xfe)],()=>_0x2ce8ee(_0x4834ac[_0x266774(0x108)][_0x266774(0xfc)](_0x289d7f=>{const _0x2d816f=_0x266774;_0x289d7f[_0x2d816f(0xeb)]===_0x403e3b[_0x2d816f(0xfe)]&&this[_0x2d816f(0xfd)](this['Event'][_0x2d816f(0xfe)],_0x289d7f['data']);}))),this['registerEventHandler'](this[_0x266774(0xf7)][_0x266774(0xf2)],()=>_0x2ce8ee(_0x4834ac[_0x266774(0x108)]['subscribe'](_0x11dd4e=>{const _0x4ec70b=_0x266774;_0x11dd4e[_0x4ec70b(0xeb)]===_0x403e3b[_0x4ec70b(0xf2)]&&this[_0x4ec70b(0xfd)](this['Event'][_0x4ec70b(0xf2)],_0x11dd4e[_0x4ec70b(0xfa)]);}))),this[_0x266774(0xee)](this[_0x266774(0xf7)][_0x266774(0xf0)],()=>_0x2ce8ee(_0x4834ac[_0x266774(0x108)][_0x266774(0xfc)](_0x59a233=>{const _0x7043d1=_0x266774;_0x59a233[_0x7043d1(0xeb)]===_0x403e3b['McpToolCallFailed']&&this['fireEvent'](this['Event'][_0x7043d1(0xf0)],_0x59a233[_0x7043d1(0xfa)]);})));}[_0x4aacba(0xff)](_0x150c4f,_0x25ba99){const _0x5249f6=_0x4aacba;return this[_0x5249f6(0xf5)]['get'](_0x535714)[_0x5249f6(0xf1)](_0x150c4f,_0x25ba99);}[_0x4aacba(0x101)](){const _0x29903a=_0x4aacba;return this[_0x29903a(0xf5)][_0x29903a(0x104)](_0x535714)[_0x29903a(0xe6)]();}[_0x4aacba(0xec)](_0x30dc84,_0x4b75a2){const _0x106709=_0x4aacba;return this[_0x106709(0xf5)][_0x106709(0x104)](_0x535714)[_0x106709(0xed)](_0x30dc84,_0x4b75a2);}['getMCPConnectionStatus'](){const _0x5865f8=_0x4aacba;return this[_0x5865f8(0xf5)][_0x5865f8(0x104)](_0x1834b8)[_0x5865f8(0x102)]();}[_0x4aacba(0xf4)](){const _0x1b9268=_0x4aacba;this['_injector'][_0x1b9268(0x104)](_0x1834b8)[_0x1b9268(0xe8)]();}[_0x4aacba(0xe5)](){const _0x2bec69=_0x4aacba;this[_0x2bec69(0xf5)]['get'](_0x1834b8)[_0x2bec69(0x106)]();}}_0x246595[_0x4aacba(0x103)](M);
1
+ const _0x178e1c=_0x339b;(function(_0x4bd28c,_0x5a506a){const _0xb73142=_0x339b,_0x262530=_0x4bd28c();while(!![]){try{const _0x57b77a=parseInt(_0xb73142(0x1d1))/0x1+-parseInt(_0xb73142(0x1d5))/0x2*(-parseInt(_0xb73142(0x1e3))/0x3)+-parseInt(_0xb73142(0x1d6))/0x4+-parseInt(_0xb73142(0x1cf))/0x5*(-parseInt(_0xb73142(0x1c5))/0x6)+-parseInt(_0xb73142(0x1da))/0x7+-parseInt(_0xb73142(0x1ce))/0x8*(parseInt(_0xb73142(0x1e1))/0x9)+parseInt(_0xb73142(0x1c9))/0xa;if(_0x57b77a===_0x5a506a)break;else _0x262530['push'](_0x262530['shift']());}catch(_0x557db8){_0x262530['push'](_0x262530['shift']());}}}(_0x11d3,0x621b5));import{MCPEventId as _0x18a927,MCPEventService as _0x17f338,IMCPToolRegistry as _0x4cd79b,MCPConnectionController as _0x28ef94}from'@univerjs-pro/mcp';import{FEventName as _0x3384b0,FUniver as _0x25dbdc}from'@univerjs/core/facade';import{toDisposable as _0x4c6fd8}from'@univerjs/core';class d{get[_0x178e1c(0x1d2)](){const _0x425ed5=_0x178e1c;return _0x18a927[_0x425ed5(0x1d2)];}get[_0x178e1c(0x1cc)](){return _0x18a927['McpToolCallReceived'];}get[_0x178e1c(0x1c6)](){const _0x215af5=_0x178e1c;return _0x18a927[_0x215af5(0x1c6)];}get['McpToolCallFailed'](){const _0x11eeaf=_0x178e1c;return _0x18a927[_0x11eeaf(0x1dc)];}}_0x3384b0[_0x178e1c(0x1e0)](d);class M extends _0x25dbdc{['_initialize'](_0x1e17bb){const _0x18c6c9=_0x178e1c;this[_0x18c6c9(0x1dd)](_0x1e17bb);}[_0x178e1c(0x1dd)](_0x1d76de){const _0x4ac830=_0x178e1c,_0x28a22f=_0x1d76de[_0x4ac830(0x1df)](_0x17f338);this[_0x4ac830(0x1cb)](this['Event'][_0x4ac830(0x1d2)],()=>_0x4c6fd8(_0x28a22f[_0x4ac830(0x1d0)]['subscribe'](_0x569ac4=>{const _0x2c1da3=_0x4ac830;_0x569ac4['type']===_0x18a927['McpConnectionStatusChanged']&&this[_0x2c1da3(0x1e2)](this[_0x2c1da3(0x1de)][_0x2c1da3(0x1d2)],_0x569ac4[_0x2c1da3(0x1d9)]);}))),this[_0x4ac830(0x1cb)](this['Event'][_0x4ac830(0x1cc)],()=>_0x4c6fd8(_0x28a22f[_0x4ac830(0x1d0)]['subscribe'](_0x45c3f9=>{const _0xd57b0c=_0x4ac830;_0x45c3f9[_0xd57b0c(0x1d8)]===_0x18a927[_0xd57b0c(0x1cc)]&&this['fireEvent'](this['Event']['McpToolCallReceived'],_0x45c3f9[_0xd57b0c(0x1d9)]);}))),this[_0x4ac830(0x1cb)](this[_0x4ac830(0x1de)]['McpToolCallExecuted'],()=>_0x4c6fd8(_0x28a22f[_0x4ac830(0x1d0)]['subscribe'](_0x437c3d=>{const _0x45cde8=_0x4ac830;_0x437c3d[_0x45cde8(0x1d8)]===_0x18a927[_0x45cde8(0x1c6)]&&this['fireEvent'](this[_0x45cde8(0x1de)][_0x45cde8(0x1c6)],_0x437c3d[_0x45cde8(0x1d9)]);}))),this[_0x4ac830(0x1cb)](this[_0x4ac830(0x1de)]['McpToolCallFailed'],()=>_0x4c6fd8(_0x28a22f[_0x4ac830(0x1d0)][_0x4ac830(0x1c8)](_0x5cc763=>{const _0x4239d8=_0x4ac830;_0x5cc763[_0x4239d8(0x1d8)]===_0x18a927[_0x4239d8(0x1dc)]&&this[_0x4239d8(0x1e2)](this[_0x4239d8(0x1de)]['McpToolCallFailed'],_0x5cc763[_0x4239d8(0x1d9)]);})));}[_0x178e1c(0x1d3)](_0x115255,_0x63b0e0){const _0x5a38ec=_0x178e1c;return this['_injector'][_0x5a38ec(0x1df)](_0x4cd79b)[_0x5a38ec(0x1c7)](_0x115255,_0x63b0e0);}['getAllMCPTools'](){const _0x225477=_0x178e1c;return this[_0x225477(0x1e4)][_0x225477(0x1df)](_0x4cd79b)['getAllTools']();}[_0x178e1c(0x1c4)](_0x2af941,_0x8e3bf6){const _0x184084=_0x178e1c;return this['_injector'][_0x184084(0x1df)](_0x4cd79b)[_0x184084(0x1d4)](_0x2af941,_0x8e3bf6);}[_0x178e1c(0x1d7)](){const _0x268dec=_0x178e1c;return this['_injector'][_0x268dec(0x1df)](_0x28ef94)[_0x268dec(0x1cd)]();}[_0x178e1c(0x1db)](){const _0xdb2948=_0x178e1c;this[_0xdb2948(0x1e4)][_0xdb2948(0x1df)](_0x28ef94)[_0xdb2948(0x1ca)]();}['disconnectMCP'](){const _0x4a9fa9=_0x178e1c;this[_0x4a9fa9(0x1e4)][_0x4a9fa9(0x1df)](_0x28ef94)['disconnect']();}}function _0x11d3(){const _0x2d4081=['event$','149578kBtwYd','McpConnectionStatusChanged','validateMCPToolCall','executeTool','4xIfkyR','2552352jPDiCN','getMCPConnectionStatus','type','data','1373113HFgIRT','connectMCP','McpToolCallFailed','_registerMCPFacadeEvents','Event','get','extend','994176AfSObq','fireEvent','1196427axfASJ','_injector','callMCPTool','12rbxSLZ','McpToolCallExecuted','validateToolCall','subscribe','4891760aYlpWw','connect','registerEventHandler','McpToolCallReceived','getConnectionStatus','32lxPLZP','603940LoSoJl'];_0x11d3=function(){return _0x2d4081;};return _0x11d3();}function _0x339b(_0xf97dd8,_0x5d822c){_0xf97dd8=_0xf97dd8-0x1c4;const _0x11d34d=_0x11d3();let _0x339b42=_0x11d34d[_0xf97dd8];return _0x339b42;}_0x25dbdc[_0x178e1c(0x1e0)](M);