@univerjs-pro/mcp 0.12.4-experimental.20251211-e01e32a → 0.12.4-insiders.20251212-6c41730

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 _0x230f8e=_0x3210;(function(_0x2d5865,_0x5a5da6){const _0x411186=_0x3210,_0x5ee516=_0x2d5865();while(!![]){try{const _0x413249=parseInt(_0x411186(0x15f))/0x1+-parseInt(_0x411186(0x175))/0x2+parseInt(_0x411186(0x16e))/0x3*(parseInt(_0x411186(0x173))/0x4)+parseInt(_0x411186(0x17f))/0x5*(-parseInt(_0x411186(0x166))/0x6)+parseInt(_0x411186(0x180))/0x7*(parseInt(_0x411186(0x17e))/0x8)+-parseInt(_0x411186(0x164))/0x9*(parseInt(_0x411186(0x16d))/0xa)+parseInt(_0x411186(0x178))/0xb;if(_0x413249===_0x5a5da6)break;else _0x5ee516['push'](_0x5ee516['shift']());}catch(_0x4c889d){_0x5ee516['push'](_0x5ee516['shift']());}}}(_0x42bc,0xd89d2));import{MCPEventId as _0x194fde,MCPEventService as _0x1ea2b0,IMCPToolRegistry as _0x3d6bd6,MCPConnectionController as _0x60658e}from'@univerjs-pro/mcp';import{FEventName as _0x1ffdb7,FUniver as _0x24021e}from'@univerjs/core/facade';import{toDisposable as _0x1d4929}from'@univerjs/core';class d{get[_0x230f8e(0x17d)](){const _0xb8ee=_0x230f8e;return _0x194fde[_0xb8ee(0x17d)];}get[_0x230f8e(0x17a)](){const _0x33c70e=_0x230f8e;return _0x194fde[_0x33c70e(0x17a)];}get['McpToolCallExecuted'](){return _0x194fde['McpToolCallExecuted'];}get[_0x230f8e(0x17c)](){const _0x24b8e5=_0x230f8e;return _0x194fde[_0x24b8e5(0x17c)];}}function _0x42bc(){const _0xbc49ec=['callMCPTool','getAllMCPTools','type','executeTool','getMCPConnectionStatus','validateMCPToolCall','69980fjkyGY','6306hLgPks','getConnectionStatus','registerEventHandler','extend','disconnect','1068iUJEvv','Event','378582EhaSjd','_initialize','_injector','6146965XNPGBX','McpToolCallExecuted','McpToolCallReceived','fireEvent','McpToolCallFailed','McpConnectionStatusChanged','6593560DldNId','5wFAEcD','7xDjqXI','_registerMCPFacadeEvents','159315qRetGs','data','event$','get','subscribe','1224MTUCRu','connect','451740vYKOqR'];_0x42bc=function(){return _0xbc49ec;};return _0x42bc();}_0x1ffdb7[_0x230f8e(0x171)](d);class M extends _0x24021e{[_0x230f8e(0x176)](_0x33f0d1){const _0x17fc08=_0x230f8e;this[_0x17fc08(0x181)](_0x33f0d1);}[_0x230f8e(0x181)](_0x2a2b5d){const _0x2da0fa=_0x230f8e,_0x2f30a2=_0x2a2b5d[_0x2da0fa(0x162)](_0x1ea2b0);this[_0x2da0fa(0x170)](this[_0x2da0fa(0x174)][_0x2da0fa(0x17d)],()=>_0x1d4929(_0x2f30a2['event$'][_0x2da0fa(0x163)](_0x14af7c=>{const _0x5bec54=_0x2da0fa;_0x14af7c['type']===_0x194fde[_0x5bec54(0x17d)]&&this[_0x5bec54(0x17b)](this[_0x5bec54(0x174)][_0x5bec54(0x17d)],_0x14af7c['data']);}))),this[_0x2da0fa(0x170)](this[_0x2da0fa(0x174)]['McpToolCallReceived'],()=>_0x1d4929(_0x2f30a2[_0x2da0fa(0x161)][_0x2da0fa(0x163)](_0x2d8750=>{const _0x3c77ce=_0x2da0fa;_0x2d8750[_0x3c77ce(0x169)]===_0x194fde[_0x3c77ce(0x17a)]&&this[_0x3c77ce(0x17b)](this[_0x3c77ce(0x174)][_0x3c77ce(0x17a)],_0x2d8750['data']);}))),this[_0x2da0fa(0x170)](this[_0x2da0fa(0x174)][_0x2da0fa(0x179)],()=>_0x1d4929(_0x2f30a2[_0x2da0fa(0x161)][_0x2da0fa(0x163)](_0x5d8f11=>{const _0x56f088=_0x2da0fa;_0x5d8f11[_0x56f088(0x169)]===_0x194fde[_0x56f088(0x179)]&&this['fireEvent'](this[_0x56f088(0x174)]['McpToolCallExecuted'],_0x5d8f11['data']);}))),this[_0x2da0fa(0x170)](this['Event'][_0x2da0fa(0x17c)],()=>_0x1d4929(_0x2f30a2[_0x2da0fa(0x161)][_0x2da0fa(0x163)](_0x3f4bf9=>{const _0x2e396a=_0x2da0fa;_0x3f4bf9[_0x2e396a(0x169)]===_0x194fde['McpToolCallFailed']&&this['fireEvent'](this[_0x2e396a(0x174)][_0x2e396a(0x17c)],_0x3f4bf9[_0x2e396a(0x160)]);})));}[_0x230f8e(0x16c)](_0x2c9aa7,_0x303742){const _0xfedceb=_0x230f8e;return this[_0xfedceb(0x177)]['get'](_0x3d6bd6)['validateToolCall'](_0x2c9aa7,_0x303742);}[_0x230f8e(0x168)](){const _0x18b593=_0x230f8e;return this[_0x18b593(0x177)][_0x18b593(0x162)](_0x3d6bd6)['getAllTools']();}[_0x230f8e(0x167)](_0x351ac0,_0x3ab6ac){const _0x2f786d=_0x230f8e;return this[_0x2f786d(0x177)][_0x2f786d(0x162)](_0x3d6bd6)[_0x2f786d(0x16a)](_0x351ac0,_0x3ab6ac);}[_0x230f8e(0x16b)](){const _0x46a1ac=_0x230f8e;return this[_0x46a1ac(0x177)][_0x46a1ac(0x162)](_0x60658e)[_0x46a1ac(0x16f)]();}['connectMCP'](){const _0x3d8d03=_0x230f8e;this[_0x3d8d03(0x177)][_0x3d8d03(0x162)](_0x60658e)[_0x3d8d03(0x165)]();}['disconnectMCP'](){const _0x210845=_0x230f8e;this['_injector'][_0x210845(0x162)](_0x60658e)[_0x210845(0x172)]();}}function _0x3210(_0x44fad8,_0x436591){_0x44fad8=_0x44fad8-0x15f;const _0x42bc1a=_0x42bc();let _0x3210e6=_0x42bc1a[_0x44fad8];return _0x3210e6;}_0x24021e[_0x230f8e(0x171)](M);
1
+ const _0x2887c5=_0xb863;function _0xb863(_0x217cf0,_0x26edb7){_0x217cf0=_0x217cf0-0x1a0;const _0x2090b8=_0x2090();let _0xb8637b=_0x2090b8[_0x217cf0];return _0xb8637b;}(function(_0x2cc949,_0x4e9f4f){const _0x36470c=_0xb863,_0x23b773=_0x2cc949();while(!![]){try{const _0x37bc47=-parseInt(_0x36470c(0x1a7))/0x1+parseInt(_0x36470c(0x1c2))/0x2+-parseInt(_0x36470c(0x1a6))/0x3*(-parseInt(_0x36470c(0x1b7))/0x4)+-parseInt(_0x36470c(0x1af))/0x5*(-parseInt(_0x36470c(0x1b5))/0x6)+-parseInt(_0x36470c(0x1ae))/0x7+-parseInt(_0x36470c(0x1b8))/0x8+parseInt(_0x36470c(0x1a5))/0x9*(parseInt(_0x36470c(0x1c0))/0xa);if(_0x37bc47===_0x4e9f4f)break;else _0x23b773['push'](_0x23b773['shift']());}catch(_0x36bbce){_0x23b773['push'](_0x23b773['shift']());}}}(_0x2090,0xe5267));import{MCPEventId as _0x21b03d,MCPEventService as _0x4ec5e5,IMCPToolRegistry as _0x54b1de,MCPConnectionController as _0x41bab4}from'@univerjs-pro/mcp';import{FEventName as _0x2752f4,FUniver as _0x1617a3}from'@univerjs/core/facade';function _0x2090(){const _0x3450fb=['disconnectMCP','McpConnectionStatusChanged','event$','90hPWQfJ','171186TdcwXI','692557obSlAb','McpToolCallFailed','getConnectionStatus','get','fireEvent','callMCPTool','validateToolCall','3170685TSUPFN','135HGuTYA','_initialize','getAllTools','getMCPConnectionStatus','extend','executeTool','58734LSDAuW','connectMCP','16BWdGCj','12618936QBWtAH','_injector','registerEventHandler','McpToolCallReceived','type','connect','Event','getAllMCPTools','2167290ADQiiw','data','2003274hNwiCT','subscribe','McpToolCallExecuted','_registerMCPFacadeEvents'];_0x2090=function(){return _0x3450fb;};return _0x2090();}import{toDisposable as _0x13cb9f}from'@univerjs/core';class d{get['McpConnectionStatusChanged'](){return _0x21b03d['McpConnectionStatusChanged'];}get['McpToolCallReceived'](){return _0x21b03d['McpToolCallReceived'];}get[_0x2887c5(0x1a0)](){const _0x8c6ffe=_0x2887c5;return _0x21b03d[_0x8c6ffe(0x1a0)];}get[_0x2887c5(0x1a8)](){const _0x55c73f=_0x2887c5;return _0x21b03d[_0x55c73f(0x1a8)];}}_0x2752f4[_0x2887c5(0x1b3)](d);class M extends _0x1617a3{[_0x2887c5(0x1b0)](_0xe8dfb){const _0x4342cd=_0x2887c5;this[_0x4342cd(0x1a1)](_0xe8dfb);}[_0x2887c5(0x1a1)](_0x1bde4e){const _0x159de7=_0x2887c5,_0x4e4f1d=_0x1bde4e[_0x159de7(0x1aa)](_0x4ec5e5);this[_0x159de7(0x1ba)](this[_0x159de7(0x1be)][_0x159de7(0x1a3)],()=>_0x13cb9f(_0x4e4f1d[_0x159de7(0x1a4)][_0x159de7(0x1c3)](_0x461bda=>{const _0x50a532=_0x159de7;_0x461bda[_0x50a532(0x1bc)]===_0x21b03d[_0x50a532(0x1a3)]&&this['fireEvent'](this['Event']['McpConnectionStatusChanged'],_0x461bda[_0x50a532(0x1c1)]);}))),this[_0x159de7(0x1ba)](this[_0x159de7(0x1be)][_0x159de7(0x1bb)],()=>_0x13cb9f(_0x4e4f1d[_0x159de7(0x1a4)][_0x159de7(0x1c3)](_0x2a6a63=>{const _0x57e54e=_0x159de7;_0x2a6a63[_0x57e54e(0x1bc)]===_0x21b03d[_0x57e54e(0x1bb)]&&this[_0x57e54e(0x1ab)](this[_0x57e54e(0x1be)]['McpToolCallReceived'],_0x2a6a63['data']);}))),this[_0x159de7(0x1ba)](this[_0x159de7(0x1be)][_0x159de7(0x1a0)],()=>_0x13cb9f(_0x4e4f1d['event$'][_0x159de7(0x1c3)](_0x12fc7f=>{const _0x51baad=_0x159de7;_0x12fc7f[_0x51baad(0x1bc)]===_0x21b03d[_0x51baad(0x1a0)]&&this[_0x51baad(0x1ab)](this['Event'][_0x51baad(0x1a0)],_0x12fc7f['data']);}))),this[_0x159de7(0x1ba)](this['Event'][_0x159de7(0x1a8)],()=>_0x13cb9f(_0x4e4f1d['event$'][_0x159de7(0x1c3)](_0x54ab51=>{const _0x2ed997=_0x159de7;_0x54ab51[_0x2ed997(0x1bc)]===_0x21b03d[_0x2ed997(0x1a8)]&&this[_0x2ed997(0x1ab)](this['Event'][_0x2ed997(0x1a8)],_0x54ab51[_0x2ed997(0x1c1)]);})));}['validateMCPToolCall'](_0x41e665,_0x590e90){const _0x5b812c=_0x2887c5;return this['_injector'][_0x5b812c(0x1aa)](_0x54b1de)[_0x5b812c(0x1ad)](_0x41e665,_0x590e90);}[_0x2887c5(0x1bf)](){const _0x314d74=_0x2887c5;return this['_injector'][_0x314d74(0x1aa)](_0x54b1de)[_0x314d74(0x1b1)]();}[_0x2887c5(0x1ac)](_0x1edfa2,_0x5d6d7b){const _0x59996e=_0x2887c5;return this[_0x59996e(0x1b9)]['get'](_0x54b1de)[_0x59996e(0x1b4)](_0x1edfa2,_0x5d6d7b);}[_0x2887c5(0x1b2)](){const _0x54e989=_0x2887c5;return this[_0x54e989(0x1b9)]['get'](_0x41bab4)[_0x54e989(0x1a9)]();}[_0x2887c5(0x1b6)](){const _0x195f54=_0x2887c5;this[_0x195f54(0x1b9)][_0x195f54(0x1aa)](_0x41bab4)[_0x195f54(0x1bd)]();}[_0x2887c5(0x1a2)](){const _0x155404=_0x2887c5;this[_0x155404(0x1b9)][_0x155404(0x1aa)](_0x41bab4)['disconnect']();}}_0x1617a3[_0x2887c5(0x1b3)](M);