@univerjs-pro/mcp 0.13.0-insiders.20251218-2062647 → 0.13.0-insiders.20251223-857805c

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 _0x5d42(){const _0x32dadd=['fireEvent','subscribe','callMCPTool','toDisposable','UniverProMcp','693690DzlTvb','IMCPToolRegistry','687lgNATZ','validateMCPToolCall','419157hTCGdn','FEventName','_registerMCPFacadeEvents','object','McpConnectionStatusChanged','amd','MCPConnectionController','7YdVPEv','getAllMCPTools','extend','McpToolCallExecuted','Event','validateToolCall','event$','function','MCPEventId','McpToolCallReceived','get','getAllTools','3513145tEIWxw','disconnectMCP','UniverCoreFacade','getConnectionStatus','10460752UYxhhI','MCPEventService','15508GDctvq','UniverCore','data','connectMCP','_injector','7901718JEpusH','2049566pnVGUb','@univerjs/core/facade','@univerjs-pro/mcp','registerEventHandler','type','disconnect','McpToolCallFailed'];_0x5d42=function(){return _0x32dadd;};return _0x5d42();}function _0x1dd1(_0x311d35,_0x30cb92){_0x311d35=_0x311d35-0x16d;const _0x5d4247=_0x5d42();let _0x1dd10c=_0x5d4247[_0x311d35];return _0x1dd10c;}(function(_0x2430b3,_0x5f5882){const _0x217eee=_0x1dd1,_0x47fbec=_0x2430b3();while(!![]){try{const _0x30c2a0=parseInt(_0x217eee(0x17c))/0x1+-parseInt(_0x217eee(0x170))/0x2+-parseInt(_0x217eee(0x17e))/0x3*(parseInt(_0x217eee(0x199))/0x4)+-parseInt(_0x217eee(0x193))/0x5+-parseInt(_0x217eee(0x16f))/0x6*(-parseInt(_0x217eee(0x187))/0x7)+parseInt(_0x217eee(0x197))/0x8+parseInt(_0x217eee(0x180))/0x9;if(_0x30c2a0===_0x5f5882)break;else _0x47fbec['push'](_0x47fbec['shift']());}catch(_0x49bdd7){_0x47fbec['push'](_0x47fbec['shift']());}}}(_0x5d42,0xb6ffd),function(_0x1de943,_0x331e19){const _0x4ba49d=_0x1dd1;typeof exports==_0x4ba49d(0x183)&&typeof module<'u'?_0x331e19(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x4ba49d(0x18e)&&define[_0x4ba49d(0x185)]?define([_0x4ba49d(0x172),_0x4ba49d(0x171),'@univerjs/core'],_0x331e19):(_0x1de943=typeof globalThis<'u'?globalThis:_0x1de943||self,_0x331e19(_0x1de943[_0x4ba49d(0x17b)],_0x1de943[_0x4ba49d(0x195)],_0x1de943[_0x4ba49d(0x19a)]));}(this,function(_0x43db3d,_0x30b4f6,_0x40dac8){'use strict';const _0x58743d=_0x1dd1;class _0x26fec2{get[_0x58743d(0x184)](){const _0x1ac8f7=_0x58743d;return _0x43db3d[_0x1ac8f7(0x18f)][_0x1ac8f7(0x184)];}get[_0x58743d(0x190)](){const _0x144418=_0x58743d;return _0x43db3d[_0x144418(0x18f)]['McpToolCallReceived'];}get['McpToolCallExecuted'](){const _0x1a9b4e=_0x58743d;return _0x43db3d[_0x1a9b4e(0x18f)][_0x1a9b4e(0x18a)];}get[_0x58743d(0x176)](){const _0x5415c9=_0x58743d;return _0x43db3d['MCPEventId'][_0x5415c9(0x176)];}}_0x30b4f6[_0x58743d(0x181)][_0x58743d(0x189)](_0x26fec2);class _0x47e928 extends _0x30b4f6['FUniver']{['_initialize'](_0xa10696){const _0x2a64c9=_0x58743d;this[_0x2a64c9(0x182)](_0xa10696);}[_0x58743d(0x182)](_0x14941f){const _0xcf7ba1=_0x58743d,_0x4c01b1=_0x14941f['get'](_0x43db3d[_0xcf7ba1(0x198)]);this[_0xcf7ba1(0x173)](this[_0xcf7ba1(0x18b)][_0xcf7ba1(0x184)],()=>_0x40dac8[_0xcf7ba1(0x17a)](_0x4c01b1[_0xcf7ba1(0x18d)][_0xcf7ba1(0x178)](_0x238812=>{const _0x49c52f=_0xcf7ba1;_0x238812[_0x49c52f(0x174)]===_0x43db3d[_0x49c52f(0x18f)]['McpConnectionStatusChanged']&&this['fireEvent'](this[_0x49c52f(0x18b)]['McpConnectionStatusChanged'],_0x238812['data']);}))),this[_0xcf7ba1(0x173)](this[_0xcf7ba1(0x18b)][_0xcf7ba1(0x190)],()=>_0x40dac8[_0xcf7ba1(0x17a)](_0x4c01b1[_0xcf7ba1(0x18d)][_0xcf7ba1(0x178)](_0x56a164=>{const _0x201ebc=_0xcf7ba1;_0x56a164[_0x201ebc(0x174)]===_0x43db3d[_0x201ebc(0x18f)][_0x201ebc(0x190)]&&this['fireEvent'](this[_0x201ebc(0x18b)][_0x201ebc(0x190)],_0x56a164['data']);}))),this[_0xcf7ba1(0x173)](this['Event'][_0xcf7ba1(0x18a)],()=>_0x40dac8[_0xcf7ba1(0x17a)](_0x4c01b1['event$']['subscribe'](_0x403e1f=>{const _0x5ce67f=_0xcf7ba1;_0x403e1f[_0x5ce67f(0x174)]===_0x43db3d[_0x5ce67f(0x18f)][_0x5ce67f(0x18a)]&&this['fireEvent'](this['Event'][_0x5ce67f(0x18a)],_0x403e1f['data']);}))),this[_0xcf7ba1(0x173)](this['Event'][_0xcf7ba1(0x176)],()=>_0x40dac8[_0xcf7ba1(0x17a)](_0x4c01b1[_0xcf7ba1(0x18d)][_0xcf7ba1(0x178)](_0x53fd54=>{const _0x2fa9f1=_0xcf7ba1;_0x53fd54[_0x2fa9f1(0x174)]===_0x43db3d[_0x2fa9f1(0x18f)][_0x2fa9f1(0x176)]&&this[_0x2fa9f1(0x177)](this['Event'][_0x2fa9f1(0x176)],_0x53fd54[_0x2fa9f1(0x19b)]);})));}[_0x58743d(0x17f)](_0x1a89ed,_0x28b71b){const _0x19d613=_0x58743d;return this[_0x19d613(0x16e)]['get'](_0x43db3d[_0x19d613(0x17d)])[_0x19d613(0x18c)](_0x1a89ed,_0x28b71b);}[_0x58743d(0x188)](){const _0x5c0643=_0x58743d;return this[_0x5c0643(0x16e)][_0x5c0643(0x191)](_0x43db3d[_0x5c0643(0x17d)])[_0x5c0643(0x192)]();}[_0x58743d(0x179)](_0x2c7c3e,_0x5f18c5){const _0x727cc0=_0x58743d;return this[_0x727cc0(0x16e)][_0x727cc0(0x191)](_0x43db3d[_0x727cc0(0x17d)])['executeTool'](_0x2c7c3e,_0x5f18c5);}['getMCPConnectionStatus'](){const _0x32f540=_0x58743d;return this['_injector'][_0x32f540(0x191)](_0x43db3d['MCPConnectionController'])[_0x32f540(0x196)]();}[_0x58743d(0x16d)](){const _0x116455=_0x58743d;this[_0x116455(0x16e)][_0x116455(0x191)](_0x43db3d[_0x116455(0x186)])['connect']();}[_0x58743d(0x194)](){const _0x87d06f=_0x58743d;this[_0x87d06f(0x16e)]['get'](_0x43db3d[_0x87d06f(0x186)])[_0x87d06f(0x175)]();}}_0x30b4f6['FUniver'][_0x58743d(0x189)](_0x47e928);}));
1
+ (function(_0x1844ea,_0x3e83b8){const _0x2e3305=_0x51bb,_0x22542e=_0x1844ea();while(!![]){try{const _0x3e884e=parseInt(_0x2e3305(0x163))/0x1+-parseInt(_0x2e3305(0x17a))/0x2*(-parseInt(_0x2e3305(0x155))/0x3)+-parseInt(_0x2e3305(0x15d))/0x4+-parseInt(_0x2e3305(0x167))/0x5+parseInt(_0x2e3305(0x14f))/0x6+parseInt(_0x2e3305(0x15f))/0x7+parseInt(_0x2e3305(0x14d))/0x8*(-parseInt(_0x2e3305(0x174))/0x9);if(_0x3e884e===_0x3e83b8)break;else _0x22542e['push'](_0x22542e['shift']());}catch(_0x34bbfc){_0x22542e['push'](_0x22542e['shift']());}}}(_0x1e2a,0x457f6),function(_0xf05df6,_0x59b49c){const _0x40280d=_0x51bb;typeof exports==_0x40280d(0x179)&&typeof module<'u'?_0x59b49c(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x40280d(0x169)&&define[_0x40280d(0x177)]?define([_0x40280d(0x16d),_0x40280d(0x16b),_0x40280d(0x164)],_0x59b49c):(_0xf05df6=typeof globalThis<'u'?globalThis:_0xf05df6||self,_0x59b49c(_0xf05df6[_0x40280d(0x178)],_0xf05df6['UniverCoreFacade'],_0xf05df6[_0x40280d(0x15e)]));}(this,function(_0x1a49b7,_0x429891,_0x32dcbb){'use strict';const _0x988781=_0x51bb;class _0x253f04{get[_0x988781(0x150)](){const _0x3546ac=_0x988781;return _0x1a49b7[_0x3546ac(0x173)]['McpConnectionStatusChanged'];}get[_0x988781(0x15a)](){const _0x499c1f=_0x988781;return _0x1a49b7[_0x499c1f(0x173)][_0x499c1f(0x15a)];}get[_0x988781(0x158)](){const _0x28df62=_0x988781;return _0x1a49b7[_0x28df62(0x173)][_0x28df62(0x158)];}get[_0x988781(0x172)](){const _0x1d2f58=_0x988781;return _0x1a49b7['MCPEventId'][_0x1d2f58(0x172)];}}_0x429891['FEventName']['extend'](_0x253f04);class _0x200f69 extends _0x429891[_0x988781(0x168)]{[_0x988781(0x161)](_0x38daaf){this['_registerMCPFacadeEvents'](_0x38daaf);}['_registerMCPFacadeEvents'](_0x269ebd){const _0x17d31e=_0x988781,_0x2a7dc0=_0x269ebd['get'](_0x1a49b7['MCPEventService']);this['registerEventHandler'](this[_0x17d31e(0x156)][_0x17d31e(0x150)],()=>_0x32dcbb[_0x17d31e(0x175)](_0x2a7dc0[_0x17d31e(0x162)]['subscribe'](_0x313582=>{const _0x2bebdb=_0x17d31e;_0x313582[_0x2bebdb(0x16c)]===_0x1a49b7['MCPEventId'][_0x2bebdb(0x150)]&&this[_0x2bebdb(0x16f)](this[_0x2bebdb(0x156)][_0x2bebdb(0x150)],_0x313582[_0x2bebdb(0x151)]);}))),this[_0x17d31e(0x166)](this['Event'][_0x17d31e(0x15a)],()=>_0x32dcbb['toDisposable'](_0x2a7dc0[_0x17d31e(0x162)][_0x17d31e(0x171)](_0x7d0d9d=>{const _0x5ce0c8=_0x17d31e;_0x7d0d9d[_0x5ce0c8(0x16c)]===_0x1a49b7[_0x5ce0c8(0x173)][_0x5ce0c8(0x15a)]&&this[_0x5ce0c8(0x16f)](this[_0x5ce0c8(0x156)]['McpToolCallReceived'],_0x7d0d9d[_0x5ce0c8(0x151)]);}))),this['registerEventHandler'](this[_0x17d31e(0x156)]['McpToolCallExecuted'],()=>_0x32dcbb['toDisposable'](_0x2a7dc0[_0x17d31e(0x162)]['subscribe'](_0x364f81=>{const _0x47d206=_0x17d31e;_0x364f81[_0x47d206(0x16c)]===_0x1a49b7[_0x47d206(0x173)][_0x47d206(0x158)]&&this[_0x47d206(0x16f)](this[_0x47d206(0x156)]['McpToolCallExecuted'],_0x364f81[_0x47d206(0x151)]);}))),this[_0x17d31e(0x166)](this[_0x17d31e(0x156)][_0x17d31e(0x172)],()=>_0x32dcbb[_0x17d31e(0x175)](_0x2a7dc0[_0x17d31e(0x162)][_0x17d31e(0x171)](_0x4dff99=>{const _0x398203=_0x17d31e;_0x4dff99['type']===_0x1a49b7[_0x398203(0x173)]['McpToolCallFailed']&&this[_0x398203(0x16f)](this[_0x398203(0x156)]['McpToolCallFailed'],_0x4dff99[_0x398203(0x151)]);})));}['validateMCPToolCall'](_0x11da6e,_0x38c89e){const _0x4de20f=_0x988781;return this[_0x4de20f(0x170)][_0x4de20f(0x159)](_0x1a49b7[_0x4de20f(0x153)])['validateToolCall'](_0x11da6e,_0x38c89e);}[_0x988781(0x176)](){const _0xeeaed5=_0x988781;return this[_0xeeaed5(0x170)][_0xeeaed5(0x159)](_0x1a49b7[_0xeeaed5(0x153)])[_0xeeaed5(0x16a)]();}[_0x988781(0x15b)](_0x3dfc9b,_0x2480e6){const _0x1eb87e=_0x988781;return this[_0x1eb87e(0x170)][_0x1eb87e(0x159)](_0x1a49b7[_0x1eb87e(0x153)])[_0x1eb87e(0x165)](_0x3dfc9b,_0x2480e6);}[_0x988781(0x157)](){const _0x33b3a4=_0x988781;return this[_0x33b3a4(0x170)]['get'](_0x1a49b7['MCPConnectionController'])[_0x33b3a4(0x14e)]();}[_0x988781(0x160)](){const _0x5553c2=_0x988781;this[_0x5553c2(0x170)][_0x5553c2(0x159)](_0x1a49b7[_0x5553c2(0x15c)])['connect']();}[_0x988781(0x152)](){const _0x11f8bc=_0x988781;this[_0x11f8bc(0x170)][_0x11f8bc(0x159)](_0x1a49b7[_0x11f8bc(0x15c)])[_0x11f8bc(0x154)]();}}_0x429891['FUniver'][_0x988781(0x16e)](_0x200f69);}));function _0x51bb(_0x288107,_0x1097f1){_0x288107=_0x288107-0x14d;const _0x1e2a36=_0x1e2a();let _0x51bb89=_0x1e2a36[_0x288107];return _0x51bb89;}function _0x1e2a(){const _0x3712e6=['@univerjs/core','executeTool','registerEventHandler','1409440AMAkzt','FUniver','function','getAllTools','@univerjs/core/facade','type','@univerjs-pro/mcp','extend','fireEvent','_injector','subscribe','McpToolCallFailed','MCPEventId','99ZqJgsv','toDisposable','getAllMCPTools','amd','UniverProMcp','object','26dsnreQ','338776tyIJDa','getConnectionStatus','1084818fmwhXu','McpConnectionStatusChanged','data','disconnectMCP','IMCPToolRegistry','disconnect','85791jwHNDE','Event','getMCPConnectionStatus','McpToolCallExecuted','get','McpToolCallReceived','callMCPTool','MCPConnectionController','413776uKzGaz','UniverCore','3750593sYQuZe','connectMCP','_initialize','event$','47448hMjqTh'];_0x1e2a=function(){return _0x3712e6;};return _0x1e2a();}