@univerjs-pro/mcp 0.12.2-experimental.20251201-5b27b55 → 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 _0x167339=_0x45a9;(function(_0x33fb8a,_0x1e86be){const _0x502e52=_0x45a9,_0x211999=_0x33fb8a();while(!![]){try{const _0x2d2dcb=parseInt(_0x502e52(0x9a))/0x1+-parseInt(_0x502e52(0x8d))/0x2*(-parseInt(_0x502e52(0x9b))/0x3)+-parseInt(_0x502e52(0x82))/0x4*(parseInt(_0x502e52(0xa4))/0x5)+-parseInt(_0x502e52(0x8f))/0x6*(parseInt(_0x502e52(0x8e))/0x7)+-parseInt(_0x502e52(0xa1))/0x8*(parseInt(_0x502e52(0xa3))/0x9)+parseInt(_0x502e52(0x84))/0xa*(-parseInt(_0x502e52(0x92))/0xb)+parseInt(_0x502e52(0x89))/0xc;if(_0x2d2dcb===_0x1e86be)break;else _0x211999['push'](_0x211999['shift']());}catch(_0x21cc32){_0x211999['push'](_0x211999['shift']());}}}(_0x3a35,0x296b6));function _0x3a35(){const _0xd47f66=['7459116axtdUm','McpToolCallFailed','connect','subscribe','36390wREhKq','696794CKVjUu','18fGOEbE','validateToolCall','_injector','308319qagOYg','McpConnectionStatusChanged','disconnectMCP','fireEvent','data','connectMCP','_registerMCPFacadeEvents','registerEventHandler','52893AuCzqL','15wlVJHy','getConnectionStatus','callMCPTool','McpToolCallExecuted','extend','event$','34312woUznE','type','9eiGRpM','45545DIGKzu','getAllTools','getMCPConnectionStatus','McpToolCallReceived','104WKpHxd','get','20AwcmjC','validateMCPToolCall','executeTool','Event','_initialize'];_0x3a35=function(){return _0xd47f66;};return _0x3a35();}import{MCPEventId as _0x541849,MCPEventService as _0x3e974c,IMCPToolRegistry as _0x1147a9,MCPConnectionController as _0x1301de}from'@univerjs-pro/mcp';import{FEventName as _0x571207,FUniver as _0x1f7abd}from'@univerjs/core/facade';import{toDisposable as _0x4634ac}from'@univerjs/core';function _0x45a9(_0x4ce03e,_0xfdffa){const _0x3a35c9=_0x3a35();return _0x45a9=function(_0x45a9bd,_0x398388){_0x45a9bd=_0x45a9bd-0x82;let _0x5cbf03=_0x3a35c9[_0x45a9bd];return _0x5cbf03;},_0x45a9(_0x4ce03e,_0xfdffa);}class d{get['McpConnectionStatusChanged'](){const _0x566ab4=_0x45a9;return _0x541849[_0x566ab4(0x93)];}get[_0x167339(0xa7)](){return _0x541849['McpToolCallReceived'];}get[_0x167339(0x9e)](){const _0x3b9192=_0x167339;return _0x541849[_0x3b9192(0x9e)];}get[_0x167339(0x8a)](){return _0x541849['McpToolCallFailed'];}}_0x571207[_0x167339(0x9f)](d);class M extends _0x1f7abd{[_0x167339(0x88)](_0xf181f8){const _0x5c3ca2=_0x167339;this[_0x5c3ca2(0x98)](_0xf181f8);}[_0x167339(0x98)](_0x537f8e){const _0x585804=_0x167339,_0xb530df=_0x537f8e['get'](_0x3e974c);this[_0x585804(0x99)](this[_0x585804(0x87)][_0x585804(0x93)],()=>_0x4634ac(_0xb530df[_0x585804(0xa0)][_0x585804(0x8c)](_0x31dfb9=>{const _0x8625b8=_0x585804;_0x31dfb9[_0x8625b8(0xa2)]===_0x541849['McpConnectionStatusChanged']&&this[_0x8625b8(0x95)](this[_0x8625b8(0x87)][_0x8625b8(0x93)],_0x31dfb9[_0x8625b8(0x96)]);}))),this[_0x585804(0x99)](this[_0x585804(0x87)]['McpToolCallReceived'],()=>_0x4634ac(_0xb530df['event$'][_0x585804(0x8c)](_0x1a4565=>{const _0x58cdc7=_0x585804;_0x1a4565[_0x58cdc7(0xa2)]===_0x541849[_0x58cdc7(0xa7)]&&this['fireEvent'](this[_0x58cdc7(0x87)][_0x58cdc7(0xa7)],_0x1a4565['data']);}))),this[_0x585804(0x99)](this['Event'][_0x585804(0x9e)],()=>_0x4634ac(_0xb530df[_0x585804(0xa0)][_0x585804(0x8c)](_0x776507=>{const _0x58ce1a=_0x585804;_0x776507['type']===_0x541849['McpToolCallExecuted']&&this['fireEvent'](this['Event'][_0x58ce1a(0x9e)],_0x776507['data']);}))),this[_0x585804(0x99)](this[_0x585804(0x87)][_0x585804(0x8a)],()=>_0x4634ac(_0xb530df[_0x585804(0xa0)][_0x585804(0x8c)](_0x12a6f6=>{const _0x1291a2=_0x585804;_0x12a6f6[_0x1291a2(0xa2)]===_0x541849[_0x1291a2(0x8a)]&&this[_0x1291a2(0x95)](this['Event'][_0x1291a2(0x8a)],_0x12a6f6[_0x1291a2(0x96)]);})));}[_0x167339(0x85)](_0x35231b,_0x4ab81c){const _0x270977=_0x167339;return this['_injector'][_0x270977(0x83)](_0x1147a9)[_0x270977(0x90)](_0x35231b,_0x4ab81c);}['getAllMCPTools'](){const _0x458d1e=_0x167339;return this[_0x458d1e(0x91)][_0x458d1e(0x83)](_0x1147a9)[_0x458d1e(0xa5)]();}[_0x167339(0x9d)](_0x9a107c,_0x490c13){const _0x2b246f=_0x167339;return this[_0x2b246f(0x91)]['get'](_0x1147a9)[_0x2b246f(0x86)](_0x9a107c,_0x490c13);}[_0x167339(0xa6)](){const _0x37d40f=_0x167339;return this['_injector'][_0x37d40f(0x83)](_0x1301de)[_0x37d40f(0x9c)]();}[_0x167339(0x97)](){const _0x4cbfc3=_0x167339;this[_0x4cbfc3(0x91)][_0x4cbfc3(0x83)](_0x1301de)[_0x4cbfc3(0x8b)]();}[_0x167339(0x94)](){const _0x4a2e4f=_0x167339;this['_injector'][_0x4a2e4f(0x83)](_0x1301de)['disconnect']();}}_0x1f7abd[_0x167339(0x9f)](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();}