@univerjs-pro/mcp 0.10.14-nightly.202511070939 → 0.10.14-nightly.202511080715

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/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x3c581c=_0x3481;(function(_0x41bb03,_0x33d788){const _0x2d2773=_0x3481,_0x460370=_0x41bb03();while(!![]){try{const _0x3976cc=parseInt(_0x2d2773(0x1c9))/0x1+-parseInt(_0x2d2773(0x1d6))/0x2*(-parseInt(_0x2d2773(0x1cc))/0x3)+-parseInt(_0x2d2773(0x1d8))/0x4*(-parseInt(_0x2d2773(0x1bf))/0x5)+parseInt(_0x2d2773(0x1b6))/0x6*(-parseInt(_0x2d2773(0x1b9))/0x7)+-parseInt(_0x2d2773(0x1d7))/0x8*(parseInt(_0x2d2773(0x1d2))/0x9)+parseInt(_0x2d2773(0x1d3))/0xa*(-parseInt(_0x2d2773(0x1b7))/0xb)+parseInt(_0x2d2773(0x1df))/0xc;if(_0x3976cc===_0x33d788)break;else _0x460370['push'](_0x460370['shift']());}catch(_0x1af939){_0x460370['push'](_0x460370['shift']());}}}(_0x822b,0x1c9ad));function _0x822b(){const _0x1b389c=['getAllMCPTools','199476Zjfncg','385370IAqvHm','_injector','_registerMCPFacadeEvents','22TRfsEH','8vkTjob','69796bJclnd','getMCPConnectionStatus','MCPConnectionController','connect','Event','get','callMCPTool','1425528YVGAVd','disconnect','6UuEWFx','44ISGwDB','registerEventHandler','493934UQNTFZ','McpToolCallExecuted','subscribe','MCPEventId','toDisposable','validateMCPToolCall','5KZydDd','type','data','McpConnectionStatusChanged','disconnectMCP','McpToolCallFailed','IMCPToolRegistry','FUniver','fireEvent','validateToolCall','2945EWDcCr','connectMCP','event$','61323TWNoyU','FEventName','MCPEventService','extend','McpToolCallReceived'];_0x822b=function(){return _0x1b389c;};return _0x822b();}const e=require('@univerjs-pro/mcp'),i=require('@univerjs/core/facade'),l=require('@univerjs/core');class r{get[_0x3c581c(0x1c2)](){const _0x44310c=_0x3c581c;return e[_0x44310c(0x1bc)][_0x44310c(0x1c2)];}get['McpToolCallReceived'](){const _0x165045=_0x3c581c;return e['MCPEventId'][_0x165045(0x1d0)];}get['McpToolCallExecuted'](){const _0x246730=_0x3c581c;return e[_0x246730(0x1bc)][_0x246730(0x1ba)];}get[_0x3c581c(0x1c4)](){const _0xec9c42=_0x3c581c;return e[_0xec9c42(0x1bc)][_0xec9c42(0x1c4)];}}i[_0x3c581c(0x1cd)][_0x3c581c(0x1cf)](r);function _0x3481(_0x4bffce,_0x102755){const _0x822b35=_0x822b();return _0x3481=function(_0x348176,_0x10c5df){_0x348176=_0x348176-0x1b6;let _0x4f9c3c=_0x822b35[_0x348176];return _0x4f9c3c;},_0x3481(_0x4bffce,_0x102755);}class s extends i[_0x3c581c(0x1c6)]{['_initialize'](_0x4ab4d6){const _0x1c3840=_0x3c581c;this[_0x1c3840(0x1d5)](_0x4ab4d6);}[_0x3c581c(0x1d5)](_0x1a6a7b){const _0x128d97=_0x3c581c,_0x1bef11=_0x1a6a7b['get'](e[_0x128d97(0x1ce)]);this['registerEventHandler'](this[_0x128d97(0x1dc)][_0x128d97(0x1c2)],()=>l[_0x128d97(0x1bd)](_0x1bef11['event$'][_0x128d97(0x1bb)](_0x3211a2=>{const _0x5681a6=_0x128d97;_0x3211a2['type']===e[_0x5681a6(0x1bc)]['McpConnectionStatusChanged']&&this[_0x5681a6(0x1c7)](this['Event']['McpConnectionStatusChanged'],_0x3211a2['data']);}))),this[_0x128d97(0x1b8)](this['Event'][_0x128d97(0x1d0)],()=>l[_0x128d97(0x1bd)](_0x1bef11[_0x128d97(0x1cb)][_0x128d97(0x1bb)](_0x53635e=>{const _0x4135ff=_0x128d97;_0x53635e[_0x4135ff(0x1c0)]===e[_0x4135ff(0x1bc)][_0x4135ff(0x1d0)]&&this[_0x4135ff(0x1c7)](this[_0x4135ff(0x1dc)][_0x4135ff(0x1d0)],_0x53635e[_0x4135ff(0x1c1)]);}))),this['registerEventHandler'](this[_0x128d97(0x1dc)][_0x128d97(0x1ba)],()=>l[_0x128d97(0x1bd)](_0x1bef11[_0x128d97(0x1cb)][_0x128d97(0x1bb)](_0x5cef4a=>{const _0x3a7731=_0x128d97;_0x5cef4a[_0x3a7731(0x1c0)]===e[_0x3a7731(0x1bc)]['McpToolCallExecuted']&&this['fireEvent'](this[_0x3a7731(0x1dc)][_0x3a7731(0x1ba)],_0x5cef4a[_0x3a7731(0x1c1)]);}))),this[_0x128d97(0x1b8)](this[_0x128d97(0x1dc)][_0x128d97(0x1c4)],()=>l['toDisposable'](_0x1bef11['event$'][_0x128d97(0x1bb)](_0x5bb276=>{const _0x38eddf=_0x128d97;_0x5bb276['type']===e['MCPEventId'][_0x38eddf(0x1c4)]&&this[_0x38eddf(0x1c7)](this[_0x38eddf(0x1dc)][_0x38eddf(0x1c4)],_0x5bb276[_0x38eddf(0x1c1)]);})));}[_0x3c581c(0x1be)](_0x21767f,_0x2b2663){const _0x17ac4c=_0x3c581c;return this['_injector'][_0x17ac4c(0x1dd)](e[_0x17ac4c(0x1c5)])[_0x17ac4c(0x1c8)](_0x21767f,_0x2b2663);}[_0x3c581c(0x1d1)](){const _0x23ea3f=_0x3c581c;return this[_0x23ea3f(0x1d4)]['get'](e['IMCPToolRegistry'])['getAllTools']();}[_0x3c581c(0x1de)](_0x53ac4f,_0x49175c){const _0x38b676=_0x3c581c;return this[_0x38b676(0x1d4)][_0x38b676(0x1dd)](e[_0x38b676(0x1c5)])['executeTool'](_0x53ac4f,_0x49175c);}[_0x3c581c(0x1d9)](){const _0x1c123e=_0x3c581c;return this[_0x1c123e(0x1d4)][_0x1c123e(0x1dd)](e[_0x1c123e(0x1da)])['getConnectionStatus']();}[_0x3c581c(0x1ca)](){const _0x155da5=_0x3c581c;this['_injector'][_0x155da5(0x1dd)](e[_0x155da5(0x1da)])[_0x155da5(0x1db)]();}[_0x3c581c(0x1c3)](){const _0xaac916=_0x3c581c;this[_0xaac916(0x1d4)]['get'](e[_0xaac916(0x1da)])[_0xaac916(0x1e0)]();}}i[_0x3c581c(0x1c6)][_0x3c581c(0x1cf)](s);
1
+ 'use strict';const _0x25d5c9=_0x1968;(function(_0x3fbe34,_0x3befad){const _0x1da5fc=_0x1968,_0x989ed6=_0x3fbe34();while(!![]){try{const _0x2ad2b5=parseInt(_0x1da5fc(0xda))/0x1*(-parseInt(_0x1da5fc(0xdf))/0x2)+parseInt(_0x1da5fc(0xdc))/0x3+parseInt(_0x1da5fc(0xcb))/0x4*(parseInt(_0x1da5fc(0xd5))/0x5)+-parseInt(_0x1da5fc(0xd6))/0x6+-parseInt(_0x1da5fc(0xd8))/0x7*(parseInt(_0x1da5fc(0xea))/0x8)+parseInt(_0x1da5fc(0xeb))/0x9*(-parseInt(_0x1da5fc(0xe5))/0xa)+parseInt(_0x1da5fc(0xc9))/0xb;if(_0x2ad2b5===_0x3befad)break;else _0x989ed6['push'](_0x989ed6['shift']());}catch(_0x15550f){_0x989ed6['push'](_0x989ed6['shift']());}}}(_0x1259,0x99fa9));function _0x1968(_0x3c86a7,_0x3a0c60){const _0x12596b=_0x1259();return _0x1968=function(_0x1968f1,_0x205928){_0x1968f1=_0x1968f1-0xc8;let _0x2152b3=_0x12596b[_0x1968f1];return _0x2152b3;},_0x1968(_0x3c86a7,_0x3a0c60);}const e=require('@univerjs-pro/mcp'),i=require('@univerjs/core/facade'),l=require('@univerjs/core');class r{get[_0x25d5c9(0xe1)](){return e['MCPEventId']['McpConnectionStatusChanged'];}get['McpToolCallReceived'](){const _0x44f29f=_0x25d5c9;return e[_0x44f29f(0xe3)][_0x44f29f(0xe7)];}get[_0x25d5c9(0xd4)](){const _0x11fbc3=_0x25d5c9;return e[_0x11fbc3(0xe3)][_0x11fbc3(0xd4)];}get[_0x25d5c9(0xcc)](){const _0x1009ae=_0x25d5c9;return e['MCPEventId'][_0x1009ae(0xcc)];}}i['FEventName'][_0x25d5c9(0xe8)](r);class s extends i[_0x25d5c9(0xd9)]{[_0x25d5c9(0xd7)](_0x49c3f3){const _0x59f066=_0x25d5c9;this[_0x59f066(0xd2)](_0x49c3f3);}[_0x25d5c9(0xd2)](_0x190f52){const _0x3bcf7f=_0x25d5c9,_0x5dddb4=_0x190f52[_0x3bcf7f(0xd3)](e[_0x3bcf7f(0xe6)]);this[_0x3bcf7f(0xe0)](this['Event'][_0x3bcf7f(0xe1)],()=>l[_0x3bcf7f(0xe9)](_0x5dddb4[_0x3bcf7f(0xde)][_0x3bcf7f(0xd0)](_0x2856ae=>{const _0x387f5b=_0x3bcf7f;_0x2856ae[_0x387f5b(0xca)]===e[_0x387f5b(0xe3)][_0x387f5b(0xe1)]&&this[_0x387f5b(0xd1)](this['Event']['McpConnectionStatusChanged'],_0x2856ae[_0x387f5b(0xed)]);}))),this[_0x3bcf7f(0xe0)](this[_0x3bcf7f(0xcd)][_0x3bcf7f(0xe7)],()=>l[_0x3bcf7f(0xe9)](_0x5dddb4[_0x3bcf7f(0xde)][_0x3bcf7f(0xd0)](_0x17f02b=>{const _0x112842=_0x3bcf7f;_0x17f02b[_0x112842(0xca)]===e[_0x112842(0xe3)][_0x112842(0xe7)]&&this[_0x112842(0xd1)](this['Event'][_0x112842(0xe7)],_0x17f02b[_0x112842(0xed)]);}))),this[_0x3bcf7f(0xe0)](this[_0x3bcf7f(0xcd)][_0x3bcf7f(0xd4)],()=>l['toDisposable'](_0x5dddb4['event$'][_0x3bcf7f(0xd0)](_0x3a3e77=>{const _0x566233=_0x3bcf7f;_0x3a3e77[_0x566233(0xca)]===e[_0x566233(0xe3)][_0x566233(0xd4)]&&this[_0x566233(0xd1)](this['Event'][_0x566233(0xd4)],_0x3a3e77[_0x566233(0xed)]);}))),this['registerEventHandler'](this['Event'][_0x3bcf7f(0xcc)],()=>l[_0x3bcf7f(0xe9)](_0x5dddb4['event$'][_0x3bcf7f(0xd0)](_0x4cd48a=>{const _0x4b61cd=_0x3bcf7f;_0x4cd48a[_0x4b61cd(0xca)]===e['MCPEventId']['McpToolCallFailed']&&this[_0x4b61cd(0xd1)](this[_0x4b61cd(0xcd)]['McpToolCallFailed'],_0x4cd48a[_0x4b61cd(0xed)]);})));}['validateMCPToolCall'](_0x47c2eb,_0x52a0df){const _0x802f89=_0x25d5c9;return this[_0x802f89(0xdb)][_0x802f89(0xd3)](e[_0x802f89(0xc8)])['validateToolCall'](_0x47c2eb,_0x52a0df);}[_0x25d5c9(0xe2)](){const _0x1ef6d0=_0x25d5c9;return this[_0x1ef6d0(0xdb)][_0x1ef6d0(0xd3)](e[_0x1ef6d0(0xc8)])['getAllTools']();}['callMCPTool'](_0xd142be,_0x43cbcc){const _0x323d6c=_0x25d5c9;return this['_injector']['get'](e[_0x323d6c(0xc8)])['executeTool'](_0xd142be,_0x43cbcc);}['getMCPConnectionStatus'](){const _0x456a18=_0x25d5c9;return this[_0x456a18(0xdb)][_0x456a18(0xd3)](e[_0x456a18(0xdd)])[_0x456a18(0xce)]();}[_0x25d5c9(0xec)](){const _0x196771=_0x25d5c9;this[_0x196771(0xdb)][_0x196771(0xd3)](e[_0x196771(0xdd)])['connect']();}[_0x25d5c9(0xe4)](){const _0x3d3730=_0x25d5c9;this[_0x3d3730(0xdb)][_0x3d3730(0xd3)](e[_0x3d3730(0xdd)])[_0x3d3730(0xcf)]();}}i[_0x25d5c9(0xd9)][_0x25d5c9(0xe8)](s);function _0x1259(){const _0x5d969e=['8eAsXhN','3348CpYGTA','connectMCP','data','IMCPToolRegistry','23705363luqmLz','type','4dXEHBe','McpToolCallFailed','Event','getConnectionStatus','disconnect','subscribe','fireEvent','_registerMCPFacadeEvents','get','McpToolCallExecuted','216765vAeNLH','1667934rXFFGG','_initialize','3849181YujtDw','FUniver','4BpAuNR','_injector','1589109WuhbZV','MCPConnectionController','event$','71366gaJkNk','registerEventHandler','McpConnectionStatusChanged','getAllMCPTools','MCPEventId','disconnectMCP','30290LZuNlW','MCPEventService','McpToolCallReceived','extend','toDisposable'];_0x1259=function(){return _0x5d969e;};return _0x1259();}