@univerjs-pro/mcp 0.15.2 → 0.15.3-insiders.20260131-b9b8805

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(_0x1643e2,_0x4a99fb){const _0x194e92=_0x3146,_0x5253c7=_0x1643e2();while(!![]){try{const _0x2bf509=-parseInt(_0x194e92(0xe5))/0x1*(parseInt(_0x194e92(0xfa))/0x2)+-parseInt(_0x194e92(0x10b))/0x3*(parseInt(_0x194e92(0xe3))/0x4)+parseInt(_0x194e92(0xf3))/0x5*(-parseInt(_0x194e92(0x105))/0x6)+parseInt(_0x194e92(0xf8))/0x7+-parseInt(_0x194e92(0xe6))/0x8*(-parseInt(_0x194e92(0xe0))/0x9)+parseInt(_0x194e92(0xeb))/0xa*(parseInt(_0x194e92(0xfe))/0xb)+-parseInt(_0x194e92(0x10f))/0xc;if(_0x2bf509===_0x4a99fb)break;else _0x5253c7['push'](_0x5253c7['shift']());}catch(_0x315523){_0x5253c7['push'](_0x5253c7['shift']());}}}(_0x1864,0x2d7b3),function(_0x2f984c,_0x5498d2){const _0x207e50=_0x3146;typeof exports==_0x207e50(0xf1)&&typeof module<'u'?_0x5498d2(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x207e50(0x10a)&&define['amd']?define([_0x207e50(0x100),_0x207e50(0xf5),_0x207e50(0xec)],_0x5498d2):(_0x2f984c=typeof globalThis<'u'?globalThis:_0x2f984c||self,_0x5498d2(_0x2f984c[_0x207e50(0xfc)],_0x2f984c['UniverCoreFacade'],_0x2f984c[_0x207e50(0xf7)]));}(this,function(_0x2b16cb,_0x1d0347,_0x4d2a03){'use strict';const _0x638b8a=_0x3146;class _0x28035c{get['McpConnectionStatusChanged'](){const _0x484060=_0x3146;return _0x2b16cb[_0x484060(0xdf)]['McpConnectionStatusChanged'];}get['McpToolCallReceived'](){const _0x1284db=_0x3146;return _0x2b16cb[_0x1284db(0xdf)][_0x1284db(0xf2)];}get[_0x638b8a(0x107)](){const _0x365da3=_0x638b8a;return _0x2b16cb[_0x365da3(0xdf)][_0x365da3(0x107)];}get['McpToolCallFailed'](){const _0x26be44=_0x638b8a;return _0x2b16cb[_0x26be44(0xdf)][_0x26be44(0xe9)];}}_0x1d0347['FEventName'][_0x638b8a(0x10e)](_0x28035c);class _0x311f07 extends _0x1d0347[_0x638b8a(0xe2)]{[_0x638b8a(0x102)](_0x55e59a){const _0x1b4895=_0x638b8a;this[_0x1b4895(0xe7)](_0x55e59a);}[_0x638b8a(0xe7)](_0x5a0759){const _0x3b0d4b=_0x638b8a,_0x3f372e=_0x5a0759[_0x3b0d4b(0x106)](_0x2b16cb[_0x3b0d4b(0xfd)]);this['registerEventHandler'](this[_0x3b0d4b(0xfb)][_0x3b0d4b(0xef)],()=>_0x4d2a03[_0x3b0d4b(0xe4)](_0x3f372e[_0x3b0d4b(0xe1)][_0x3b0d4b(0xe8)](_0x4e1642=>{const _0x57db22=_0x3b0d4b;_0x4e1642[_0x57db22(0xff)]===_0x2b16cb[_0x57db22(0xdf)][_0x57db22(0xef)]&&this[_0x57db22(0x103)](this[_0x57db22(0xfb)][_0x57db22(0xef)],_0x4e1642[_0x57db22(0xea)]);}))),this[_0x3b0d4b(0x109)](this[_0x3b0d4b(0xfb)]['McpToolCallReceived'],()=>_0x4d2a03['toDisposable'](_0x3f372e['event$']['subscribe'](_0x276e22=>{const _0x547f17=_0x3b0d4b;_0x276e22[_0x547f17(0xff)]===_0x2b16cb['MCPEventId'][_0x547f17(0xf2)]&&this[_0x547f17(0x103)](this['Event'][_0x547f17(0xf2)],_0x276e22['data']);}))),this[_0x3b0d4b(0x109)](this[_0x3b0d4b(0xfb)]['McpToolCallExecuted'],()=>_0x4d2a03[_0x3b0d4b(0xe4)](_0x3f372e[_0x3b0d4b(0xe1)][_0x3b0d4b(0xe8)](_0x25eaf0=>{const _0x354382=_0x3b0d4b;_0x25eaf0['type']===_0x2b16cb['MCPEventId'][_0x354382(0x107)]&&this[_0x354382(0x103)](this[_0x354382(0xfb)][_0x354382(0x107)],_0x25eaf0[_0x354382(0xea)]);}))),this[_0x3b0d4b(0x109)](this[_0x3b0d4b(0xfb)][_0x3b0d4b(0xe9)],()=>_0x4d2a03['toDisposable'](_0x3f372e[_0x3b0d4b(0xe1)][_0x3b0d4b(0xe8)](_0x119d0e=>{const _0x2fede3=_0x3b0d4b;_0x119d0e[_0x2fede3(0xff)]===_0x2b16cb[_0x2fede3(0xdf)]['McpToolCallFailed']&&this['fireEvent'](this[_0x2fede3(0xfb)]['McpToolCallFailed'],_0x119d0e['data']);})));}[_0x638b8a(0x108)](_0x2c1343,_0x1f07a3){const _0x2de96d=_0x638b8a;return this['_injector'][_0x2de96d(0x106)](_0x2b16cb['IMCPToolRegistry'])[_0x2de96d(0x101)](_0x2c1343,_0x1f07a3);}['getAllMCPTools'](){const _0x2779d8=_0x638b8a;return this[_0x2779d8(0x10c)][_0x2779d8(0x106)](_0x2b16cb[_0x2779d8(0x104)])[_0x2779d8(0xf9)]();}[_0x638b8a(0xf0)](_0x11b0ad,_0x39e933){const _0x3ed81b=_0x638b8a;return this[_0x3ed81b(0x10c)]['get'](_0x2b16cb['IMCPToolRegistry'])[_0x3ed81b(0xf6)](_0x11b0ad,_0x39e933);}[_0x638b8a(0xed)](){const _0x4e4144=_0x638b8a;return this[_0x4e4144(0x10c)][_0x4e4144(0x106)](_0x2b16cb[_0x4e4144(0xf4)])[_0x4e4144(0xee)]();}[_0x638b8a(0x10d)](){const _0x104461=_0x638b8a;this[_0x104461(0x10c)][_0x104461(0x106)](_0x2b16cb[_0x104461(0xf4)])['connect']();}['disconnectMCP'](){const _0x1af5c3=_0x638b8a;this[_0x1af5c3(0x10c)][_0x1af5c3(0x106)](_0x2b16cb['MCPConnectionController'])['disconnect']();}}_0x1d0347[_0x638b8a(0xe2)][_0x638b8a(0x10e)](_0x311f07);}));function _0x3146(_0x42913d,_0xe5b317){_0x42913d=_0x42913d-0xdf;const _0x1864ce=_0x1864();let _0x314632=_0x1864ce[_0x42913d];return _0x314632;}function _0x1864(){const _0x7f3b7a=['2362339hGffbh','getAllTools','2fEltHu','Event','UniverProMcp','MCPEventService','24211Mzipit','type','@univerjs-pro/mcp','validateToolCall','_initialize','fireEvent','IMCPToolRegistry','60XxEAMu','get','McpToolCallExecuted','validateMCPToolCall','registerEventHandler','function','6009hEsErP','_injector','connectMCP','extend','1488792Ylnovd','MCPEventId','18BFzdEo','event$','FUniver','68bkXSUM','toDisposable','301114bUMPaY','727976CojuwB','_registerMCPFacadeEvents','subscribe','McpToolCallFailed','data','1410FmBJRQ','@univerjs/core','getMCPConnectionStatus','getConnectionStatus','McpConnectionStatusChanged','callMCPTool','object','McpToolCallReceived','92145ZKOUZs','MCPConnectionController','@univerjs/core/facade','executeTool','UniverCore'];_0x1864=function(){return _0x7f3b7a;};return _0x1864();}
1
+ function _0x1044(_0x404713,_0x1495af){_0x404713=_0x404713-0x185;const _0x27b653=_0x27b6();let _0x104433=_0x27b653[_0x404713];return _0x104433;}function _0x27b6(){const _0x5d2cb9=['FUniver','FEventName','object','MCPEventId','amd','1770044LMnKwu','927CMPlVU','get','validateMCPToolCall','disposeWithMe','toDisposable','MCPConnectionController','callMCPTool','fireEvent','838635yWlGde','788473lzrXRv','@univerjs/core/facade','792903uFNkcj','3363636vePSVf','76088dyjosm','data','event$','executeTool','@univerjs-pro/mcp','@univerjs/core','Event','22410050DEirhG','_injector','4XegGrV','validateToolCall','McpToolCallFailed','UniverCoreFacade','McpToolCallExecuted','McpConnectionStatusChanged','registerEventHandler','getAllMCPTools','disconnect','subscribe','8pzXihs','McpToolCallReceived','_registerMCPFacadeEvents','extend','UniverProMcp','type','IMCPToolRegistry'];_0x27b6=function(){return _0x5d2cb9;};return _0x27b6();}(function(_0x4862a1,_0x33977d){const _0x22f507=_0x1044,_0xf28625=_0x4862a1();while(!![]){try{const _0x1d489d=-parseInt(_0x22f507(0x190))/0x1+parseInt(_0x22f507(0x1a7))/0x2*(parseInt(_0x22f507(0x19c))/0x3)+-parseInt(_0x22f507(0x1b1))/0x4*(parseInt(_0x22f507(0x199))/0x5)+-parseInt(_0x22f507(0x19d))/0x6+-parseInt(_0x22f507(0x19a))/0x7+parseInt(_0x22f507(0x19e))/0x8*(parseInt(_0x22f507(0x191))/0x9)+parseInt(_0x22f507(0x1a5))/0xa;if(_0x1d489d===_0x33977d)break;else _0xf28625['push'](_0xf28625['shift']());}catch(_0x489258){_0xf28625['push'](_0xf28625['shift']());}}}(_0x27b6,0xecf01),function(_0x299711,_0x17572a){const _0x46fe2e=_0x1044;typeof exports==_0x46fe2e(0x18d)&&typeof module<'u'?_0x17572a(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define=='function'&&define[_0x46fe2e(0x18f)]?define([_0x46fe2e(0x1a2),_0x46fe2e(0x19b),_0x46fe2e(0x1a3)],_0x17572a):(_0x299711=typeof globalThis<'u'?globalThis:_0x299711||self,_0x17572a(_0x299711[_0x46fe2e(0x188)],_0x299711[_0x46fe2e(0x1aa)],_0x299711['UniverCore']));}(this,function(_0x51e1e0,_0x4e3ead,_0x40daf9){'use strict';const _0x40d0e9=_0x1044;class _0x56723b{get[_0x40d0e9(0x1ac)](){const _0xccdf34=_0x40d0e9;return _0x51e1e0[_0xccdf34(0x18e)][_0xccdf34(0x1ac)];}get[_0x40d0e9(0x185)](){const _0x1aabd4=_0x40d0e9;return _0x51e1e0[_0x1aabd4(0x18e)][_0x1aabd4(0x185)];}get[_0x40d0e9(0x1ab)](){const _0x1488a6=_0x40d0e9;return _0x51e1e0[_0x1488a6(0x18e)][_0x1488a6(0x1ab)];}get['McpToolCallFailed'](){const _0xd10d0f=_0x40d0e9;return _0x51e1e0[_0xd10d0f(0x18e)][_0xd10d0f(0x1a9)];}}_0x4e3ead[_0x40d0e9(0x18c)]['extend'](_0x56723b);class _0x4e218c extends _0x4e3ead[_0x40d0e9(0x18b)]{['_initialize'](_0x1244da){this['_registerMCPFacadeEvents'](_0x1244da);}[_0x40d0e9(0x186)](_0x328f90){const _0x2914f7=_0x40d0e9,_0x5edeec=_0x328f90['get'](_0x51e1e0['MCPEventService']);this['disposeWithMe'](this[_0x2914f7(0x1ad)](this[_0x2914f7(0x1a4)][_0x2914f7(0x1ac)],()=>_0x40daf9['toDisposable'](_0x5edeec[_0x2914f7(0x1a0)][_0x2914f7(0x1b0)](_0x14bfcb=>{const _0x1748eb=_0x2914f7;_0x14bfcb[_0x1748eb(0x189)]===_0x51e1e0[_0x1748eb(0x18e)][_0x1748eb(0x1ac)]&&this[_0x1748eb(0x198)](this[_0x1748eb(0x1a4)][_0x1748eb(0x1ac)],_0x14bfcb[_0x1748eb(0x19f)]);})))),this[_0x2914f7(0x194)](this['registerEventHandler'](this[_0x2914f7(0x1a4)]['McpToolCallReceived'],()=>_0x40daf9['toDisposable'](_0x5edeec[_0x2914f7(0x1a0)][_0x2914f7(0x1b0)](_0x28f37b=>{const _0x26f799=_0x2914f7;_0x28f37b[_0x26f799(0x189)]===_0x51e1e0['MCPEventId'][_0x26f799(0x185)]&&this[_0x26f799(0x198)](this['Event'][_0x26f799(0x185)],_0x28f37b['data']);})))),this['disposeWithMe'](this[_0x2914f7(0x1ad)](this['Event'][_0x2914f7(0x1ab)],()=>_0x40daf9[_0x2914f7(0x195)](_0x5edeec[_0x2914f7(0x1a0)][_0x2914f7(0x1b0)](_0x56177f=>{const _0x1dcf7a=_0x2914f7;_0x56177f[_0x1dcf7a(0x189)]===_0x51e1e0[_0x1dcf7a(0x18e)][_0x1dcf7a(0x1ab)]&&this['fireEvent'](this[_0x1dcf7a(0x1a4)][_0x1dcf7a(0x1ab)],_0x56177f[_0x1dcf7a(0x19f)]);})))),this[_0x2914f7(0x194)](this[_0x2914f7(0x1ad)](this[_0x2914f7(0x1a4)][_0x2914f7(0x1a9)],()=>_0x40daf9[_0x2914f7(0x195)](_0x5edeec[_0x2914f7(0x1a0)][_0x2914f7(0x1b0)](_0x4eb4e4=>{const _0x39e27a=_0x2914f7;_0x4eb4e4['type']===_0x51e1e0[_0x39e27a(0x18e)][_0x39e27a(0x1a9)]&&this[_0x39e27a(0x198)](this[_0x39e27a(0x1a4)]['McpToolCallFailed'],_0x4eb4e4[_0x39e27a(0x19f)]);}))));}[_0x40d0e9(0x193)](_0x5ed4fc,_0x526dd2){const _0x1ea39c=_0x40d0e9;return this['_injector'][_0x1ea39c(0x192)](_0x51e1e0[_0x1ea39c(0x18a)])[_0x1ea39c(0x1a8)](_0x5ed4fc,_0x526dd2);}[_0x40d0e9(0x1ae)](){const _0x4cc9b8=_0x40d0e9;return this['_injector'][_0x4cc9b8(0x192)](_0x51e1e0[_0x4cc9b8(0x18a)])['getAllTools']();}[_0x40d0e9(0x197)](_0x3088b4,_0x2e6f15){const _0x427d28=_0x40d0e9;return this[_0x427d28(0x1a6)][_0x427d28(0x192)](_0x51e1e0['IMCPToolRegistry'])[_0x427d28(0x1a1)](_0x3088b4,_0x2e6f15);}['getMCPConnectionStatus'](){const _0x35e14f=_0x40d0e9;return this[_0x35e14f(0x1a6)]['get'](_0x51e1e0[_0x35e14f(0x196)])['getConnectionStatus']();}['connectMCP'](){const _0x1cc256=_0x40d0e9;this[_0x1cc256(0x1a6)][_0x1cc256(0x192)](_0x51e1e0[_0x1cc256(0x196)])['connect']();}['disconnectMCP'](){const _0xf380fd=_0x40d0e9;this[_0xf380fd(0x1a6)][_0xf380fd(0x192)](_0x51e1e0[_0xf380fd(0x196)])[_0xf380fd(0x1af)]();}}_0x4e3ead[_0x40d0e9(0x18b)][_0x40d0e9(0x187)](_0x4e218c);}));