@univerjs-pro/mcp 0.12.1-nightly.202511221011 → 0.12.2-experimental.20251129-0fa20cd

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 _0x558678=_0x1769;(function(_0x3af92a,_0x31e9d6){const _0x5d84ab=_0x1769,_0x196dd9=_0x3af92a();while(!![]){try{const _0x257b03=parseInt(_0x5d84ab(0x70))/0x1+parseInt(_0x5d84ab(0x6a))/0x2+-parseInt(_0x5d84ab(0x72))/0x3+-parseInt(_0x5d84ab(0x68))/0x4+-parseInt(_0x5d84ab(0x75))/0x5*(parseInt(_0x5d84ab(0x81))/0x6)+-parseInt(_0x5d84ab(0x7e))/0x7*(parseInt(_0x5d84ab(0x8a))/0x8)+-parseInt(_0x5d84ab(0x6b))/0x9*(-parseInt(_0x5d84ab(0x71))/0xa);if(_0x257b03===_0x31e9d6)break;else _0x196dd9['push'](_0x196dd9['shift']());}catch(_0x306b95){_0x196dd9['push'](_0x196dd9['shift']());}}}(_0x3d9a,0x33c00));import{MCPEventId as _0x51b352,MCPEventService as _0x394a9b,IMCPToolRegistry as _0x2988af,MCPConnectionController as _0x2cc124}from'@univerjs-pro/mcp';import{FEventName as _0x24ad74,FUniver as _0x34f002}from'@univerjs/core/facade';import{toDisposable as _0x229816}from'@univerjs/core';class d{get[_0x558678(0x88)](){const _0x3a002f=_0x558678;return _0x51b352[_0x3a002f(0x88)];}get[_0x558678(0x86)](){return _0x51b352['McpToolCallReceived'];}get[_0x558678(0x78)](){const _0x577095=_0x558678;return _0x51b352[_0x577095(0x78)];}get[_0x558678(0x82)](){const _0x34cbb3=_0x558678;return _0x51b352[_0x34cbb3(0x82)];}}function _0x3d9a(){const _0xa852df=['_initialize','subscribe','extend','validateMCPToolCall','getAllTools','57169bkmjkP','Event','disconnect','66GgWIUs','McpToolCallFailed','callMCPTool','fireEvent','data','McpToolCallReceived','_injector','McpConnectionStatusChanged','executeTool','64GINVFt','getMCPConnectionStatus','919560tOXetD','type','243880zCdkgd','2367RamnvV','disconnectMCP','get','registerEventHandler','event$','364472waokNb','11630wlixqE','219945AqLTrR','_registerMCPFacadeEvents','connect','96260tRffnd','getAllMCPTools','connectMCP','McpToolCallExecuted'];_0x3d9a=function(){return _0xa852df;};return _0x3d9a();}function _0x1769(_0x58b4fb,_0x4a62c7){const _0x3d9ac1=_0x3d9a();return _0x1769=function(_0x176956,_0x3aec2f){_0x176956=_0x176956-0x68;let _0x23b564=_0x3d9ac1[_0x176956];return _0x23b564;},_0x1769(_0x58b4fb,_0x4a62c7);}_0x24ad74[_0x558678(0x7b)](d);class M extends _0x34f002{[_0x558678(0x79)](_0x2b94c4){const _0x2178db=_0x558678;this[_0x2178db(0x73)](_0x2b94c4);}[_0x558678(0x73)](_0x2f5523){const _0x250c66=_0x558678,_0x49178e=_0x2f5523[_0x250c66(0x6d)](_0x394a9b);this[_0x250c66(0x6e)](this[_0x250c66(0x7f)][_0x250c66(0x88)],()=>_0x229816(_0x49178e['event$'][_0x250c66(0x7a)](_0x82996e=>{const _0x59c2bb=_0x250c66;_0x82996e[_0x59c2bb(0x69)]===_0x51b352['McpConnectionStatusChanged']&&this[_0x59c2bb(0x84)](this[_0x59c2bb(0x7f)][_0x59c2bb(0x88)],_0x82996e['data']);}))),this[_0x250c66(0x6e)](this[_0x250c66(0x7f)][_0x250c66(0x86)],()=>_0x229816(_0x49178e['event$'][_0x250c66(0x7a)](_0x54d6ce=>{const _0x4b3dbc=_0x250c66;_0x54d6ce['type']===_0x51b352[_0x4b3dbc(0x86)]&&this[_0x4b3dbc(0x84)](this[_0x4b3dbc(0x7f)]['McpToolCallReceived'],_0x54d6ce['data']);}))),this['registerEventHandler'](this[_0x250c66(0x7f)][_0x250c66(0x78)],()=>_0x229816(_0x49178e[_0x250c66(0x6f)][_0x250c66(0x7a)](_0x390bf3=>{const _0x43a120=_0x250c66;_0x390bf3[_0x43a120(0x69)]===_0x51b352[_0x43a120(0x78)]&&this[_0x43a120(0x84)](this['Event'][_0x43a120(0x78)],_0x390bf3[_0x43a120(0x85)]);}))),this[_0x250c66(0x6e)](this[_0x250c66(0x7f)][_0x250c66(0x82)],()=>_0x229816(_0x49178e[_0x250c66(0x6f)][_0x250c66(0x7a)](_0x29762e=>{const _0x3945a2=_0x250c66;_0x29762e['type']===_0x51b352[_0x3945a2(0x82)]&&this[_0x3945a2(0x84)](this[_0x3945a2(0x7f)][_0x3945a2(0x82)],_0x29762e[_0x3945a2(0x85)]);})));}[_0x558678(0x7c)](_0x5d4167,_0x50a919){const _0x4c8966=_0x558678;return this[_0x4c8966(0x87)][_0x4c8966(0x6d)](_0x2988af)['validateToolCall'](_0x5d4167,_0x50a919);}[_0x558678(0x76)](){const _0x311b5d=_0x558678;return this[_0x311b5d(0x87)][_0x311b5d(0x6d)](_0x2988af)[_0x311b5d(0x7d)]();}[_0x558678(0x83)](_0x5527c7,_0x363cc5){const _0x515d7f=_0x558678;return this[_0x515d7f(0x87)][_0x515d7f(0x6d)](_0x2988af)[_0x515d7f(0x89)](_0x5527c7,_0x363cc5);}[_0x558678(0x8b)](){const _0x21fc7e=_0x558678;return this['_injector'][_0x21fc7e(0x6d)](_0x2cc124)['getConnectionStatus']();}[_0x558678(0x77)](){const _0x2faa92=_0x558678;this[_0x2faa92(0x87)]['get'](_0x2cc124)[_0x2faa92(0x74)]();}[_0x558678(0x6c)](){const _0x53fecd=_0x558678;this[_0x53fecd(0x87)][_0x53fecd(0x6d)](_0x2cc124)[_0x53fecd(0x80)]();}}_0x34f002[_0x558678(0x7b)](M);
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);