@univerjs-pro/mcp 0.10.9-nightly.202509260614 → 0.10.10-experimental.20251010-3f807c5

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/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x2299f8=_0x7d9e;(function(_0x3a30cc,_0x3abc69){const _0x5c3dc3=_0x7d9e,_0x61291f=_0x3a30cc();while(!![]){try{const _0x5ec740=parseInt(_0x5c3dc3(0xe4))/0x1*(parseInt(_0x5c3dc3(0xfa))/0x2)+-parseInt(_0x5c3dc3(0xfe))/0x3*(-parseInt(_0x5c3dc3(0xf8))/0x4)+parseInt(_0x5c3dc3(0xf2))/0x5*(parseInt(_0x5c3dc3(0x106))/0x6)+-parseInt(_0x5c3dc3(0xf3))/0x7*(-parseInt(_0x5c3dc3(0xe3))/0x8)+parseInt(_0x5c3dc3(0xf9))/0x9+parseInt(_0x5c3dc3(0xe9))/0xa+-parseInt(_0x5c3dc3(0xec))/0xb;if(_0x5ec740===_0x3abc69)break;else _0x61291f['push'](_0x61291f['shift']());}catch(_0x153b69){_0x61291f['push'](_0x61291f['shift']());}}}(_0x47bf,0x36d2c));import{MCPEventId as _0x2c4e1a,MCPEventService as _0x556b05,IMCPToolRegistry as _0x13c6e9,MCPConnectionController as _0x173f51}from'@univerjs-pro/mcp';import{FEventName as _0x26e343,FUniver as _0x5ee23b}from'@univerjs/core/facade';function _0x47bf(){const _0x3550a6=['_injector','Event','getAllTools','executeTool','registerEventHandler','6Zaqkit','getConnectionStatus','8rzKjSb','54652BCGgLz','McpToolCallReceived','type','subscribe','disconnectMCP','3469400YGlxUB','get','getMCPConnectionStatus','11949432jeUkUL','validateMCPToolCall','connectMCP','fireEvent','_registerMCPFacadeEvents','McpToolCallExecuted','570085YzdcuU','806029ZydlBb','data','event$','McpConnectionStatusChanged','getAllMCPTools','26904hHTJgh','3850866bnbuvm','10dTYnhI','connect','extend','callMCPTool','15sKMyvb','McpToolCallFailed','disconnect'];_0x47bf=function(){return _0x3550a6;};return _0x47bf();}import{toDisposable as _0x241d62}from'@univerjs/core';class d{get[_0x2299f8(0xf6)](){const _0x82b291=_0x2299f8;return _0x2c4e1a[_0x82b291(0xf6)];}get[_0x2299f8(0xe5)](){const _0x1dec5d=_0x2299f8;return _0x2c4e1a[_0x1dec5d(0xe5)];}get[_0x2299f8(0xf1)](){const _0x515620=_0x2299f8;return _0x2c4e1a[_0x515620(0xf1)];}get['McpToolCallFailed'](){const _0x4ee76c=_0x2299f8;return _0x2c4e1a[_0x4ee76c(0xff)];}}function _0x7d9e(_0x387b3d,_0x55441d){const _0x47bf0e=_0x47bf();return _0x7d9e=function(_0x7d9e6b,_0x3bfe86){_0x7d9e6b=_0x7d9e6b-0xe2;let _0xae6e5=_0x47bf0e[_0x7d9e6b];return _0xae6e5;},_0x7d9e(_0x387b3d,_0x55441d);}_0x26e343[_0x2299f8(0xfc)](d);class M extends _0x5ee23b{['_initialize'](_0x1a5cbe){const _0x32883d=_0x2299f8;this[_0x32883d(0xf0)](_0x1a5cbe);}[_0x2299f8(0xf0)](_0x50126d){const _0x72adf5=_0x2299f8,_0x31c754=_0x50126d[_0x72adf5(0xea)](_0x556b05);this[_0x72adf5(0x105)](this[_0x72adf5(0x102)][_0x72adf5(0xf6)],()=>_0x241d62(_0x31c754[_0x72adf5(0xf5)][_0x72adf5(0xe7)](_0x1e2ca3=>{const _0x21ca35=_0x72adf5;_0x1e2ca3[_0x21ca35(0xe6)]===_0x2c4e1a[_0x21ca35(0xf6)]&&this[_0x21ca35(0xef)](this[_0x21ca35(0x102)][_0x21ca35(0xf6)],_0x1e2ca3['data']);}))),this[_0x72adf5(0x105)](this['Event'][_0x72adf5(0xe5)],()=>_0x241d62(_0x31c754[_0x72adf5(0xf5)]['subscribe'](_0x1c5ef9=>{const _0x5498b8=_0x72adf5;_0x1c5ef9[_0x5498b8(0xe6)]===_0x2c4e1a[_0x5498b8(0xe5)]&&this[_0x5498b8(0xef)](this[_0x5498b8(0x102)][_0x5498b8(0xe5)],_0x1c5ef9[_0x5498b8(0xf4)]);}))),this[_0x72adf5(0x105)](this['Event'][_0x72adf5(0xf1)],()=>_0x241d62(_0x31c754[_0x72adf5(0xf5)][_0x72adf5(0xe7)](_0x1ddcf5=>{const _0x644b20=_0x72adf5;_0x1ddcf5[_0x644b20(0xe6)]===_0x2c4e1a[_0x644b20(0xf1)]&&this[_0x644b20(0xef)](this[_0x644b20(0x102)][_0x644b20(0xf1)],_0x1ddcf5['data']);}))),this[_0x72adf5(0x105)](this[_0x72adf5(0x102)]['McpToolCallFailed'],()=>_0x241d62(_0x31c754['event$'][_0x72adf5(0xe7)](_0xe27a0d=>{const _0x233286=_0x72adf5;_0xe27a0d[_0x233286(0xe6)]===_0x2c4e1a[_0x233286(0xff)]&&this['fireEvent'](this['Event'][_0x233286(0xff)],_0xe27a0d[_0x233286(0xf4)]);})));}[_0x2299f8(0xed)](_0x4c4224,_0x390968){const _0x3bccb2=_0x2299f8;return this['_injector'][_0x3bccb2(0xea)](_0x13c6e9)['validateToolCall'](_0x4c4224,_0x390968);}[_0x2299f8(0xf7)](){const _0x4b756f=_0x2299f8;return this[_0x4b756f(0x101)][_0x4b756f(0xea)](_0x13c6e9)[_0x4b756f(0x103)]();}[_0x2299f8(0xfd)](_0x5a86e3,_0x4ec339){const _0x924c67=_0x2299f8;return this['_injector'][_0x924c67(0xea)](_0x13c6e9)[_0x924c67(0x104)](_0x5a86e3,_0x4ec339);}[_0x2299f8(0xeb)](){const _0x39f758=_0x2299f8;return this['_injector'][_0x39f758(0xea)](_0x173f51)[_0x39f758(0xe2)]();}[_0x2299f8(0xee)](){const _0x19f835=_0x2299f8;this[_0x19f835(0x101)]['get'](_0x173f51)[_0x19f835(0xfb)]();}[_0x2299f8(0xe8)](){const _0x4f8e60=_0x2299f8;this[_0x4f8e60(0x101)][_0x4f8e60(0xea)](_0x173f51)[_0x4f8e60(0x100)]();}}_0x5ee23b['extend'](M);
1
+ const _0x75777a=_0x1519;(function(_0x1d7a62,_0x2e7372){const _0x18c1e8=_0x1519,_0x548a0b=_0x1d7a62();while(!![]){try{const _0x95340=-parseInt(_0x18c1e8(0x130))/0x1*(parseInt(_0x18c1e8(0x113))/0x2)+parseInt(_0x18c1e8(0x124))/0x3+parseInt(_0x18c1e8(0x11a))/0x4+-parseInt(_0x18c1e8(0x134))/0x5*(parseInt(_0x18c1e8(0x123))/0x6)+parseInt(_0x18c1e8(0x11b))/0x7+-parseInt(_0x18c1e8(0x12e))/0x8*(parseInt(_0x18c1e8(0x11c))/0x9)+-parseInt(_0x18c1e8(0x128))/0xa;if(_0x95340===_0x2e7372)break;else _0x548a0b['push'](_0x548a0b['shift']());}catch(_0x428d67){_0x548a0b['push'](_0x548a0b['shift']());}}}(_0x1607,0xc261a));import{MCPEventId as _0x5985bf,MCPEventService as _0x4dae30,IMCPToolRegistry as _0x3aea8e,MCPConnectionController as _0x489f3e}from'@univerjs-pro/mcp';function _0x1519(_0x36f4a3,_0xa375db){const _0x160714=_0x1607();return _0x1519=function(_0x15191f,_0xefe8c2){_0x15191f=_0x15191f-0x112;let _0xdae387=_0x160714[_0x15191f];return _0xdae387;},_0x1519(_0x36f4a3,_0xa375db);}import{FEventName as _0x6beb21,FUniver as _0x1e133b}from'@univerjs/core/facade';import{toDisposable as _0x288c8c}from'@univerjs/core';function _0x1607(){const _0x3ed373=['5SHxMgS','McpToolCallExecuted','2DSXBDw','_registerMCPFacadeEvents','event$','type','Event','registerEventHandler','callMCPTool','4999980QfFIeE','6419994gRLHKJ','177966rkDkcn','getAllMCPTools','McpConnectionStatusChanged','validateToolCall','subscribe','data','getAllTools','2724312PCPkLZ','2434905sgEGqk','connectMCP','get','getConnectionStatus','416080KppVUB','_injector','fireEvent','_initialize','extend','disconnectMCP','40EoCeqH','McpToolCallFailed','1588056YZGWRO','disconnect','McpToolCallReceived','connect'];_0x1607=function(){return _0x3ed373;};return _0x1607();}class d{get[_0x75777a(0x11e)](){return _0x5985bf['McpConnectionStatusChanged'];}get[_0x75777a(0x132)](){const _0xc51eeb=_0x75777a;return _0x5985bf[_0xc51eeb(0x132)];}get[_0x75777a(0x112)](){const _0x5463cb=_0x75777a;return _0x5985bf[_0x5463cb(0x112)];}get[_0x75777a(0x12f)](){const _0x5a0474=_0x75777a;return _0x5985bf[_0x5a0474(0x12f)];}}_0x6beb21[_0x75777a(0x12c)](d);class M extends _0x1e133b{[_0x75777a(0x12b)](_0x361884){const _0x332bfa=_0x75777a;this[_0x332bfa(0x114)](_0x361884);}[_0x75777a(0x114)](_0xb88414){const _0x98f656=_0x75777a,_0x2023bf=_0xb88414[_0x98f656(0x126)](_0x4dae30);this[_0x98f656(0x118)](this[_0x98f656(0x117)][_0x98f656(0x11e)],()=>_0x288c8c(_0x2023bf[_0x98f656(0x115)][_0x98f656(0x120)](_0x31b11c=>{const _0xc3f45d=_0x98f656;_0x31b11c[_0xc3f45d(0x116)]===_0x5985bf[_0xc3f45d(0x11e)]&&this[_0xc3f45d(0x12a)](this[_0xc3f45d(0x117)][_0xc3f45d(0x11e)],_0x31b11c[_0xc3f45d(0x121)]);}))),this[_0x98f656(0x118)](this[_0x98f656(0x117)][_0x98f656(0x132)],()=>_0x288c8c(_0x2023bf[_0x98f656(0x115)][_0x98f656(0x120)](_0x49959a=>{const _0x405890=_0x98f656;_0x49959a['type']===_0x5985bf[_0x405890(0x132)]&&this['fireEvent'](this[_0x405890(0x117)][_0x405890(0x132)],_0x49959a[_0x405890(0x121)]);}))),this[_0x98f656(0x118)](this[_0x98f656(0x117)][_0x98f656(0x112)],()=>_0x288c8c(_0x2023bf['event$'][_0x98f656(0x120)](_0x93b85a=>{const _0x2a64c9=_0x98f656;_0x93b85a[_0x2a64c9(0x116)]===_0x5985bf[_0x2a64c9(0x112)]&&this[_0x2a64c9(0x12a)](this[_0x2a64c9(0x117)][_0x2a64c9(0x112)],_0x93b85a[_0x2a64c9(0x121)]);}))),this[_0x98f656(0x118)](this[_0x98f656(0x117)][_0x98f656(0x12f)],()=>_0x288c8c(_0x2023bf[_0x98f656(0x115)]['subscribe'](_0x300b8f=>{const _0xbf7f9a=_0x98f656;_0x300b8f['type']===_0x5985bf[_0xbf7f9a(0x12f)]&&this[_0xbf7f9a(0x12a)](this[_0xbf7f9a(0x117)][_0xbf7f9a(0x12f)],_0x300b8f[_0xbf7f9a(0x121)]);})));}['validateMCPToolCall'](_0x3d3a9a,_0x1a67fb){const _0x5d1b63=_0x75777a;return this[_0x5d1b63(0x129)][_0x5d1b63(0x126)](_0x3aea8e)[_0x5d1b63(0x11f)](_0x3d3a9a,_0x1a67fb);}[_0x75777a(0x11d)](){const _0xd6a5bc=_0x75777a;return this[_0xd6a5bc(0x129)][_0xd6a5bc(0x126)](_0x3aea8e)[_0xd6a5bc(0x122)]();}[_0x75777a(0x119)](_0x1b07d3,_0x2d2dc9){const _0x40814d=_0x75777a;return this['_injector'][_0x40814d(0x126)](_0x3aea8e)['executeTool'](_0x1b07d3,_0x2d2dc9);}['getMCPConnectionStatus'](){const _0x127148=_0x75777a;return this['_injector'][_0x127148(0x126)](_0x489f3e)[_0x127148(0x127)]();}[_0x75777a(0x125)](){const _0x482dad=_0x75777a;this[_0x482dad(0x129)]['get'](_0x489f3e)[_0x482dad(0x133)]();}[_0x75777a(0x12d)](){const _0x2dfe67=_0x75777a;this[_0x2dfe67(0x129)][_0x2dfe67(0x126)](_0x489f3e)[_0x2dfe67(0x131)]();}}_0x1e133b[_0x75777a(0x12c)](M);