@univerjs-pro/mcp 0.12.2-experimental.20251202-45172c6 → 0.12.2-experimental.20251202-7f1a98f

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/umd/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x7137(){const _0x17d850=['McpToolCallFailed','disconnect','@univerjs/core','object','_injector','FEventName','registerEventHandler','928378SSGFrw','_initialize','getConnectionStatus','executeTool','McpToolCallReceived','subscribe','MCPConnectionController','11150eyjIfi','28IubcLJ','validateToolCall','get','UniverCore','event$','fireEvent','McpToolCallExecuted','data','getAllMCPTools','IMCPToolRegistry','99034vEJdYF','toDisposable','validateMCPToolCall','getAllTools','6648uWPyQq','disconnectMCP','connect','extend','@univerjs-pro/mcp','UniverProMcp','UniverCoreFacade','65235GoXdkJ','Event','3170792kuabyE','_registerMCPFacadeEvents','function','type','11aTwnBA','getMCPConnectionStatus','5787FLiUUg','3ZSKbXw','917zamfWs','7725924ZXczTA','connectMCP','McpConnectionStatusChanged','@univerjs/core/facade','amd','MCPEventId'];_0x7137=function(){return _0x17d850;};return _0x7137();}function _0x5c7f(_0x592865,_0x384eba){const _0x7137a5=_0x7137();return _0x5c7f=function(_0x5c7f18,_0x155e72){_0x5c7f18=_0x5c7f18-0x131;let _0x57b0d3=_0x7137a5[_0x5c7f18];return _0x57b0d3;},_0x5c7f(_0x592865,_0x384eba);}(function(_0x5db7a2,_0x411313){const _0x45e97d=_0x5c7f,_0x8a94e5=_0x5db7a2();while(!![]){try{const _0x3d31f2=parseInt(_0x45e97d(0x13c))/0x1+parseInt(_0x45e97d(0x15f))/0x2*(-parseInt(_0x45e97d(0x150))/0x3)+-parseInt(_0x45e97d(0x132))/0x4*(parseInt(_0x45e97d(0x147))/0x5)+parseInt(_0x45e97d(0x140))/0x6*(-parseInt(_0x45e97d(0x151))/0x7)+-parseInt(_0x45e97d(0x149))/0x8+-parseInt(_0x45e97d(0x14f))/0x9*(-parseInt(_0x45e97d(0x131))/0xa)+-parseInt(_0x45e97d(0x14d))/0xb*(-parseInt(_0x45e97d(0x152))/0xc);if(_0x3d31f2===_0x411313)break;else _0x8a94e5['push'](_0x8a94e5['shift']());}catch(_0x54e0c9){_0x8a94e5['push'](_0x8a94e5['shift']());}}}(_0x7137,0x58927),function(_0x284514,_0x105c53){const _0x2abb7c=_0x5c7f;typeof exports==_0x2abb7c(0x15b)&&typeof module<'u'?_0x105c53(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x2abb7c(0x14b)&&define[_0x2abb7c(0x156)]?define([_0x2abb7c(0x144),_0x2abb7c(0x155),_0x2abb7c(0x15a)],_0x105c53):(_0x284514=typeof globalThis<'u'?globalThis:_0x284514||self,_0x105c53(_0x284514[_0x2abb7c(0x145)],_0x284514[_0x2abb7c(0x146)],_0x284514[_0x2abb7c(0x135)]));}(this,function(_0x5617cc,_0x536d51,_0x5bcb31){'use strict';const _0x24388a=_0x5c7f;class _0x55deee{get[_0x24388a(0x154)](){const _0x12d17b=_0x24388a;return _0x5617cc[_0x12d17b(0x157)][_0x12d17b(0x154)];}get['McpToolCallReceived'](){const _0x1abca4=_0x24388a;return _0x5617cc[_0x1abca4(0x157)]['McpToolCallReceived'];}get[_0x24388a(0x138)](){return _0x5617cc['MCPEventId']['McpToolCallExecuted'];}get[_0x24388a(0x158)](){const _0x424c80=_0x24388a;return _0x5617cc['MCPEventId'][_0x424c80(0x158)];}}_0x536d51[_0x24388a(0x15d)][_0x24388a(0x143)](_0x55deee);class _0x2b1c77 extends _0x536d51['FUniver']{[_0x24388a(0x160)](_0x41cdf8){const _0x1d6cd9=_0x24388a;this[_0x1d6cd9(0x14a)](_0x41cdf8);}['_registerMCPFacadeEvents'](_0x2fefe6){const _0x4917b8=_0x24388a,_0x2d39d8=_0x2fefe6[_0x4917b8(0x134)](_0x5617cc['MCPEventService']);this[_0x4917b8(0x15e)](this[_0x4917b8(0x148)][_0x4917b8(0x154)],()=>_0x5bcb31[_0x4917b8(0x13d)](_0x2d39d8['event$'][_0x4917b8(0x164)](_0x2cfcd6=>{const _0x38c702=_0x4917b8;_0x2cfcd6[_0x38c702(0x14c)]===_0x5617cc[_0x38c702(0x157)][_0x38c702(0x154)]&&this[_0x38c702(0x137)](this[_0x38c702(0x148)][_0x38c702(0x154)],_0x2cfcd6['data']);}))),this['registerEventHandler'](this['Event'][_0x4917b8(0x163)],()=>_0x5bcb31[_0x4917b8(0x13d)](_0x2d39d8[_0x4917b8(0x136)][_0x4917b8(0x164)](_0x58cbbb=>{const _0x298e6d=_0x4917b8;_0x58cbbb[_0x298e6d(0x14c)]===_0x5617cc[_0x298e6d(0x157)][_0x298e6d(0x163)]&&this[_0x298e6d(0x137)](this[_0x298e6d(0x148)][_0x298e6d(0x163)],_0x58cbbb['data']);}))),this[_0x4917b8(0x15e)](this[_0x4917b8(0x148)][_0x4917b8(0x138)],()=>_0x5bcb31['toDisposable'](_0x2d39d8[_0x4917b8(0x136)][_0x4917b8(0x164)](_0xd635b6=>{const _0x2a982a=_0x4917b8;_0xd635b6[_0x2a982a(0x14c)]===_0x5617cc[_0x2a982a(0x157)]['McpToolCallExecuted']&&this[_0x2a982a(0x137)](this[_0x2a982a(0x148)]['McpToolCallExecuted'],_0xd635b6[_0x2a982a(0x139)]);}))),this[_0x4917b8(0x15e)](this[_0x4917b8(0x148)][_0x4917b8(0x158)],()=>_0x5bcb31[_0x4917b8(0x13d)](_0x2d39d8[_0x4917b8(0x136)]['subscribe'](_0x5ae3b6=>{const _0x35ad04=_0x4917b8;_0x5ae3b6['type']===_0x5617cc['MCPEventId']['McpToolCallFailed']&&this[_0x35ad04(0x137)](this['Event']['McpToolCallFailed'],_0x5ae3b6[_0x35ad04(0x139)]);})));}[_0x24388a(0x13e)](_0x372f99,_0x3aa4ee){const _0x3eee2d=_0x24388a;return this[_0x3eee2d(0x15c)][_0x3eee2d(0x134)](_0x5617cc[_0x3eee2d(0x13b)])[_0x3eee2d(0x133)](_0x372f99,_0x3aa4ee);}[_0x24388a(0x13a)](){const _0x5ea993=_0x24388a;return this[_0x5ea993(0x15c)][_0x5ea993(0x134)](_0x5617cc['IMCPToolRegistry'])[_0x5ea993(0x13f)]();}['callMCPTool'](_0x3659e2,_0xc4bdd){const _0x5487f4=_0x24388a;return this[_0x5487f4(0x15c)]['get'](_0x5617cc['IMCPToolRegistry'])[_0x5487f4(0x162)](_0x3659e2,_0xc4bdd);}[_0x24388a(0x14e)](){const _0x38b757=_0x24388a;return this[_0x38b757(0x15c)]['get'](_0x5617cc[_0x38b757(0x165)])[_0x38b757(0x161)]();}[_0x24388a(0x153)](){const _0x367d29=_0x24388a;this['_injector'][_0x367d29(0x134)](_0x5617cc[_0x367d29(0x165)])[_0x367d29(0x142)]();}[_0x24388a(0x141)](){const _0x675272=_0x24388a;this[_0x675272(0x15c)][_0x675272(0x134)](_0x5617cc[_0x675272(0x165)])[_0x675272(0x159)]();}}_0x536d51['FUniver']['extend'](_0x2b1c77);}));
1
+ function _0xa1e3(_0x331ac0,_0x58ff27){const _0x30d337=_0x30d3();return _0xa1e3=function(_0xa1e3a0,_0x4ce2ab){_0xa1e3a0=_0xa1e3a0-0x15b;let _0x30bbfa=_0x30d337[_0xa1e3a0];return _0x30bbfa;},_0xa1e3(_0x331ac0,_0x58ff27);}(function(_0x25be44,_0x2fb22d){const _0x559035=_0xa1e3,_0x34c92c=_0x25be44();while(!![]){try{const _0x322313=parseInt(_0x559035(0x16d))/0x1*(-parseInt(_0x559035(0x160))/0x2)+-parseInt(_0x559035(0x17f))/0x3*(parseInt(_0x559035(0x164))/0x4)+-parseInt(_0x559035(0x189))/0x5+parseInt(_0x559035(0x163))/0x6*(parseInt(_0x559035(0x15c))/0x7)+parseInt(_0x559035(0x188))/0x8*(parseInt(_0x559035(0x176))/0x9)+parseInt(_0x559035(0x166))/0xa*(-parseInt(_0x559035(0x179))/0xb)+parseInt(_0x559035(0x170))/0xc;if(_0x322313===_0x2fb22d)break;else _0x34c92c['push'](_0x34c92c['shift']());}catch(_0x5eb235){_0x34c92c['push'](_0x34c92c['shift']());}}}(_0x30d3,0x86e24),function(_0x5410d3,_0x248e74){const _0x483058=_0xa1e3;typeof exports=='object'&&typeof module<'u'?_0x248e74(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define=='function'&&define[_0x483058(0x15f)]?define([_0x483058(0x177),_0x483058(0x174),_0x483058(0x16e)],_0x248e74):(_0x5410d3=typeof globalThis<'u'?globalThis:_0x5410d3||self,_0x248e74(_0x5410d3[_0x483058(0x17d)],_0x5410d3[_0x483058(0x168)],_0x5410d3[_0x483058(0x183)]));}(this,function(_0x36820b,_0x3260f8,_0x19c890){'use strict';const _0x239360=_0xa1e3;class _0x2f9b87{get[_0x239360(0x172)](){const _0x10e994=_0x239360;return _0x36820b[_0x10e994(0x18a)][_0x10e994(0x172)];}get['McpToolCallReceived'](){return _0x36820b['MCPEventId']['McpToolCallReceived'];}get[_0x239360(0x185)](){const _0xbce1f4=_0x239360;return _0x36820b[_0xbce1f4(0x18a)][_0xbce1f4(0x185)];}get[_0x239360(0x16f)](){const _0x25bb9b=_0x239360;return _0x36820b[_0x25bb9b(0x18a)]['McpToolCallFailed'];}}_0x3260f8[_0x239360(0x17c)][_0x239360(0x184)](_0x2f9b87);class _0x35eabd extends _0x3260f8[_0x239360(0x16a)]{[_0x239360(0x181)](_0x23561e){this['_registerMCPFacadeEvents'](_0x23561e);}['_registerMCPFacadeEvents'](_0x58151b){const _0x683fda=_0x239360,_0x1bc1fd=_0x58151b['get'](_0x36820b[_0x683fda(0x162)]);this['registerEventHandler'](this[_0x683fda(0x175)]['McpConnectionStatusChanged'],()=>_0x19c890[_0x683fda(0x165)](_0x1bc1fd[_0x683fda(0x178)]['subscribe'](_0x358990=>{const _0x56491c=_0x683fda;_0x358990[_0x56491c(0x17a)]===_0x36820b[_0x56491c(0x18a)][_0x56491c(0x172)]&&this[_0x56491c(0x15b)](this[_0x56491c(0x175)]['McpConnectionStatusChanged'],_0x358990['data']);}))),this[_0x683fda(0x16c)](this[_0x683fda(0x175)]['McpToolCallReceived'],()=>_0x19c890['toDisposable'](_0x1bc1fd[_0x683fda(0x178)]['subscribe'](_0x29a1bb=>{const _0x228744=_0x683fda;_0x29a1bb[_0x228744(0x17a)]===_0x36820b['MCPEventId'][_0x228744(0x173)]&&this[_0x228744(0x15b)](this[_0x228744(0x175)][_0x228744(0x173)],_0x29a1bb[_0x228744(0x161)]);}))),this[_0x683fda(0x16c)](this['Event'][_0x683fda(0x185)],()=>_0x19c890[_0x683fda(0x165)](_0x1bc1fd[_0x683fda(0x178)][_0x683fda(0x187)](_0xa4a3e2=>{const _0x227695=_0x683fda;_0xa4a3e2[_0x227695(0x17a)]===_0x36820b['MCPEventId'][_0x227695(0x185)]&&this[_0x227695(0x15b)](this[_0x227695(0x175)]['McpToolCallExecuted'],_0xa4a3e2[_0x227695(0x161)]);}))),this[_0x683fda(0x16c)](this[_0x683fda(0x175)][_0x683fda(0x16f)],()=>_0x19c890[_0x683fda(0x165)](_0x1bc1fd[_0x683fda(0x178)][_0x683fda(0x187)](_0x564c09=>{const _0x5b9bcb=_0x683fda;_0x564c09[_0x5b9bcb(0x17a)]===_0x36820b['MCPEventId']['McpToolCallFailed']&&this[_0x5b9bcb(0x15b)](this['Event'][_0x5b9bcb(0x16f)],_0x564c09[_0x5b9bcb(0x161)]);})));}[_0x239360(0x182)](_0x270bb2,_0x2865f1){const _0x4c3d81=_0x239360;return this[_0x4c3d81(0x17b)][_0x4c3d81(0x16b)](_0x36820b['IMCPToolRegistry'])[_0x4c3d81(0x180)](_0x270bb2,_0x2865f1);}[_0x239360(0x171)](){const _0x2bfeed=_0x239360;return this[_0x2bfeed(0x17b)][_0x2bfeed(0x16b)](_0x36820b[_0x2bfeed(0x167)])[_0x2bfeed(0x15d)]();}['callMCPTool'](_0x51fc39,_0x3a8510){const _0x333a3c=_0x239360;return this[_0x333a3c(0x17b)]['get'](_0x36820b[_0x333a3c(0x167)])['executeTool'](_0x51fc39,_0x3a8510);}['getMCPConnectionStatus'](){const _0x1a1b5a=_0x239360;return this[_0x1a1b5a(0x17b)][_0x1a1b5a(0x16b)](_0x36820b[_0x1a1b5a(0x15e)])['getConnectionStatus']();}[_0x239360(0x17e)](){const _0x4c6dbe=_0x239360;this[_0x4c6dbe(0x17b)][_0x4c6dbe(0x16b)](_0x36820b[_0x4c6dbe(0x15e)])[_0x4c6dbe(0x186)]();}[_0x239360(0x169)](){const _0x2e6b30=_0x239360;this[_0x2e6b30(0x17b)][_0x2e6b30(0x16b)](_0x36820b[_0x2e6b30(0x15e)])['disconnect']();}}_0x3260f8[_0x239360(0x16a)][_0x239360(0x184)](_0x35eabd);}));function _0x30d3(){const _0x2144e0=['1249947TSMkyr','validateToolCall','_initialize','validateMCPToolCall','UniverCore','extend','McpToolCallExecuted','connect','subscribe','696VTjECw','4752045YeZfGQ','MCPEventId','fireEvent','28eIkOQb','getAllTools','MCPConnectionController','amd','936842gLRaXI','data','MCPEventService','1287798cCzBZR','4eHfZxM','toDisposable','10xWefbD','IMCPToolRegistry','UniverCoreFacade','disconnectMCP','FUniver','get','registerEventHandler','1XHRLji','@univerjs/core','McpToolCallFailed','21828744FgkWkl','getAllMCPTools','McpConnectionStatusChanged','McpToolCallReceived','@univerjs/core/facade','Event','50364stwYlk','@univerjs-pro/mcp','event$','8541313pmfcid','type','_injector','FEventName','UniverProMcp','connectMCP'];_0x30d3=function(){return _0x2144e0;};return _0x30d3();}