@univerjs-pro/mcp 0.15.0-insiders.20260110-48b77c8 → 0.15.1

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 _0x423d85=_0x1290;function _0x4ce0(){const _0x395cd6=['getAllTools','26RrwyGl','connect','callMCPTool','validateMCPToolCall','6006948GdWqmc','disconnect','event$','registerEventHandler','52691bxygic','executeTool','10366610zauxTq','McpConnectionStatusChanged','McpToolCallExecuted','data','_initialize','disconnectMCP','subscribe','894042vIAJYM','9AVWeIc','type','3754085YrdXYu','_registerMCPFacadeEvents','4ImBvDL','7ddTeHi','connectMCP','McpToolCallReceived','2137245juZftM','Event','get','_injector','validateToolCall','McpToolCallFailed','getMCPConnectionStatus','extend','fireEvent','3581760dvnfPS'];_0x4ce0=function(){return _0x395cd6;};return _0x4ce0();}(function(_0x1c7a35,_0x411dd0){const _0xf7001b=_0x1290,_0x49b6e8=_0x1c7a35();while(!![]){try{const _0xe03606=-parseInt(_0xf7001b(0x11e))/0x1*(parseInt(_0xf7001b(0x116))/0x2)+-parseInt(_0xf7001b(0x127))/0x3+-parseInt(_0xf7001b(0x12c))/0x4*(parseInt(_0xf7001b(0x12a))/0x5)+parseInt(_0xf7001b(0x11a))/0x6*(parseInt(_0xf7001b(0x12d))/0x7)+parseInt(_0xf7001b(0x114))/0x8+parseInt(_0xf7001b(0x128))/0x9*(parseInt(_0xf7001b(0x120))/0xa)+-parseInt(_0xf7001b(0x130))/0xb;if(_0xe03606===_0x411dd0)break;else _0x49b6e8['push'](_0x49b6e8['shift']());}catch(_0x5aa63c){_0x49b6e8['push'](_0x49b6e8['shift']());}}}(_0x4ce0,0x88176));import{MCPEventId as _0x4cf654,MCPEventService as _0x1cfc25,IMCPToolRegistry as _0x18b87e,MCPConnectionController as _0x258516}from'@univerjs-pro/mcp';import{FEventName as _0x45aa7a,FUniver as _0x1d91a5}from'@univerjs/core/facade';import{toDisposable as _0x4b32ea}from'@univerjs/core';class d{get[_0x423d85(0x121)](){const _0x5e2f00=_0x423d85;return _0x4cf654[_0x5e2f00(0x121)];}get[_0x423d85(0x12f)](){const _0x55b8c0=_0x423d85;return _0x4cf654[_0x55b8c0(0x12f)];}get['McpToolCallExecuted'](){return _0x4cf654['McpToolCallExecuted'];}get['McpToolCallFailed'](){return _0x4cf654['McpToolCallFailed'];}}_0x45aa7a['extend'](d);function _0x1290(_0x564171,_0x130ed7){_0x564171=_0x564171-0x10c;const _0x4ce011=_0x4ce0();let _0x1290f0=_0x4ce011[_0x564171];return _0x1290f0;}class M extends _0x1d91a5{[_0x423d85(0x124)](_0x27882b){const _0x41677b=_0x423d85;this[_0x41677b(0x12b)](_0x27882b);}[_0x423d85(0x12b)](_0x1ae620){const _0x5cef3b=_0x423d85,_0x1fc3a6=_0x1ae620['get'](_0x1cfc25);this['registerEventHandler'](this[_0x5cef3b(0x10c)][_0x5cef3b(0x121)],()=>_0x4b32ea(_0x1fc3a6[_0x5cef3b(0x11c)][_0x5cef3b(0x126)](_0x4234c4=>{const _0x2b18ed=_0x5cef3b;_0x4234c4[_0x2b18ed(0x129)]===_0x4cf654['McpConnectionStatusChanged']&&this[_0x2b18ed(0x113)](this[_0x2b18ed(0x10c)][_0x2b18ed(0x121)],_0x4234c4[_0x2b18ed(0x123)]);}))),this[_0x5cef3b(0x11d)](this[_0x5cef3b(0x10c)]['McpToolCallReceived'],()=>_0x4b32ea(_0x1fc3a6[_0x5cef3b(0x11c)][_0x5cef3b(0x126)](_0x5e011e=>{const _0x39857b=_0x5cef3b;_0x5e011e[_0x39857b(0x129)]===_0x4cf654[_0x39857b(0x12f)]&&this[_0x39857b(0x113)](this[_0x39857b(0x10c)][_0x39857b(0x12f)],_0x5e011e['data']);}))),this[_0x5cef3b(0x11d)](this[_0x5cef3b(0x10c)][_0x5cef3b(0x122)],()=>_0x4b32ea(_0x1fc3a6['event$']['subscribe'](_0x4d0e22=>{const _0x542e88=_0x5cef3b;_0x4d0e22[_0x542e88(0x129)]===_0x4cf654[_0x542e88(0x122)]&&this[_0x542e88(0x113)](this['Event'][_0x542e88(0x122)],_0x4d0e22['data']);}))),this[_0x5cef3b(0x11d)](this[_0x5cef3b(0x10c)][_0x5cef3b(0x110)],()=>_0x4b32ea(_0x1fc3a6[_0x5cef3b(0x11c)][_0x5cef3b(0x126)](_0x5681fd=>{const _0x618d8e=_0x5cef3b;_0x5681fd[_0x618d8e(0x129)]===_0x4cf654[_0x618d8e(0x110)]&&this['fireEvent'](this['Event'][_0x618d8e(0x110)],_0x5681fd[_0x618d8e(0x123)]);})));}[_0x423d85(0x119)](_0x53b675,_0x5e248a){const _0x55edf8=_0x423d85;return this[_0x55edf8(0x10e)][_0x55edf8(0x10d)](_0x18b87e)[_0x55edf8(0x10f)](_0x53b675,_0x5e248a);}['getAllMCPTools'](){const _0x55f96b=_0x423d85;return this[_0x55f96b(0x10e)][_0x55f96b(0x10d)](_0x18b87e)[_0x55f96b(0x115)]();}[_0x423d85(0x118)](_0x4a1292,_0x14703a){const _0x55e40f=_0x423d85;return this[_0x55e40f(0x10e)][_0x55e40f(0x10d)](_0x18b87e)[_0x55e40f(0x11f)](_0x4a1292,_0x14703a);}[_0x423d85(0x111)](){const _0x21f207=_0x423d85;return this[_0x21f207(0x10e)][_0x21f207(0x10d)](_0x258516)['getConnectionStatus']();}[_0x423d85(0x12e)](){const _0x3a16c0=_0x423d85;this[_0x3a16c0(0x10e)][_0x3a16c0(0x10d)](_0x258516)[_0x3a16c0(0x117)]();}[_0x423d85(0x125)](){const _0x1b51f6=_0x423d85;this[_0x1b51f6(0x10e)][_0x1b51f6(0x10d)](_0x258516)[_0x1b51f6(0x11b)]();}}_0x1d91a5[_0x423d85(0x112)](M);
1
+ const _0x34abb3=_0x4a3b;(function(_0x703e67,_0x5b06dc){const _0x439ec4=_0x4a3b,_0x4fe0e1=_0x703e67();while(!![]){try{const _0x3be9d9=-parseInt(_0x439ec4(0x125))/0x1*(-parseInt(_0x439ec4(0x11d))/0x2)+parseInt(_0x439ec4(0x12a))/0x3+-parseInt(_0x439ec4(0x12f))/0x4+parseInt(_0x439ec4(0x130))/0x5*(-parseInt(_0x439ec4(0x112))/0x6)+parseInt(_0x439ec4(0x119))/0x7+-parseInt(_0x439ec4(0x121))/0x8+parseInt(_0x439ec4(0x114))/0x9;if(_0x3be9d9===_0x5b06dc)break;else _0x4fe0e1['push'](_0x4fe0e1['shift']());}catch(_0x48c2ff){_0x4fe0e1['push'](_0x4fe0e1['shift']());}}}(_0xe07b,0xd0bc4));import{MCPEventId as _0xb9ae35,MCPEventService as _0x4e9303,IMCPToolRegistry as _0x43b781,MCPConnectionController as _0x44a5ff}from'@univerjs-pro/mcp';import{FEventName as _0x4dc80f,FUniver as _0x40d588}from'@univerjs/core/facade';import{toDisposable as _0x1bed05}from'@univerjs/core';class d{get[_0x34abb3(0x12d)](){return _0xb9ae35['McpConnectionStatusChanged'];}get[_0x34abb3(0x123)](){const _0x4a9a5f=_0x34abb3;return _0xb9ae35[_0x4a9a5f(0x123)];}get['McpToolCallExecuted'](){const _0x12017f=_0x34abb3;return _0xb9ae35[_0x12017f(0x11f)];}get[_0x34abb3(0x11a)](){const _0x3fb046=_0x34abb3;return _0xb9ae35[_0x3fb046(0x11a)];}}function _0x4a3b(_0x111919,_0x88feaa){_0x111919=_0x111919-0x112;const _0xe07b58=_0xe07b();let _0x4a3ba9=_0xe07b58[_0x111919];return _0x4a3ba9;}_0x4dc80f[_0x34abb3(0x118)](d);function _0xe07b(){const _0x218a62=['29201OujyfD','getMCPConnectionStatus','_registerMCPFacadeEvents','callMCPTool','disconnect','1753170ZFnRHT','_injector','getAllTools','McpConnectionStatusChanged','executeTool','4217048PiaXQk','18345ocJCLE','disconnectMCP','getConnectionStatus','subscribe','get','2604OseDMY','type','29907216TIvQsI','Event','validateMCPToolCall','registerEventHandler','extend','470358esFCXV','McpToolCallFailed','validateToolCall','event$','6EDablz','_initialize','McpToolCallExecuted','fireEvent','4484984YPSIaH','data','McpToolCallReceived','getAllMCPTools'];_0xe07b=function(){return _0x218a62;};return _0xe07b();}class M extends _0x40d588{[_0x34abb3(0x11e)](_0x49e9ca){this['_registerMCPFacadeEvents'](_0x49e9ca);}[_0x34abb3(0x127)](_0x46f082){const _0x24f283=_0x34abb3,_0x22c37d=_0x46f082[_0x24f283(0x134)](_0x4e9303);this[_0x24f283(0x117)](this[_0x24f283(0x115)][_0x24f283(0x12d)],()=>_0x1bed05(_0x22c37d[_0x24f283(0x11c)][_0x24f283(0x133)](_0xbc3f41=>{const _0x180188=_0x24f283;_0xbc3f41[_0x180188(0x113)]===_0xb9ae35[_0x180188(0x12d)]&&this['fireEvent'](this[_0x180188(0x115)][_0x180188(0x12d)],_0xbc3f41[_0x180188(0x122)]);}))),this[_0x24f283(0x117)](this[_0x24f283(0x115)][_0x24f283(0x123)],()=>_0x1bed05(_0x22c37d[_0x24f283(0x11c)][_0x24f283(0x133)](_0xb9d5b4=>{const _0x459622=_0x24f283;_0xb9d5b4['type']===_0xb9ae35[_0x459622(0x123)]&&this[_0x459622(0x120)](this[_0x459622(0x115)][_0x459622(0x123)],_0xb9d5b4[_0x459622(0x122)]);}))),this[_0x24f283(0x117)](this[_0x24f283(0x115)]['McpToolCallExecuted'],()=>_0x1bed05(_0x22c37d[_0x24f283(0x11c)][_0x24f283(0x133)](_0x14189d=>{const _0x4b0dde=_0x24f283;_0x14189d[_0x4b0dde(0x113)]===_0xb9ae35[_0x4b0dde(0x11f)]&&this[_0x4b0dde(0x120)](this[_0x4b0dde(0x115)][_0x4b0dde(0x11f)],_0x14189d[_0x4b0dde(0x122)]);}))),this[_0x24f283(0x117)](this[_0x24f283(0x115)][_0x24f283(0x11a)],()=>_0x1bed05(_0x22c37d[_0x24f283(0x11c)][_0x24f283(0x133)](_0x1aff1e=>{const _0x4f6c85=_0x24f283;_0x1aff1e['type']===_0xb9ae35['McpToolCallFailed']&&this['fireEvent'](this[_0x4f6c85(0x115)]['McpToolCallFailed'],_0x1aff1e['data']);})));}[_0x34abb3(0x116)](_0x2dc93d,_0x58d040){const _0x58156f=_0x34abb3;return this[_0x58156f(0x12b)][_0x58156f(0x134)](_0x43b781)[_0x58156f(0x11b)](_0x2dc93d,_0x58d040);}[_0x34abb3(0x124)](){const _0x36e582=_0x34abb3;return this[_0x36e582(0x12b)][_0x36e582(0x134)](_0x43b781)[_0x36e582(0x12c)]();}[_0x34abb3(0x128)](_0x372750,_0xfa1e0){const _0xf65b58=_0x34abb3;return this[_0xf65b58(0x12b)][_0xf65b58(0x134)](_0x43b781)[_0xf65b58(0x12e)](_0x372750,_0xfa1e0);}[_0x34abb3(0x126)](){const _0x400d49=_0x34abb3;return this[_0x400d49(0x12b)][_0x400d49(0x134)](_0x44a5ff)[_0x400d49(0x132)]();}['connectMCP'](){const _0x31cdf6=_0x34abb3;this[_0x31cdf6(0x12b)]['get'](_0x44a5ff)['connect']();}[_0x34abb3(0x131)](){const _0x2bd87b=_0x34abb3;this['_injector'][_0x2bd87b(0x134)](_0x44a5ff)[_0x2bd87b(0x129)]();}}_0x40d588[_0x34abb3(0x118)](M);