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

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 _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);
1
+ const _0x2399e6=_0x5233;(function(_0x133f0a,_0xab1e7){const _0x43f2f2=_0x5233,_0x1f2fdc=_0x133f0a();while(!![]){try{const _0x31978b=parseInt(_0x43f2f2(0x95))/0x1*(parseInt(_0x43f2f2(0x8c))/0x2)+parseInt(_0x43f2f2(0x87))/0x3*(-parseInt(_0x43f2f2(0xa2))/0x4)+parseInt(_0x43f2f2(0x89))/0x5+parseInt(_0x43f2f2(0x96))/0x6*(-parseInt(_0x43f2f2(0x8f))/0x7)+-parseInt(_0x43f2f2(0xa5))/0x8*(-parseInt(_0x43f2f2(0x82))/0x9)+parseInt(_0x43f2f2(0x9e))/0xa+-parseInt(_0x43f2f2(0x88))/0xb;if(_0x31978b===_0xab1e7)break;else _0x1f2fdc['push'](_0x1f2fdc['shift']());}catch(_0x3b647b){_0x1f2fdc['push'](_0x1f2fdc['shift']());}}}(_0x5b7f,0x1e334));function _0x5b7f(){const _0x3b38f6=['80UHpbeo','data','type','133290LthEKj','_injector','subscribe','extend','_initialize','18087pMMPiv','733546yqiTZG','600055paSXTk','connectMCP','McpToolCallExecuted','45454rLsTZz','event$','McpConnectionStatusChanged','4858WiRHUL','disconnect','registerEventHandler','executeTool','get','connect','9SegPkm','2130egzLSF','validateToolCall','Event','getMCPConnectionStatus','fireEvent','callMCPTool','getConnectionStatus','validateMCPToolCall','1449720ScHCNS','disconnectMCP','getAllTools','McpToolCallReceived','120OVEYwc','McpToolCallFailed','_registerMCPFacadeEvents'];_0x5b7f=function(){return _0x3b38f6;};return _0x5b7f();}import{MCPEventId as _0x160dc3,MCPEventService as _0x4805cc,IMCPToolRegistry as _0x2b4604,MCPConnectionController as _0x426d82}from'@univerjs-pro/mcp';function _0x5233(_0xbb70da,_0x3882cd){_0xbb70da=_0xbb70da-0x82;const _0x5b7f0a=_0x5b7f();let _0x52332c=_0x5b7f0a[_0xbb70da];return _0x52332c;}import{FEventName as _0x271231,FUniver as _0x2c8edf}from'@univerjs/core/facade';import{toDisposable as _0x34a43d}from'@univerjs/core';class d{get[_0x2399e6(0x8e)](){const _0x2524e8=_0x2399e6;return _0x160dc3[_0x2524e8(0x8e)];}get['McpToolCallReceived'](){const _0xbcc211=_0x2399e6;return _0x160dc3[_0xbcc211(0xa1)];}get[_0x2399e6(0x8b)](){const _0x370890=_0x2399e6;return _0x160dc3[_0x370890(0x8b)];}get[_0x2399e6(0xa3)](){const _0x3f8858=_0x2399e6;return _0x160dc3[_0x3f8858(0xa3)];}}_0x271231[_0x2399e6(0x85)](d);class M extends _0x2c8edf{[_0x2399e6(0x86)](_0x37ae96){const _0x1bd652=_0x2399e6;this[_0x1bd652(0xa4)](_0x37ae96);}[_0x2399e6(0xa4)](_0x277c84){const _0x5adfa0=_0x2399e6,_0x3ef4b4=_0x277c84['get'](_0x4805cc);this['registerEventHandler'](this[_0x5adfa0(0x98)]['McpConnectionStatusChanged'],()=>_0x34a43d(_0x3ef4b4['event$']['subscribe'](_0x34f372=>{const _0x4f3c58=_0x5adfa0;_0x34f372[_0x4f3c58(0xa7)]===_0x160dc3[_0x4f3c58(0x8e)]&&this[_0x4f3c58(0x9a)](this[_0x4f3c58(0x98)]['McpConnectionStatusChanged'],_0x34f372[_0x4f3c58(0xa6)]);}))),this[_0x5adfa0(0x91)](this[_0x5adfa0(0x98)]['McpToolCallReceived'],()=>_0x34a43d(_0x3ef4b4[_0x5adfa0(0x8d)]['subscribe'](_0x5d64cb=>{const _0x3752bf=_0x5adfa0;_0x5d64cb[_0x3752bf(0xa7)]===_0x160dc3[_0x3752bf(0xa1)]&&this[_0x3752bf(0x9a)](this[_0x3752bf(0x98)]['McpToolCallReceived'],_0x5d64cb[_0x3752bf(0xa6)]);}))),this[_0x5adfa0(0x91)](this[_0x5adfa0(0x98)][_0x5adfa0(0x8b)],()=>_0x34a43d(_0x3ef4b4[_0x5adfa0(0x8d)][_0x5adfa0(0x84)](_0x51da43=>{const _0x2817e5=_0x5adfa0;_0x51da43[_0x2817e5(0xa7)]===_0x160dc3[_0x2817e5(0x8b)]&&this['fireEvent'](this[_0x2817e5(0x98)][_0x2817e5(0x8b)],_0x51da43['data']);}))),this[_0x5adfa0(0x91)](this['Event'][_0x5adfa0(0xa3)],()=>_0x34a43d(_0x3ef4b4[_0x5adfa0(0x8d)][_0x5adfa0(0x84)](_0x44c8bf=>{const _0x55fa5c=_0x5adfa0;_0x44c8bf[_0x55fa5c(0xa7)]===_0x160dc3[_0x55fa5c(0xa3)]&&this['fireEvent'](this[_0x55fa5c(0x98)]['McpToolCallFailed'],_0x44c8bf[_0x55fa5c(0xa6)]);})));}[_0x2399e6(0x9d)](_0xd86454,_0x36f7c9){const _0x28eab2=_0x2399e6;return this['_injector']['get'](_0x2b4604)[_0x28eab2(0x97)](_0xd86454,_0x36f7c9);}['getAllMCPTools'](){const _0x113d5e=_0x2399e6;return this['_injector'][_0x113d5e(0x93)](_0x2b4604)[_0x113d5e(0xa0)]();}[_0x2399e6(0x9b)](_0x121987,_0x506fea){const _0x3954ae=_0x2399e6;return this[_0x3954ae(0x83)][_0x3954ae(0x93)](_0x2b4604)[_0x3954ae(0x92)](_0x121987,_0x506fea);}[_0x2399e6(0x99)](){const _0x5b8ae9=_0x2399e6;return this['_injector']['get'](_0x426d82)[_0x5b8ae9(0x9c)]();}[_0x2399e6(0x8a)](){const _0x4f2c93=_0x2399e6;this['_injector']['get'](_0x426d82)[_0x4f2c93(0x94)]();}[_0x2399e6(0x9f)](){const _0x2f0fb7=_0x2399e6;this[_0x2f0fb7(0x83)][_0x2f0fb7(0x93)](_0x426d82)[_0x2f0fb7(0x90)]();}}_0x2c8edf[_0x2399e6(0x85)](M);