@univerjs-pro/mcp 0.12.2-experimental.20251202-45172c6 → 0.12.2-experimental.20251202-7f1a98f

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 _0x51879e=_0x3197;(function(_0x47c938,_0x5deaa0){const _0x308b56=_0x3197,_0x356c9b=_0x47c938();while(!![]){try{const _0x3b7f9d=-parseInt(_0x308b56(0xdf))/0x1*(-parseInt(_0x308b56(0xce))/0x2)+parseInt(_0x308b56(0xc9))/0x3+-parseInt(_0x308b56(0xd6))/0x4+-parseInt(_0x308b56(0xdd))/0x5+-parseInt(_0x308b56(0xd3))/0x6+-parseInt(_0x308b56(0xdb))/0x7*(-parseInt(_0x308b56(0xdc))/0x8)+-parseInt(_0x308b56(0xda))/0x9*(-parseInt(_0x308b56(0xde))/0xa);if(_0x3b7f9d===_0x5deaa0)break;else _0x356c9b['push'](_0x356c9b['shift']());}catch(_0x5a0f38){_0x356c9b['push'](_0x356c9b['shift']());}}}(_0x5238,0x297e8));import{MCPEventId as _0x3dbf72,MCPEventService as _0x53538a,IMCPToolRegistry as _0xdfbcdd,MCPConnectionController as _0x34c12d}from'@univerjs-pro/mcp';import{FEventName as _0x4a6449,FUniver as _0x463e29}from'@univerjs/core/facade';import{toDisposable as _0x5e7218}from'@univerjs/core';function _0x3197(_0x4dd1b8,_0x55a02e){const _0x5238d6=_0x5238();return _0x3197=function(_0x31972,_0x1a8d76){_0x31972=_0x31972-0xc1;let _0x28bb6e=_0x5238d6[_0x31972];return _0x28bb6e;},_0x3197(_0x4dd1b8,_0x55a02e);}class d{get[_0x51879e(0xcc)](){const _0x404541=_0x51879e;return _0x3dbf72[_0x404541(0xcc)];}get[_0x51879e(0xcf)](){const _0x425a81=_0x51879e;return _0x3dbf72[_0x425a81(0xcf)];}get['McpToolCallExecuted'](){const _0x267ef3=_0x51879e;return _0x3dbf72[_0x267ef3(0xe0)];}get[_0x51879e(0xd0)](){const _0xc58b71=_0x51879e;return _0x3dbf72[_0xc58b71(0xd0)];}}function _0x5238(){const _0x59cf80=['extend','115462swvCYf','McpToolCallReceived','McpToolCallFailed','get','subscribe','680178ozaDwD','executeTool','_injector','969460skUDiW','validateMCPToolCall','type','data','126SHTkcH','903JDVrrT','4408mlVJeu','1342555OoAenq','390670zdeJDG','2wWnyVM','McpToolCallExecuted','fireEvent','connect','registerEventHandler','disconnectMCP','_initialize','callMCPTool','Event','validateToolCall','getConnectionStatus','_registerMCPFacadeEvents','182160xNNTrM','disconnect','event$','McpConnectionStatusChanged'];_0x5238=function(){return _0x59cf80;};return _0x5238();}_0x4a6449[_0x51879e(0xcd)](d);class M extends _0x463e29{[_0x51879e(0xc3)](_0x3b455e){const _0x4abc06=_0x51879e;this[_0x4abc06(0xc8)](_0x3b455e);}['_registerMCPFacadeEvents'](_0x38a2f3){const _0xe835af=_0x51879e,_0x276c35=_0x38a2f3['get'](_0x53538a);this[_0xe835af(0xc1)](this['Event']['McpConnectionStatusChanged'],()=>_0x5e7218(_0x276c35[_0xe835af(0xcb)][_0xe835af(0xd2)](_0x479dfc=>{const _0x11b618=_0xe835af;_0x479dfc['type']===_0x3dbf72[_0x11b618(0xcc)]&&this[_0x11b618(0xe1)](this[_0x11b618(0xc5)][_0x11b618(0xcc)],_0x479dfc[_0x11b618(0xd9)]);}))),this['registerEventHandler'](this[_0xe835af(0xc5)][_0xe835af(0xcf)],()=>_0x5e7218(_0x276c35[_0xe835af(0xcb)][_0xe835af(0xd2)](_0x15763d=>{const _0x1e445b=_0xe835af;_0x15763d[_0x1e445b(0xd8)]===_0x3dbf72[_0x1e445b(0xcf)]&&this[_0x1e445b(0xe1)](this[_0x1e445b(0xc5)][_0x1e445b(0xcf)],_0x15763d[_0x1e445b(0xd9)]);}))),this[_0xe835af(0xc1)](this[_0xe835af(0xc5)][_0xe835af(0xe0)],()=>_0x5e7218(_0x276c35['event$'][_0xe835af(0xd2)](_0x1cdbba=>{const _0x494519=_0xe835af;_0x1cdbba['type']===_0x3dbf72[_0x494519(0xe0)]&&this[_0x494519(0xe1)](this[_0x494519(0xc5)][_0x494519(0xe0)],_0x1cdbba[_0x494519(0xd9)]);}))),this['registerEventHandler'](this[_0xe835af(0xc5)]['McpToolCallFailed'],()=>_0x5e7218(_0x276c35[_0xe835af(0xcb)][_0xe835af(0xd2)](_0x145e03=>{const _0xcff77c=_0xe835af;_0x145e03[_0xcff77c(0xd8)]===_0x3dbf72['McpToolCallFailed']&&this[_0xcff77c(0xe1)](this[_0xcff77c(0xc5)][_0xcff77c(0xd0)],_0x145e03[_0xcff77c(0xd9)]);})));}[_0x51879e(0xd7)](_0xd3315f,_0x4b819a){const _0x1146ec=_0x51879e;return this[_0x1146ec(0xd5)][_0x1146ec(0xd1)](_0xdfbcdd)[_0x1146ec(0xc6)](_0xd3315f,_0x4b819a);}['getAllMCPTools'](){const _0x27c21f=_0x51879e;return this[_0x27c21f(0xd5)][_0x27c21f(0xd1)](_0xdfbcdd)['getAllTools']();}[_0x51879e(0xc4)](_0x4d9748,_0x56d6ad){const _0x445805=_0x51879e;return this[_0x445805(0xd5)]['get'](_0xdfbcdd)[_0x445805(0xd4)](_0x4d9748,_0x56d6ad);}['getMCPConnectionStatus'](){const _0x1a60b6=_0x51879e;return this[_0x1a60b6(0xd5)]['get'](_0x34c12d)[_0x1a60b6(0xc7)]();}['connectMCP'](){const _0x57b7ac=_0x51879e;this[_0x57b7ac(0xd5)][_0x57b7ac(0xd1)](_0x34c12d)[_0x57b7ac(0xe2)]();}[_0x51879e(0xc2)](){const _0x10b973=_0x51879e;this[_0x10b973(0xd5)][_0x10b973(0xd1)](_0x34c12d)[_0x10b973(0xca)]();}}_0x463e29[_0x51879e(0xcd)](M);
1
+ const _0xc3502e=_0x5c70;(function(_0x5b440f,_0x2f2574){const _0x19be6f=_0x5c70,_0xa69e7d=_0x5b440f();while(!![]){try{const _0x23e0fb=parseInt(_0x19be6f(0x126))/0x1*(-parseInt(_0x19be6f(0x12d))/0x2)+parseInt(_0x19be6f(0x120))/0x3+-parseInt(_0x19be6f(0x129))/0x4+parseInt(_0x19be6f(0x110))/0x5+parseInt(_0x19be6f(0x12a))/0x6*(-parseInt(_0x19be6f(0x111))/0x7)+-parseInt(_0x19be6f(0x118))/0x8+parseInt(_0x19be6f(0x128))/0x9;if(_0x23e0fb===_0x2f2574)break;else _0xa69e7d['push'](_0xa69e7d['shift']());}catch(_0x2b0721){_0xa69e7d['push'](_0xa69e7d['shift']());}}}(_0x2f7f,0x8ef98));import{MCPEventId as _0x5a70fb,MCPEventService as _0x43fe11,IMCPToolRegistry as _0x580f48,MCPConnectionController as _0x2ac40e}from'@univerjs-pro/mcp';import{FEventName as _0x265329,FUniver as _0x333819}from'@univerjs/core/facade';import{toDisposable as _0x269f88}from'@univerjs/core';class d{get[_0xc3502e(0x125)](){const _0x3b926c=_0xc3502e;return _0x5a70fb[_0x3b926c(0x125)];}get[_0xc3502e(0x115)](){const _0x428b0a=_0xc3502e;return _0x5a70fb[_0x428b0a(0x115)];}get[_0xc3502e(0x130)](){const _0x14b132=_0xc3502e;return _0x5a70fb[_0x14b132(0x130)];}get[_0xc3502e(0x11f)](){return _0x5a70fb['McpToolCallFailed'];}}function _0x5c70(_0x2de0c3,_0x21f317){const _0x2f7fa0=_0x2f7f();return _0x5c70=function(_0x5c7081,_0x137264){_0x5c7081=_0x5c7081-0x10f;let _0x174025=_0x2f7fa0[_0x5c7081];return _0x174025;},_0x5c70(_0x2de0c3,_0x21f317);}_0x265329['extend'](d);class M extends _0x333819{[_0xc3502e(0x112)](_0x2b389e){this['_registerMCPFacadeEvents'](_0x2b389e);}[_0xc3502e(0x122)](_0x1926ee){const _0x5f40d5=_0xc3502e,_0x5083dc=_0x1926ee[_0x5f40d5(0x12e)](_0x43fe11);this[_0x5f40d5(0x127)](this[_0x5f40d5(0x114)][_0x5f40d5(0x125)],()=>_0x269f88(_0x5083dc[_0x5f40d5(0x119)]['subscribe'](_0x1860ee=>{const _0x5a168d=_0x5f40d5;_0x1860ee[_0x5a168d(0x113)]===_0x5a70fb['McpConnectionStatusChanged']&&this[_0x5a168d(0x12c)](this[_0x5a168d(0x114)][_0x5a168d(0x125)],_0x1860ee[_0x5a168d(0x12f)]);}))),this[_0x5f40d5(0x127)](this[_0x5f40d5(0x114)]['McpToolCallReceived'],()=>_0x269f88(_0x5083dc[_0x5f40d5(0x119)][_0x5f40d5(0x121)](_0x5657c7=>{const _0x4920e9=_0x5f40d5;_0x5657c7['type']===_0x5a70fb['McpToolCallReceived']&&this[_0x4920e9(0x12c)](this[_0x4920e9(0x114)]['McpToolCallReceived'],_0x5657c7['data']);}))),this[_0x5f40d5(0x127)](this['Event'][_0x5f40d5(0x130)],()=>_0x269f88(_0x5083dc[_0x5f40d5(0x119)]['subscribe'](_0x5acb70=>{const _0x9025cf=_0x5f40d5;_0x5acb70['type']===_0x5a70fb[_0x9025cf(0x130)]&&this['fireEvent'](this[_0x9025cf(0x114)][_0x9025cf(0x130)],_0x5acb70[_0x9025cf(0x12f)]);}))),this[_0x5f40d5(0x127)](this[_0x5f40d5(0x114)][_0x5f40d5(0x11f)],()=>_0x269f88(_0x5083dc['event$'][_0x5f40d5(0x121)](_0x26cd07=>{const _0x489af2=_0x5f40d5;_0x26cd07[_0x489af2(0x113)]===_0x5a70fb[_0x489af2(0x11f)]&&this[_0x489af2(0x12c)](this[_0x489af2(0x114)][_0x489af2(0x11f)],_0x26cd07[_0x489af2(0x12f)]);})));}[_0xc3502e(0x11b)](_0x5133ab,_0x46b284){const _0x414e18=_0xc3502e;return this[_0x414e18(0x124)][_0x414e18(0x12e)](_0x580f48)[_0x414e18(0x116)](_0x5133ab,_0x46b284);}[_0xc3502e(0x11d)](){const _0x5734be=_0xc3502e;return this[_0x5734be(0x124)]['get'](_0x580f48)[_0x5734be(0x11c)]();}['callMCPTool'](_0x3ba024,_0x35c66d){const _0x347ea0=_0xc3502e;return this[_0x347ea0(0x124)][_0x347ea0(0x12e)](_0x580f48)[_0x347ea0(0x11e)](_0x3ba024,_0x35c66d);}[_0xc3502e(0x123)](){const _0xfee9fb=_0xc3502e;return this['_injector']['get'](_0x2ac40e)[_0xfee9fb(0x11a)]();}[_0xc3502e(0x117)](){const _0x38dd38=_0xc3502e;this[_0x38dd38(0x124)][_0x38dd38(0x12e)](_0x2ac40e)['connect']();}[_0xc3502e(0x12b)](){const _0x51f658=_0xc3502e;this['_injector'][_0x51f658(0x12e)](_0x2ac40e)[_0x51f658(0x10f)]();}}_0x333819['extend'](M);function _0x2f7f(){const _0x3388ab=['9876996LXYujG','1847940TNBEEK','1704786GSbiOz','disconnectMCP','fireEvent','2342aflHIa','get','data','McpToolCallExecuted','disconnect','1839140MTpfrK','7TeZZeD','_initialize','type','Event','McpToolCallReceived','validateToolCall','connectMCP','2359480iQvrVk','event$','getConnectionStatus','validateMCPToolCall','getAllTools','getAllMCPTools','executeTool','McpToolCallFailed','1587291TrtLUm','subscribe','_registerMCPFacadeEvents','getMCPConnectionStatus','_injector','McpConnectionStatusChanged','314GEKmnw','registerEventHandler'];_0x2f7f=function(){return _0x3388ab;};return _0x2f7f();}