@univerjs-pro/mcp 0.12.2-experimental.20251201-5b27b55 → 0.12.2-experimental.20251202-45172c6

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 _0x4605(_0x507af3,_0x567440){const _0x52aac7=_0x52aa();return _0x4605=function(_0x4605db,_0x436a9e){_0x4605db=_0x4605db-0x138;let _0x1585e4=_0x52aac7[_0x4605db];return _0x1585e4;},_0x4605(_0x507af3,_0x567440);}function _0x52aa(){const _0x1b4742=['toDisposable','event$','disconnectMCP','134584CkeEKE','12wzZDeo','getAllMCPTools','1541749Juekgp','_injector','executeTool','getConnectionStatus','data','McpConnectionStatusChanged','UniverCore','9525DqLsEp','McpToolCallExecuted','1095165tKcDQW','MCPConnectionController','McpToolCallReceived','Event','registerEventHandler','130tjjrYf','FEventName','validateMCPToolCall','27582lqEDfw','UniverProMcp','@univerjs/core','@univerjs-pro/mcp','extend','212SgadHW','function','IMCPToolRegistry','FUniver','21kHcNKv','subscribe','241894xXVknI','McpToolCallFailed','disconnect','30Geawac','MCPEventId','fireEvent','get','84644XwamPP','type','connect','object','_registerMCPFacadeEvents'];_0x52aa=function(){return _0x1b4742;};return _0x52aa();}(function(_0x462d3a,_0x562296){const _0x235fe0=_0x4605,_0x1246ca=_0x462d3a();while(!![]){try{const _0x24b9a9=parseInt(_0x235fe0(0x14a))/0x1+-parseInt(_0x235fe0(0x143))/0x2+-parseInt(_0x235fe0(0x15c))/0x3*(-parseInt(_0x235fe0(0x13d))/0x4)+-parseInt(_0x235fe0(0x163))/0x5*(parseInt(_0x235fe0(0x138))/0x6)+-parseInt(_0x235fe0(0x141))/0x7*(parseInt(_0x235fe0(0x152))/0x8)+-parseInt(_0x235fe0(0x15e))/0x9*(-parseInt(_0x235fe0(0x146))/0xa)+parseInt(_0x235fe0(0x155))/0xb*(-parseInt(_0x235fe0(0x153))/0xc);if(_0x24b9a9===_0x562296)break;else _0x1246ca['push'](_0x1246ca['shift']());}catch(_0x183bb3){_0x1246ca['push'](_0x1246ca['shift']());}}}(_0x52aa,0x2d9fd),function(_0x24a04d,_0x5bfc48){const _0x383487=_0x4605;typeof exports==_0x383487(0x14d)&&typeof module<'u'?_0x5bfc48(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x383487(0x13e)&&define['amd']?define([_0x383487(0x13b),'@univerjs/core/facade',_0x383487(0x13a)],_0x5bfc48):(_0x24a04d=typeof globalThis<'u'?globalThis:_0x24a04d||self,_0x5bfc48(_0x24a04d[_0x383487(0x139)],_0x24a04d['UniverCoreFacade'],_0x24a04d[_0x383487(0x15b)]));}(this,function(_0x3e3bc7,_0x17c544,_0x27ef2e){'use strict';const _0x1cf59f=_0x4605;class _0x3a89d6{get[_0x1cf59f(0x15a)](){const _0x4ffa9d=_0x1cf59f;return _0x3e3bc7['MCPEventId'][_0x4ffa9d(0x15a)];}get[_0x1cf59f(0x160)](){const _0x4e6676=_0x1cf59f;return _0x3e3bc7[_0x4e6676(0x147)][_0x4e6676(0x160)];}get[_0x1cf59f(0x15d)](){const _0xcdd15f=_0x1cf59f;return _0x3e3bc7['MCPEventId'][_0xcdd15f(0x15d)];}get['McpToolCallFailed'](){const _0x22b1d4=_0x1cf59f;return _0x3e3bc7[_0x22b1d4(0x147)][_0x22b1d4(0x144)];}}_0x17c544[_0x1cf59f(0x164)][_0x1cf59f(0x13c)](_0x3a89d6);class _0x1ea160 extends _0x17c544[_0x1cf59f(0x140)]{['_initialize'](_0x1f67e5){const _0x1325c9=_0x1cf59f;this[_0x1325c9(0x14e)](_0x1f67e5);}[_0x1cf59f(0x14e)](_0x2dd2bd){const _0xa208f3=_0x1cf59f,_0x20a23a=_0x2dd2bd['get'](_0x3e3bc7['MCPEventService']);this[_0xa208f3(0x162)](this[_0xa208f3(0x161)]['McpConnectionStatusChanged'],()=>_0x27ef2e[_0xa208f3(0x14f)](_0x20a23a['event$']['subscribe'](_0x9ce5e6=>{const _0x13779a=_0xa208f3;_0x9ce5e6['type']===_0x3e3bc7[_0x13779a(0x147)][_0x13779a(0x15a)]&&this[_0x13779a(0x148)](this[_0x13779a(0x161)][_0x13779a(0x15a)],_0x9ce5e6['data']);}))),this[_0xa208f3(0x162)](this[_0xa208f3(0x161)][_0xa208f3(0x160)],()=>_0x27ef2e['toDisposable'](_0x20a23a[_0xa208f3(0x150)][_0xa208f3(0x142)](_0xed990d=>{const _0x52f9ea=_0xa208f3;_0xed990d[_0x52f9ea(0x14b)]===_0x3e3bc7[_0x52f9ea(0x147)][_0x52f9ea(0x160)]&&this['fireEvent'](this['Event'][_0x52f9ea(0x160)],_0xed990d[_0x52f9ea(0x159)]);}))),this[_0xa208f3(0x162)](this[_0xa208f3(0x161)][_0xa208f3(0x15d)],()=>_0x27ef2e[_0xa208f3(0x14f)](_0x20a23a[_0xa208f3(0x150)][_0xa208f3(0x142)](_0x4e18cb=>{const _0x544589=_0xa208f3;_0x4e18cb[_0x544589(0x14b)]===_0x3e3bc7[_0x544589(0x147)]['McpToolCallExecuted']&&this[_0x544589(0x148)](this[_0x544589(0x161)][_0x544589(0x15d)],_0x4e18cb[_0x544589(0x159)]);}))),this[_0xa208f3(0x162)](this['Event'][_0xa208f3(0x144)],()=>_0x27ef2e['toDisposable'](_0x20a23a[_0xa208f3(0x150)][_0xa208f3(0x142)](_0x468f6a=>{const _0x483a46=_0xa208f3;_0x468f6a['type']===_0x3e3bc7['MCPEventId'][_0x483a46(0x144)]&&this[_0x483a46(0x148)](this[_0x483a46(0x161)][_0x483a46(0x144)],_0x468f6a[_0x483a46(0x159)]);})));}[_0x1cf59f(0x165)](_0xd049f7,_0x33c6f0){const _0x4bc51c=_0x1cf59f;return this[_0x4bc51c(0x156)]['get'](_0x3e3bc7[_0x4bc51c(0x13f)])['validateToolCall'](_0xd049f7,_0x33c6f0);}[_0x1cf59f(0x154)](){const _0x1e129a=_0x1cf59f;return this[_0x1e129a(0x156)]['get'](_0x3e3bc7['IMCPToolRegistry'])['getAllTools']();}['callMCPTool'](_0x54ab1a,_0xd258bf){const _0x3b3c45=_0x1cf59f;return this['_injector'][_0x3b3c45(0x149)](_0x3e3bc7['IMCPToolRegistry'])[_0x3b3c45(0x157)](_0x54ab1a,_0xd258bf);}['getMCPConnectionStatus'](){const _0x1ca1c9=_0x1cf59f;return this['_injector'][_0x1ca1c9(0x149)](_0x3e3bc7['MCPConnectionController'])[_0x1ca1c9(0x158)]();}['connectMCP'](){const _0x372113=_0x1cf59f;this[_0x372113(0x156)][_0x372113(0x149)](_0x3e3bc7[_0x372113(0x15f)])[_0x372113(0x14c)]();}[_0x1cf59f(0x151)](){const _0xfe2862=_0x1cf59f;this[_0xfe2862(0x156)][_0xfe2862(0x149)](_0x3e3bc7[_0xfe2862(0x15f)])[_0xfe2862(0x145)]();}}_0x17c544[_0x1cf59f(0x140)][_0x1cf59f(0x13c)](_0x1ea160);}));
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);}));