@univerjs-pro/mcp 0.13.0-insiders.20251218-2062647 → 0.13.0-insiders.20251223-857805c

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 _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);
1
+ const _0x2269a3=_0x2f01;(function(_0x207e41,_0x4142aa){const _0x35570c=_0x2f01,_0x500225=_0x207e41();while(!![]){try{const _0x5b4750=parseInt(_0x35570c(0x1c5))/0x1*(parseInt(_0x35570c(0x1bd))/0x2)+parseInt(_0x35570c(0x1a8))/0x3+parseInt(_0x35570c(0x1ad))/0x4*(-parseInt(_0x35570c(0x1c2))/0x5)+-parseInt(_0x35570c(0x1b7))/0x6+-parseInt(_0x35570c(0x1a9))/0x7*(-parseInt(_0x35570c(0x1ca))/0x8)+-parseInt(_0x35570c(0x1b4))/0x9+-parseInt(_0x35570c(0x1b1))/0xa*(-parseInt(_0x35570c(0x1c3))/0xb);if(_0x5b4750===_0x4142aa)break;else _0x500225['push'](_0x500225['shift']());}catch(_0x854ae7){_0x500225['push'](_0x500225['shift']());}}}(_0x34df,0x8f930));import{MCPEventId as _0x29b636,MCPEventService as _0x2cb9ae,IMCPToolRegistry as _0xa82293,MCPConnectionController as _0x2b0f2a}from'@univerjs-pro/mcp';function _0x2f01(_0x15e19d,_0x56d1c1){_0x15e19d=_0x15e19d-0x1a7;const _0x34dfa5=_0x34df();let _0x2f01df=_0x34dfa5[_0x15e19d];return _0x2f01df;}import{FEventName as _0x2aba24,FUniver as _0x3b21d6}from'@univerjs/core/facade';import{toDisposable as _0x3b2177}from'@univerjs/core';class d{get[_0x2269a3(0x1c7)](){const _0x2a0e7c=_0x2269a3;return _0x29b636[_0x2a0e7c(0x1c7)];}get[_0x2269a3(0x1ac)](){const _0x5ece24=_0x2269a3;return _0x29b636[_0x5ece24(0x1ac)];}get[_0x2269a3(0x1b6)](){const _0xd23f39=_0x2269a3;return _0x29b636[_0xd23f39(0x1b6)];}get[_0x2269a3(0x1be)](){const _0x277353=_0x2269a3;return _0x29b636[_0x277353(0x1be)];}}function _0x34df(){const _0x17330a=['Event','_injector','30SnfitP','getMCPConnectionStatus','event$','1622565EOnJRy','getAllMCPTools','McpToolCallExecuted','4373832TdYpEU','getConnectionStatus','extend','registerEventHandler','type','getAllTools','10ieWsSZ','McpToolCallFailed','validateToolCall','fireEvent','data','300045zhoWjC','3783945dIbBbW','get','167679IBfFJb','executeTool','McpConnectionStatusChanged','disconnect','validateMCPToolCall','8zWfDyz','connect','545397LHlqUL','736799qwWGxM','_initialize','_registerMCPFacadeEvents','McpToolCallReceived','44ySzOpg','subscribe'];_0x34df=function(){return _0x17330a;};return _0x34df();}_0x2aba24[_0x2269a3(0x1b9)](d);class M extends _0x3b21d6{[_0x2269a3(0x1aa)](_0xee1ea2){const _0xdc1b5b=_0x2269a3;this[_0xdc1b5b(0x1ab)](_0xee1ea2);}[_0x2269a3(0x1ab)](_0x4b3c2b){const _0x330146=_0x2269a3,_0x5071f3=_0x4b3c2b[_0x330146(0x1c4)](_0x2cb9ae);this[_0x330146(0x1ba)](this[_0x330146(0x1af)]['McpConnectionStatusChanged'],()=>_0x3b2177(_0x5071f3[_0x330146(0x1b3)]['subscribe'](_0x1d24fb=>{const _0x2786d4=_0x330146;_0x1d24fb[_0x2786d4(0x1bb)]===_0x29b636['McpConnectionStatusChanged']&&this[_0x2786d4(0x1c0)](this[_0x2786d4(0x1af)][_0x2786d4(0x1c7)],_0x1d24fb[_0x2786d4(0x1c1)]);}))),this['registerEventHandler'](this[_0x330146(0x1af)][_0x330146(0x1ac)],()=>_0x3b2177(_0x5071f3[_0x330146(0x1b3)][_0x330146(0x1ae)](_0x1f78f5=>{const _0x54f53f=_0x330146;_0x1f78f5[_0x54f53f(0x1bb)]===_0x29b636[_0x54f53f(0x1ac)]&&this[_0x54f53f(0x1c0)](this[_0x54f53f(0x1af)][_0x54f53f(0x1ac)],_0x1f78f5['data']);}))),this['registerEventHandler'](this[_0x330146(0x1af)]['McpToolCallExecuted'],()=>_0x3b2177(_0x5071f3['event$'][_0x330146(0x1ae)](_0x3f1db5=>{const _0x1de336=_0x330146;_0x3f1db5[_0x1de336(0x1bb)]===_0x29b636[_0x1de336(0x1b6)]&&this[_0x1de336(0x1c0)](this['Event'][_0x1de336(0x1b6)],_0x3f1db5[_0x1de336(0x1c1)]);}))),this[_0x330146(0x1ba)](this['Event'][_0x330146(0x1be)],()=>_0x3b2177(_0x5071f3['event$']['subscribe'](_0x5870c3=>{const _0x3a92de=_0x330146;_0x5870c3['type']===_0x29b636[_0x3a92de(0x1be)]&&this[_0x3a92de(0x1c0)](this[_0x3a92de(0x1af)][_0x3a92de(0x1be)],_0x5870c3[_0x3a92de(0x1c1)]);})));}[_0x2269a3(0x1c9)](_0x577b00,_0x5a296b){const _0x4f7ed8=_0x2269a3;return this[_0x4f7ed8(0x1b0)][_0x4f7ed8(0x1c4)](_0xa82293)[_0x4f7ed8(0x1bf)](_0x577b00,_0x5a296b);}[_0x2269a3(0x1b5)](){const _0x528c64=_0x2269a3;return this['_injector']['get'](_0xa82293)[_0x528c64(0x1bc)]();}['callMCPTool'](_0x3e6b05,_0x23eb7c){const _0x21c5b4=_0x2269a3;return this[_0x21c5b4(0x1b0)][_0x21c5b4(0x1c4)](_0xa82293)[_0x21c5b4(0x1c6)](_0x3e6b05,_0x23eb7c);}[_0x2269a3(0x1b2)](){const _0x4fd3cb=_0x2269a3;return this['_injector'][_0x4fd3cb(0x1c4)](_0x2b0f2a)[_0x4fd3cb(0x1b8)]();}['connectMCP'](){const _0x583ceb=_0x2269a3;this[_0x583ceb(0x1b0)][_0x583ceb(0x1c4)](_0x2b0f2a)[_0x583ceb(0x1a7)]();}['disconnectMCP'](){const _0x4474e8=_0x2269a3;this[_0x4474e8(0x1b0)][_0x4474e8(0x1c4)](_0x2b0f2a)[_0x4474e8(0x1c8)]();}}_0x3b21d6[_0x2269a3(0x1b9)](M);