@univerjs-pro/mcp 0.13.0-insiders.20251218-2062647 → 0.13.0-insiders.20251220-0a5ea4d

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 _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
+ function _0x3313(_0x16b542,_0x2d2709){_0x16b542=_0x16b542-0xbf;const _0x236d1f=_0x236d();let _0x331318=_0x236d1f[_0x16b542];return _0x331318;}const _0x30dbab=_0x3313;(function(_0x10db14,_0x14e5be){const _0x55929a=_0x3313,_0x2f8a73=_0x10db14();while(!![]){try{const _0x330c1c=-parseInt(_0x55929a(0xd5))/0x1+parseInt(_0x55929a(0xca))/0x2*(-parseInt(_0x55929a(0xde))/0x3)+parseInt(_0x55929a(0xc5))/0x4+-parseInt(_0x55929a(0xdf))/0x5*(-parseInt(_0x55929a(0xd7))/0x6)+parseInt(_0x55929a(0xdd))/0x7*(parseInt(_0x55929a(0xce))/0x8)+-parseInt(_0x55929a(0xc9))/0x9*(parseInt(_0x55929a(0xc2))/0xa)+parseInt(_0x55929a(0xcc))/0xb*(parseInt(_0x55929a(0xc3))/0xc);if(_0x330c1c===_0x14e5be)break;else _0x2f8a73['push'](_0x2f8a73['shift']());}catch(_0x496da1){_0x2f8a73['push'](_0x2f8a73['shift']());}}}(_0x236d,0x24a60));function _0x236d(){const _0x10fe33=['_injector','subscribe','getMCPConnectionStatus','84931LNeHYU','3vIKiOf','10265hOlwHO','validateMCPToolCall','getAllTools','getConnectionStatus','Event','McpConnectionStatusChanged','event$','callMCPTool','13080CQcUBm','68532nVfnIo','connect','1091932XLXxYg','McpToolCallReceived','executeTool','fireEvent','1629qhDqXt','75890iudFhh','data','715KCvstJ','validateToolCall','8oGPmvU','getAllMCPTools','extend','McpToolCallFailed','get','_registerMCPFacadeEvents','disconnect','241791sogWwB','type','30tfkhgx','McpToolCallExecuted','registerEventHandler'];_0x236d=function(){return _0x10fe33;};return _0x236d();}import{MCPEventId as _0x2a9af5,MCPEventService as _0x1dfded,IMCPToolRegistry as _0x4140a2,MCPConnectionController as _0x34de6f}from'@univerjs-pro/mcp';import{FEventName as _0x3fa527,FUniver as _0x5c8c53}from'@univerjs/core/facade';import{toDisposable as _0x4227a3}from'@univerjs/core';class d{get['McpConnectionStatusChanged'](){const _0x4204bc=_0x3313;return _0x2a9af5[_0x4204bc(0xbf)];}get[_0x30dbab(0xc6)](){return _0x2a9af5['McpToolCallReceived'];}get['McpToolCallExecuted'](){return _0x2a9af5['McpToolCallExecuted'];}get['McpToolCallFailed'](){const _0x247b99=_0x30dbab;return _0x2a9af5[_0x247b99(0xd1)];}}_0x3fa527[_0x30dbab(0xd0)](d);class M extends _0x5c8c53{['_initialize'](_0x20dee2){this['_registerMCPFacadeEvents'](_0x20dee2);}[_0x30dbab(0xd3)](_0x3e0262){const _0x3e7121=_0x30dbab,_0x53ab45=_0x3e0262[_0x3e7121(0xd2)](_0x1dfded);this[_0x3e7121(0xd9)](this[_0x3e7121(0xe3)][_0x3e7121(0xbf)],()=>_0x4227a3(_0x53ab45['event$'][_0x3e7121(0xdb)](_0x5e90a8=>{const _0xd4b2fa=_0x3e7121;_0x5e90a8[_0xd4b2fa(0xd6)]===_0x2a9af5[_0xd4b2fa(0xbf)]&&this[_0xd4b2fa(0xc8)](this['Event'][_0xd4b2fa(0xbf)],_0x5e90a8[_0xd4b2fa(0xcb)]);}))),this[_0x3e7121(0xd9)](this['Event']['McpToolCallReceived'],()=>_0x4227a3(_0x53ab45[_0x3e7121(0xc0)][_0x3e7121(0xdb)](_0x1c3132=>{const _0x18aba9=_0x3e7121;_0x1c3132[_0x18aba9(0xd6)]===_0x2a9af5[_0x18aba9(0xc6)]&&this[_0x18aba9(0xc8)](this[_0x18aba9(0xe3)][_0x18aba9(0xc6)],_0x1c3132['data']);}))),this[_0x3e7121(0xd9)](this[_0x3e7121(0xe3)][_0x3e7121(0xd8)],()=>_0x4227a3(_0x53ab45[_0x3e7121(0xc0)]['subscribe'](_0x317175=>{const _0x3c6311=_0x3e7121;_0x317175[_0x3c6311(0xd6)]===_0x2a9af5[_0x3c6311(0xd8)]&&this[_0x3c6311(0xc8)](this[_0x3c6311(0xe3)]['McpToolCallExecuted'],_0x317175[_0x3c6311(0xcb)]);}))),this[_0x3e7121(0xd9)](this[_0x3e7121(0xe3)][_0x3e7121(0xd1)],()=>_0x4227a3(_0x53ab45['event$'][_0x3e7121(0xdb)](_0x3462c4=>{const _0x5df6fc=_0x3e7121;_0x3462c4['type']===_0x2a9af5[_0x5df6fc(0xd1)]&&this[_0x5df6fc(0xc8)](this['Event'][_0x5df6fc(0xd1)],_0x3462c4[_0x5df6fc(0xcb)]);})));}[_0x30dbab(0xe0)](_0x2feb1e,_0x43a388){const _0x5cca69=_0x30dbab;return this['_injector'][_0x5cca69(0xd2)](_0x4140a2)[_0x5cca69(0xcd)](_0x2feb1e,_0x43a388);}[_0x30dbab(0xcf)](){const _0x469641=_0x30dbab;return this[_0x469641(0xda)][_0x469641(0xd2)](_0x4140a2)[_0x469641(0xe1)]();}[_0x30dbab(0xc1)](_0x3deb1c,_0x1639ef){const _0x2933b5=_0x30dbab;return this[_0x2933b5(0xda)][_0x2933b5(0xd2)](_0x4140a2)[_0x2933b5(0xc7)](_0x3deb1c,_0x1639ef);}[_0x30dbab(0xdc)](){const _0x422118=_0x30dbab;return this[_0x422118(0xda)][_0x422118(0xd2)](_0x34de6f)[_0x422118(0xe2)]();}['connectMCP'](){const _0x2cd9fb=_0x30dbab;this[_0x2cd9fb(0xda)][_0x2cd9fb(0xd2)](_0x34de6f)[_0x2cd9fb(0xc4)]();}['disconnectMCP'](){const _0x2a040d=_0x30dbab;this[_0x2a040d(0xda)][_0x2a040d(0xd2)](_0x34de6f)[_0x2a040d(0xd4)]();}}_0x5c8c53[_0x30dbab(0xd0)](M);