@univerjs-pro/mcp 0.13.0-insiders.20251220-0a5ea4d → 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
- 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);
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);