@univerjs-pro/mcp 0.12.2-experimental.20251129-0fa20cd → 0.12.2-experimental.20251201-5b27b55

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
- function _0x2378(_0x53a615,_0x3b3c66){const _0x5b3291=_0x5b32();return _0x2378=function(_0x237873,_0x18a433){_0x237873=_0x237873-0x113;let _0x4aaad4=_0x5b3291[_0x237873];return _0x4aaad4;},_0x2378(_0x53a615,_0x3b3c66);}const _0x5efaea=_0x2378;(function(_0x52c21d,_0x10ab89){const _0x346c0f=_0x2378,_0x17cb3f=_0x52c21d();while(!![]){try{const _0x599629=parseInt(_0x346c0f(0x114))/0x1+-parseInt(_0x346c0f(0x12f))/0x2+parseInt(_0x346c0f(0x11f))/0x3*(parseInt(_0x346c0f(0x125))/0x4)+parseInt(_0x346c0f(0x12a))/0x5+parseInt(_0x346c0f(0x11e))/0x6+-parseInt(_0x346c0f(0x132))/0x7+-parseInt(_0x346c0f(0x115))/0x8;if(_0x599629===_0x10ab89)break;else _0x17cb3f['push'](_0x17cb3f['shift']());}catch(_0x596282){_0x17cb3f['push'](_0x17cb3f['shift']());}}}(_0x5b32,0x59b96));import{MCPEventId as _0x26723d,MCPEventService as _0x38eb75,IMCPToolRegistry as _0x41ce5a,MCPConnectionController as _0x2c912a}from'@univerjs-pro/mcp';import{FEventName as _0x18f4f3,FUniver as _0x432796}from'@univerjs/core/facade';import{toDisposable as _0x5db522}from'@univerjs/core';function _0x5b32(){const _0x553bf5=['_injector','1771725tMXgwW','validateToolCall','disconnect','getAllMCPTools','getConnectionStatus','226284wvRFqY','_registerMCPFacadeEvents','get','2023231HTgaeU','registerEventHandler','data','503949jGkJXk','6901680OVCNaQ','getAllTools','subscribe','Event','disconnectMCP','McpToolCallFailed','extend','McpToolCallReceived','executeTool','428730qHmXCF','651XIZhEk','connectMCP','fireEvent','callMCPTool','event$','type','12952pCbvXJ','McpToolCallExecuted','McpConnectionStatusChanged','validateMCPToolCall'];_0x5b32=function(){return _0x553bf5;};return _0x5b32();}class d{get[_0x5efaea(0x127)](){const _0x5a4ec5=_0x5efaea;return _0x26723d[_0x5a4ec5(0x127)];}get[_0x5efaea(0x11c)](){return _0x26723d['McpToolCallReceived'];}get[_0x5efaea(0x126)](){return _0x26723d['McpToolCallExecuted'];}get[_0x5efaea(0x11a)](){return _0x26723d['McpToolCallFailed'];}}_0x18f4f3[_0x5efaea(0x11b)](d);class M extends _0x432796{['_initialize'](_0x924601){const _0x34f45a=_0x5efaea;this[_0x34f45a(0x130)](_0x924601);}['_registerMCPFacadeEvents'](_0x3d6800){const _0x28d333=_0x5efaea,_0x4ee02d=_0x3d6800[_0x28d333(0x131)](_0x38eb75);this[_0x28d333(0x133)](this[_0x28d333(0x118)]['McpConnectionStatusChanged'],()=>_0x5db522(_0x4ee02d[_0x28d333(0x123)][_0x28d333(0x117)](_0x586fde=>{const _0xbc4e96=_0x28d333;_0x586fde['type']===_0x26723d['McpConnectionStatusChanged']&&this[_0xbc4e96(0x121)](this[_0xbc4e96(0x118)][_0xbc4e96(0x127)],_0x586fde[_0xbc4e96(0x113)]);}))),this[_0x28d333(0x133)](this[_0x28d333(0x118)][_0x28d333(0x11c)],()=>_0x5db522(_0x4ee02d[_0x28d333(0x123)]['subscribe'](_0x20b396=>{const _0x3cdc04=_0x28d333;_0x20b396[_0x3cdc04(0x124)]===_0x26723d[_0x3cdc04(0x11c)]&&this[_0x3cdc04(0x121)](this[_0x3cdc04(0x118)]['McpToolCallReceived'],_0x20b396[_0x3cdc04(0x113)]);}))),this[_0x28d333(0x133)](this['Event'][_0x28d333(0x126)],()=>_0x5db522(_0x4ee02d['event$'][_0x28d333(0x117)](_0x43445d=>{const _0x309065=_0x28d333;_0x43445d['type']===_0x26723d[_0x309065(0x126)]&&this['fireEvent'](this[_0x309065(0x118)][_0x309065(0x126)],_0x43445d['data']);}))),this[_0x28d333(0x133)](this['Event']['McpToolCallFailed'],()=>_0x5db522(_0x4ee02d[_0x28d333(0x123)][_0x28d333(0x117)](_0x2864b1=>{const _0x2e7b9b=_0x28d333;_0x2864b1['type']===_0x26723d[_0x2e7b9b(0x11a)]&&this['fireEvent'](this[_0x2e7b9b(0x118)][_0x2e7b9b(0x11a)],_0x2864b1[_0x2e7b9b(0x113)]);})));}[_0x5efaea(0x128)](_0x3ee0a0,_0x563bae){const _0x2e11bf=_0x5efaea;return this['_injector'][_0x2e11bf(0x131)](_0x41ce5a)[_0x2e11bf(0x12b)](_0x3ee0a0,_0x563bae);}[_0x5efaea(0x12d)](){const _0x39e751=_0x5efaea;return this[_0x39e751(0x129)][_0x39e751(0x131)](_0x41ce5a)[_0x39e751(0x116)]();}[_0x5efaea(0x122)](_0x236281,_0x223c0d){const _0x3d32ce=_0x5efaea;return this['_injector'][_0x3d32ce(0x131)](_0x41ce5a)[_0x3d32ce(0x11d)](_0x236281,_0x223c0d);}['getMCPConnectionStatus'](){const _0x26b421=_0x5efaea;return this[_0x26b421(0x129)][_0x26b421(0x131)](_0x2c912a)[_0x26b421(0x12e)]();}[_0x5efaea(0x120)](){const _0x140329=_0x5efaea;this[_0x140329(0x129)][_0x140329(0x131)](_0x2c912a)['connect']();}[_0x5efaea(0x119)](){const _0x5ee57d=_0x5efaea;this['_injector'][_0x5ee57d(0x131)](_0x2c912a)[_0x5ee57d(0x12c)]();}}_0x432796[_0x5efaea(0x11b)](M);
1
+ const _0x167339=_0x45a9;(function(_0x33fb8a,_0x1e86be){const _0x502e52=_0x45a9,_0x211999=_0x33fb8a();while(!![]){try{const _0x2d2dcb=parseInt(_0x502e52(0x9a))/0x1+-parseInt(_0x502e52(0x8d))/0x2*(-parseInt(_0x502e52(0x9b))/0x3)+-parseInt(_0x502e52(0x82))/0x4*(parseInt(_0x502e52(0xa4))/0x5)+-parseInt(_0x502e52(0x8f))/0x6*(parseInt(_0x502e52(0x8e))/0x7)+-parseInt(_0x502e52(0xa1))/0x8*(parseInt(_0x502e52(0xa3))/0x9)+parseInt(_0x502e52(0x84))/0xa*(-parseInt(_0x502e52(0x92))/0xb)+parseInt(_0x502e52(0x89))/0xc;if(_0x2d2dcb===_0x1e86be)break;else _0x211999['push'](_0x211999['shift']());}catch(_0x21cc32){_0x211999['push'](_0x211999['shift']());}}}(_0x3a35,0x296b6));function _0x3a35(){const _0xd47f66=['7459116axtdUm','McpToolCallFailed','connect','subscribe','36390wREhKq','696794CKVjUu','18fGOEbE','validateToolCall','_injector','308319qagOYg','McpConnectionStatusChanged','disconnectMCP','fireEvent','data','connectMCP','_registerMCPFacadeEvents','registerEventHandler','52893AuCzqL','15wlVJHy','getConnectionStatus','callMCPTool','McpToolCallExecuted','extend','event$','34312woUznE','type','9eiGRpM','45545DIGKzu','getAllTools','getMCPConnectionStatus','McpToolCallReceived','104WKpHxd','get','20AwcmjC','validateMCPToolCall','executeTool','Event','_initialize'];_0x3a35=function(){return _0xd47f66;};return _0x3a35();}import{MCPEventId as _0x541849,MCPEventService as _0x3e974c,IMCPToolRegistry as _0x1147a9,MCPConnectionController as _0x1301de}from'@univerjs-pro/mcp';import{FEventName as _0x571207,FUniver as _0x1f7abd}from'@univerjs/core/facade';import{toDisposable as _0x4634ac}from'@univerjs/core';function _0x45a9(_0x4ce03e,_0xfdffa){const _0x3a35c9=_0x3a35();return _0x45a9=function(_0x45a9bd,_0x398388){_0x45a9bd=_0x45a9bd-0x82;let _0x5cbf03=_0x3a35c9[_0x45a9bd];return _0x5cbf03;},_0x45a9(_0x4ce03e,_0xfdffa);}class d{get['McpConnectionStatusChanged'](){const _0x566ab4=_0x45a9;return _0x541849[_0x566ab4(0x93)];}get[_0x167339(0xa7)](){return _0x541849['McpToolCallReceived'];}get[_0x167339(0x9e)](){const _0x3b9192=_0x167339;return _0x541849[_0x3b9192(0x9e)];}get[_0x167339(0x8a)](){return _0x541849['McpToolCallFailed'];}}_0x571207[_0x167339(0x9f)](d);class M extends _0x1f7abd{[_0x167339(0x88)](_0xf181f8){const _0x5c3ca2=_0x167339;this[_0x5c3ca2(0x98)](_0xf181f8);}[_0x167339(0x98)](_0x537f8e){const _0x585804=_0x167339,_0xb530df=_0x537f8e['get'](_0x3e974c);this[_0x585804(0x99)](this[_0x585804(0x87)][_0x585804(0x93)],()=>_0x4634ac(_0xb530df[_0x585804(0xa0)][_0x585804(0x8c)](_0x31dfb9=>{const _0x8625b8=_0x585804;_0x31dfb9[_0x8625b8(0xa2)]===_0x541849['McpConnectionStatusChanged']&&this[_0x8625b8(0x95)](this[_0x8625b8(0x87)][_0x8625b8(0x93)],_0x31dfb9[_0x8625b8(0x96)]);}))),this[_0x585804(0x99)](this[_0x585804(0x87)]['McpToolCallReceived'],()=>_0x4634ac(_0xb530df['event$'][_0x585804(0x8c)](_0x1a4565=>{const _0x58cdc7=_0x585804;_0x1a4565[_0x58cdc7(0xa2)]===_0x541849[_0x58cdc7(0xa7)]&&this['fireEvent'](this[_0x58cdc7(0x87)][_0x58cdc7(0xa7)],_0x1a4565['data']);}))),this[_0x585804(0x99)](this['Event'][_0x585804(0x9e)],()=>_0x4634ac(_0xb530df[_0x585804(0xa0)][_0x585804(0x8c)](_0x776507=>{const _0x58ce1a=_0x585804;_0x776507['type']===_0x541849['McpToolCallExecuted']&&this['fireEvent'](this['Event'][_0x58ce1a(0x9e)],_0x776507['data']);}))),this[_0x585804(0x99)](this[_0x585804(0x87)][_0x585804(0x8a)],()=>_0x4634ac(_0xb530df[_0x585804(0xa0)][_0x585804(0x8c)](_0x12a6f6=>{const _0x1291a2=_0x585804;_0x12a6f6[_0x1291a2(0xa2)]===_0x541849[_0x1291a2(0x8a)]&&this[_0x1291a2(0x95)](this['Event'][_0x1291a2(0x8a)],_0x12a6f6[_0x1291a2(0x96)]);})));}[_0x167339(0x85)](_0x35231b,_0x4ab81c){const _0x270977=_0x167339;return this['_injector'][_0x270977(0x83)](_0x1147a9)[_0x270977(0x90)](_0x35231b,_0x4ab81c);}['getAllMCPTools'](){const _0x458d1e=_0x167339;return this[_0x458d1e(0x91)][_0x458d1e(0x83)](_0x1147a9)[_0x458d1e(0xa5)]();}[_0x167339(0x9d)](_0x9a107c,_0x490c13){const _0x2b246f=_0x167339;return this[_0x2b246f(0x91)]['get'](_0x1147a9)[_0x2b246f(0x86)](_0x9a107c,_0x490c13);}[_0x167339(0xa6)](){const _0x37d40f=_0x167339;return this['_injector'][_0x37d40f(0x83)](_0x1301de)[_0x37d40f(0x9c)]();}[_0x167339(0x97)](){const _0x4cbfc3=_0x167339;this[_0x4cbfc3(0x91)][_0x4cbfc3(0x83)](_0x1301de)[_0x4cbfc3(0x8b)]();}[_0x167339(0x94)](){const _0x4a2e4f=_0x167339;this['_injector'][_0x4a2e4f(0x83)](_0x1301de)['disconnect']();}}_0x1f7abd[_0x167339(0x9f)](M);