@univerjs-pro/mcp 0.12.2-experimental.20251201-5b27b55 → 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 _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 _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();}