@univerjs-pro/mcp 0.12.4-experimental.20251208-c4b8a44 → 0.12.4-experimental.20251210-8d33c6e

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 _0x575305=_0x19e2;(function(_0x2e4125,_0x1d29b9){const _0x1c57d6=_0x19e2,_0x31122e=_0x2e4125();while(!![]){try{const _0x24fe48=-parseInt(_0x1c57d6(0xee))/0x1*(parseInt(_0x1c57d6(0xe4))/0x2)+-parseInt(_0x1c57d6(0xe5))/0x3+parseInt(_0x1c57d6(0xeb))/0x4+parseInt(_0x1c57d6(0xf0))/0x5+parseInt(_0x1c57d6(0xe6))/0x6+-parseInt(_0x1c57d6(0xf5))/0x7+-parseInt(_0x1c57d6(0xfb))/0x8;if(_0x24fe48===_0x1d29b9)break;else _0x31122e['push'](_0x31122e['shift']());}catch(_0x15482b){_0x31122e['push'](_0x31122e['shift']());}}}(_0x7724,0xc2749));function _0x7724(){const _0x46e075=['193814CAzysN','3492396OXEEwD','6044406DeHNLx','getMCPConnectionStatus','registerEventHandler','_injector','extend','5128500aXAwaK','data','getAllMCPTools','6RGWFTl','Event','6384540qjlgDR','type','get','McpToolCallReceived','McpToolCallExecuted','3668861adEMaD','disconnect','McpToolCallFailed','event$','fireEvent','validateToolCall','4001984TjpuCT','_initialize','validateMCPToolCall','McpConnectionStatusChanged','_registerMCPFacadeEvents','callMCPTool','connect','executeTool','subscribe'];_0x7724=function(){return _0x46e075;};return _0x7724();}import{MCPEventId as _0x48cdab,MCPEventService as _0x57b0b7,IMCPToolRegistry as _0x576535,MCPConnectionController as _0x4a58e9}from'@univerjs-pro/mcp';import{FEventName as _0x2873e5,FUniver as _0x455956}from'@univerjs/core/facade';import{toDisposable as _0x30b378}from'@univerjs/core';function _0x19e2(_0x237231,_0x12d5ac){_0x237231=_0x237231-0xe1;const _0x77240=_0x7724();let _0x19e287=_0x77240[_0x237231];return _0x19e287;}class d{get[_0x575305(0xfe)](){const _0x15e75d=_0x575305;return _0x48cdab[_0x15e75d(0xfe)];}get[_0x575305(0xf3)](){return _0x48cdab['McpToolCallReceived'];}get[_0x575305(0xf4)](){const _0x5de93f=_0x575305;return _0x48cdab[_0x5de93f(0xf4)];}get[_0x575305(0xf7)](){const _0xa6c366=_0x575305;return _0x48cdab[_0xa6c366(0xf7)];}}_0x2873e5[_0x575305(0xea)](d);class M extends _0x455956{[_0x575305(0xfc)](_0x524d3b){this['_registerMCPFacadeEvents'](_0x524d3b);}[_0x575305(0xff)](_0x237953){const _0x3815d7=_0x575305,_0x379740=_0x237953[_0x3815d7(0xf2)](_0x57b0b7);this['registerEventHandler'](this[_0x3815d7(0xef)][_0x3815d7(0xfe)],()=>_0x30b378(_0x379740[_0x3815d7(0xf8)]['subscribe'](_0x55e35f=>{const _0x3c4bd5=_0x3815d7;_0x55e35f[_0x3c4bd5(0xf1)]===_0x48cdab['McpConnectionStatusChanged']&&this[_0x3c4bd5(0xf9)](this[_0x3c4bd5(0xef)][_0x3c4bd5(0xfe)],_0x55e35f[_0x3c4bd5(0xec)]);}))),this[_0x3815d7(0xe8)](this[_0x3815d7(0xef)][_0x3815d7(0xf3)],()=>_0x30b378(_0x379740[_0x3815d7(0xf8)][_0x3815d7(0xe3)](_0xa8b94d=>{const _0x3a5879=_0x3815d7;_0xa8b94d[_0x3a5879(0xf1)]===_0x48cdab[_0x3a5879(0xf3)]&&this['fireEvent'](this[_0x3a5879(0xef)]['McpToolCallReceived'],_0xa8b94d['data']);}))),this['registerEventHandler'](this[_0x3815d7(0xef)][_0x3815d7(0xf4)],()=>_0x30b378(_0x379740[_0x3815d7(0xf8)]['subscribe'](_0x149608=>{const _0x3ed0d4=_0x3815d7;_0x149608[_0x3ed0d4(0xf1)]===_0x48cdab[_0x3ed0d4(0xf4)]&&this[_0x3ed0d4(0xf9)](this[_0x3ed0d4(0xef)][_0x3ed0d4(0xf4)],_0x149608[_0x3ed0d4(0xec)]);}))),this[_0x3815d7(0xe8)](this[_0x3815d7(0xef)][_0x3815d7(0xf7)],()=>_0x30b378(_0x379740[_0x3815d7(0xf8)][_0x3815d7(0xe3)](_0x24ae08=>{const _0x463f83=_0x3815d7;_0x24ae08[_0x463f83(0xf1)]===_0x48cdab[_0x463f83(0xf7)]&&this[_0x463f83(0xf9)](this[_0x463f83(0xef)]['McpToolCallFailed'],_0x24ae08[_0x463f83(0xec)]);})));}[_0x575305(0xfd)](_0x5ccb4d,_0x4c1335){const _0x20e112=_0x575305;return this[_0x20e112(0xe9)][_0x20e112(0xf2)](_0x576535)[_0x20e112(0xfa)](_0x5ccb4d,_0x4c1335);}[_0x575305(0xed)](){const _0x3be3a0=_0x575305;return this[_0x3be3a0(0xe9)][_0x3be3a0(0xf2)](_0x576535)['getAllTools']();}[_0x575305(0x100)](_0x3cb721,_0x3f116b){const _0x5ba9e3=_0x575305;return this['_injector'][_0x5ba9e3(0xf2)](_0x576535)[_0x5ba9e3(0xe2)](_0x3cb721,_0x3f116b);}[_0x575305(0xe7)](){const _0x81e261=_0x575305;return this[_0x81e261(0xe9)][_0x81e261(0xf2)](_0x4a58e9)['getConnectionStatus']();}['connectMCP'](){const _0x2deb85=_0x575305;this['_injector']['get'](_0x4a58e9)[_0x2deb85(0xe1)]();}['disconnectMCP'](){const _0x3bc074=_0x575305;this[_0x3bc074(0xe9)]['get'](_0x4a58e9)[_0x3bc074(0xf6)]();}}_0x455956[_0x575305(0xea)](M);
1
+ const _0x1f0daa=_0x2ee8;(function(_0x5179d1,_0x572aaa){const _0x3f3b0a=_0x2ee8,_0x35dcf8=_0x5179d1();while(!![]){try{const _0x8f3fdd=parseInt(_0x3f3b0a(0x121))/0x1*(-parseInt(_0x3f3b0a(0x110))/0x2)+parseInt(_0x3f3b0a(0x11e))/0x3+parseInt(_0x3f3b0a(0x10b))/0x4+parseInt(_0x3f3b0a(0x125))/0x5+-parseInt(_0x3f3b0a(0x109))/0x6*(parseInt(_0x3f3b0a(0x11d))/0x7)+parseInt(_0x3f3b0a(0x11a))/0x8*(-parseInt(_0x3f3b0a(0x115))/0x9)+parseInt(_0x3f3b0a(0x11b))/0xa;if(_0x8f3fdd===_0x572aaa)break;else _0x35dcf8['push'](_0x35dcf8['shift']());}catch(_0xb451f5){_0x35dcf8['push'](_0x35dcf8['shift']());}}}(_0x563b,0xaf5e9));import{MCPEventId as _0x20ec8b,MCPEventService as _0x5e89c0,IMCPToolRegistry as _0xf4461e,MCPConnectionController as _0x492974}from'@univerjs-pro/mcp';import{FEventName as _0x1e63f5,FUniver as _0x6655de}from'@univerjs/core/facade';function _0x563b(){const _0x1e1c33=['1PoGxkY','registerEventHandler','callMCPTool','McpToolCallFailed','6048295ATiyeQ','getConnectionStatus','McpToolCallReceived','executeTool','1307490IlRvNW','Event','4056340zZVHHr','disconnect','subscribe','getAllTools','fireEvent','1413998ZqPZAp','_injector','_initialize','get','event$','531negpaI','_registerMCPFacadeEvents','validateMCPToolCall','disconnectMCP','McpToolCallExecuted','166088ckrQIO','4329540xecFKo','McpConnectionStatusChanged','35LJiSST','3249264sxQQOz','data','type'];_0x563b=function(){return _0x1e1c33;};return _0x563b();}function _0x2ee8(_0x2aaeae,_0x1464d5){_0x2aaeae=_0x2aaeae-0x108;const _0x563bab=_0x563b();let _0x2ee8d9=_0x563bab[_0x2aaeae];return _0x2ee8d9;}import{toDisposable as _0x2503e2}from'@univerjs/core';class d{get[_0x1f0daa(0x11c)](){const _0xf5b5e1=_0x1f0daa;return _0x20ec8b[_0xf5b5e1(0x11c)];}get[_0x1f0daa(0x127)](){const _0x1ef0de=_0x1f0daa;return _0x20ec8b[_0x1ef0de(0x127)];}get[_0x1f0daa(0x119)](){const _0x430826=_0x1f0daa;return _0x20ec8b[_0x430826(0x119)];}get[_0x1f0daa(0x124)](){const _0x577b1e=_0x1f0daa;return _0x20ec8b[_0x577b1e(0x124)];}}_0x1e63f5['extend'](d);class M extends _0x6655de{[_0x1f0daa(0x112)](_0x330ee3){const _0x5f5078=_0x1f0daa;this[_0x5f5078(0x116)](_0x330ee3);}[_0x1f0daa(0x116)](_0x1f1003){const _0xa04717=_0x1f0daa,_0x168679=_0x1f1003[_0xa04717(0x113)](_0x5e89c0);this[_0xa04717(0x122)](this['Event'][_0xa04717(0x11c)],()=>_0x2503e2(_0x168679[_0xa04717(0x114)]['subscribe'](_0x49b885=>{const _0x47a759=_0xa04717;_0x49b885[_0x47a759(0x120)]===_0x20ec8b[_0x47a759(0x11c)]&&this['fireEvent'](this['Event'][_0x47a759(0x11c)],_0x49b885['data']);}))),this['registerEventHandler'](this[_0xa04717(0x10a)]['McpToolCallReceived'],()=>_0x2503e2(_0x168679[_0xa04717(0x114)][_0xa04717(0x10d)](_0x5530a6=>{const _0x423f25=_0xa04717;_0x5530a6['type']===_0x20ec8b['McpToolCallReceived']&&this[_0x423f25(0x10f)](this[_0x423f25(0x10a)][_0x423f25(0x127)],_0x5530a6[_0x423f25(0x11f)]);}))),this[_0xa04717(0x122)](this[_0xa04717(0x10a)][_0xa04717(0x119)],()=>_0x2503e2(_0x168679[_0xa04717(0x114)][_0xa04717(0x10d)](_0x4620a9=>{const _0x3bde64=_0xa04717;_0x4620a9[_0x3bde64(0x120)]===_0x20ec8b[_0x3bde64(0x119)]&&this[_0x3bde64(0x10f)](this[_0x3bde64(0x10a)][_0x3bde64(0x119)],_0x4620a9[_0x3bde64(0x11f)]);}))),this[_0xa04717(0x122)](this['Event']['McpToolCallFailed'],()=>_0x2503e2(_0x168679['event$']['subscribe'](_0x42555c=>{const _0xebc95c=_0xa04717;_0x42555c[_0xebc95c(0x120)]===_0x20ec8b['McpToolCallFailed']&&this[_0xebc95c(0x10f)](this['Event'][_0xebc95c(0x124)],_0x42555c[_0xebc95c(0x11f)]);})));}[_0x1f0daa(0x117)](_0x3d8578,_0xa90752){const _0x52a9c4=_0x1f0daa;return this[_0x52a9c4(0x111)][_0x52a9c4(0x113)](_0xf4461e)['validateToolCall'](_0x3d8578,_0xa90752);}['getAllMCPTools'](){const _0x17ab8f=_0x1f0daa;return this[_0x17ab8f(0x111)][_0x17ab8f(0x113)](_0xf4461e)[_0x17ab8f(0x10e)]();}[_0x1f0daa(0x123)](_0x534d1a,_0x15e264){const _0x2c684f=_0x1f0daa;return this[_0x2c684f(0x111)][_0x2c684f(0x113)](_0xf4461e)[_0x2c684f(0x108)](_0x534d1a,_0x15e264);}['getMCPConnectionStatus'](){const _0x332e31=_0x1f0daa;return this[_0x332e31(0x111)][_0x332e31(0x113)](_0x492974)[_0x332e31(0x126)]();}['connectMCP'](){const _0x4731e8=_0x1f0daa;this[_0x4731e8(0x111)]['get'](_0x492974)['connect']();}[_0x1f0daa(0x118)](){const _0x7f9af3=_0x1f0daa;this['_injector'][_0x7f9af3(0x113)](_0x492974)[_0x7f9af3(0x10c)]();}}_0x6655de['extend'](M);