@univerjs-pro/mcp 0.12.3-experimental.20251205-71d07c3 → 0.12.3-nightly.202512060617

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 _0x4dd5(){const _0x56544b=['21860TQOwDC','4377104LJXfAH','data','_initialize','McpConnectionStatusChanged','16295mfvxXA','_injector','@univerjs-pro/mcp','getMCPConnectionStatus','@univerjs/core','disconnectMCP','connectMCP','@univerjs/core/facade','subscribe','3740412peqcVj','McpToolCallReceived','extend','callMCPTool','4gbSyvH','FUniver','MCPEventId','toDisposable','registerEventHandler','validateMCPToolCall','UniverProMcp','function','get','executeTool','getAllMCPTools','IMCPToolRegistry','192630LicqSV','18008199AQZpPs','event$','McpToolCallExecuted','getConnectionStatus','130GbiAHF','_registerMCPFacadeEvents','object','fireEvent','McpToolCallFailed','FEventName','disconnect','UniverCoreFacade','MCPConnectionController','7gEDpnq','type','2634860aEwJXI','Event','1989HNBUsc'];_0x4dd5=function(){return _0x56544b;};return _0x4dd5();}function _0x195e(_0x4d1958,_0x2c9e52){_0x4d1958=_0x4d1958-0x136;const _0x4dd59a=_0x4dd5();let _0x195e78=_0x4dd59a[_0x4d1958];return _0x195e78;}(function(_0x59e664,_0x5760f8){const _0x3065de=_0x195e,_0x5d1195=_0x59e664();while(!![]){try{const _0x413070=parseInt(_0x3065de(0x157))/0x1*(-parseInt(_0x3065de(0x144))/0x2)+-parseInt(_0x3065de(0x13f))/0x3+parseInt(_0x3065de(0x164))/0x4*(-parseInt(_0x3065de(0x14f))/0x5)+parseInt(_0x3065de(0x160))/0x6+-parseInt(_0x3065de(0x14d))/0x7*(parseInt(_0x3065de(0x153))/0x8)+-parseInt(_0x3065de(0x151))/0x9*(-parseInt(_0x3065de(0x152))/0xa)+parseInt(_0x3065de(0x140))/0xb;if(_0x413070===_0x5760f8)break;else _0x5d1195['push'](_0x5d1195['shift']());}catch(_0x3abe60){_0x5d1195['push'](_0x5d1195['shift']());}}}(_0x4dd5,0x8554a),function(_0x34ed26,_0x184091){const _0x25a26e=_0x195e;typeof exports==_0x25a26e(0x146)&&typeof module<'u'?_0x184091(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x25a26e(0x13a)&&define['amd']?define([_0x25a26e(0x159),_0x25a26e(0x15e),_0x25a26e(0x15b)],_0x184091):(_0x34ed26=typeof globalThis<'u'?globalThis:_0x34ed26||self,_0x184091(_0x34ed26[_0x25a26e(0x139)],_0x34ed26[_0x25a26e(0x14b)],_0x34ed26['UniverCore']));}(this,function(_0x48298a,_0x16dcb9,_0x5619d5){'use strict';const _0x479cfb=_0x195e;class _0x4b92f3{get[_0x479cfb(0x156)](){const _0x2a4694=_0x479cfb;return _0x48298a['MCPEventId'][_0x2a4694(0x156)];}get[_0x479cfb(0x161)](){const _0x1fa13e=_0x479cfb;return _0x48298a[_0x1fa13e(0x166)]['McpToolCallReceived'];}get[_0x479cfb(0x142)](){const _0x1c50b6=_0x479cfb;return _0x48298a[_0x1c50b6(0x166)][_0x1c50b6(0x142)];}get['McpToolCallFailed'](){const _0x3e8eac=_0x479cfb;return _0x48298a[_0x3e8eac(0x166)][_0x3e8eac(0x148)];}}_0x16dcb9[_0x479cfb(0x149)]['extend'](_0x4b92f3);class _0x331b24 extends _0x16dcb9['FUniver']{[_0x479cfb(0x155)](_0x1f10c7){const _0x5e9329=_0x479cfb;this[_0x5e9329(0x145)](_0x1f10c7);}[_0x479cfb(0x145)](_0x4c1466){const _0x1901eb=_0x479cfb,_0x3de5e6=_0x4c1466['get'](_0x48298a['MCPEventService']);this[_0x1901eb(0x137)](this[_0x1901eb(0x150)][_0x1901eb(0x156)],()=>_0x5619d5['toDisposable'](_0x3de5e6[_0x1901eb(0x141)][_0x1901eb(0x15f)](_0x3b1262=>{const _0x2855d5=_0x1901eb;_0x3b1262[_0x2855d5(0x14e)]===_0x48298a['MCPEventId']['McpConnectionStatusChanged']&&this[_0x2855d5(0x147)](this[_0x2855d5(0x150)]['McpConnectionStatusChanged'],_0x3b1262[_0x2855d5(0x154)]);}))),this['registerEventHandler'](this[_0x1901eb(0x150)]['McpToolCallReceived'],()=>_0x5619d5[_0x1901eb(0x136)](_0x3de5e6[_0x1901eb(0x141)]['subscribe'](_0x3d3bc7=>{const _0x3e6654=_0x1901eb;_0x3d3bc7[_0x3e6654(0x14e)]===_0x48298a['MCPEventId'][_0x3e6654(0x161)]&&this[_0x3e6654(0x147)](this[_0x3e6654(0x150)]['McpToolCallReceived'],_0x3d3bc7[_0x3e6654(0x154)]);}))),this[_0x1901eb(0x137)](this[_0x1901eb(0x150)]['McpToolCallExecuted'],()=>_0x5619d5[_0x1901eb(0x136)](_0x3de5e6['event$'][_0x1901eb(0x15f)](_0x19824f=>{const _0x6d261b=_0x1901eb;_0x19824f['type']===_0x48298a[_0x6d261b(0x166)]['McpToolCallExecuted']&&this[_0x6d261b(0x147)](this['Event'][_0x6d261b(0x142)],_0x19824f[_0x6d261b(0x154)]);}))),this[_0x1901eb(0x137)](this[_0x1901eb(0x150)][_0x1901eb(0x148)],()=>_0x5619d5[_0x1901eb(0x136)](_0x3de5e6['event$'][_0x1901eb(0x15f)](_0x481562=>{const _0x2b42a2=_0x1901eb;_0x481562[_0x2b42a2(0x14e)]===_0x48298a['MCPEventId'][_0x2b42a2(0x148)]&&this[_0x2b42a2(0x147)](this[_0x2b42a2(0x150)][_0x2b42a2(0x148)],_0x481562[_0x2b42a2(0x154)]);})));}[_0x479cfb(0x138)](_0x3007a2,_0x134a31){const _0x12f6af=_0x479cfb;return this['_injector'][_0x12f6af(0x13b)](_0x48298a[_0x12f6af(0x13e)])['validateToolCall'](_0x3007a2,_0x134a31);}[_0x479cfb(0x13d)](){const _0x53ce25=_0x479cfb;return this[_0x53ce25(0x158)][_0x53ce25(0x13b)](_0x48298a[_0x53ce25(0x13e)])['getAllTools']();}[_0x479cfb(0x163)](_0x1140df,_0xf6828c){const _0xd8017d=_0x479cfb;return this[_0xd8017d(0x158)][_0xd8017d(0x13b)](_0x48298a[_0xd8017d(0x13e)])[_0xd8017d(0x13c)](_0x1140df,_0xf6828c);}[_0x479cfb(0x15a)](){const _0x5a3dcc=_0x479cfb;return this['_injector'][_0x5a3dcc(0x13b)](_0x48298a[_0x5a3dcc(0x14c)])[_0x5a3dcc(0x143)]();}[_0x479cfb(0x15d)](){const _0x28366f=_0x479cfb;this[_0x28366f(0x158)]['get'](_0x48298a[_0x28366f(0x14c)])['connect']();}[_0x479cfb(0x15c)](){const _0x19c061=_0x479cfb;this[_0x19c061(0x158)]['get'](_0x48298a[_0x19c061(0x14c)])[_0x19c061(0x14a)]();}}_0x16dcb9[_0x479cfb(0x165)][_0x479cfb(0x162)](_0x331b24);}));
1
+ (function(_0x41df83,_0x10c79f){const _0x368e6e=_0x4046,_0x43c008=_0x41df83();while(!![]){try{const _0x308029=-parseInt(_0x368e6e(0xb6))/0x1+-parseInt(_0x368e6e(0xa3))/0x2+parseInt(_0x368e6e(0x9e))/0x3*(parseInt(_0x368e6e(0xaf))/0x4)+parseInt(_0x368e6e(0xb7))/0x5+parseInt(_0x368e6e(0x9f))/0x6+parseInt(_0x368e6e(0x97))/0x7+-parseInt(_0x368e6e(0xb3))/0x8;if(_0x308029===_0x10c79f)break;else _0x43c008['push'](_0x43c008['shift']());}catch(_0x5847b8){_0x43c008['push'](_0x43c008['shift']());}}}(_0x2598,0xf3bca),function(_0x862a4e,_0x881bf7){const _0x328663=_0x4046;typeof exports==_0x328663(0x99)&&typeof module<'u'?_0x881bf7(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x328663(0xbd)&&define[_0x328663(0x94)]?define(['@univerjs-pro/mcp',_0x328663(0xa6),_0x328663(0xa0)],_0x881bf7):(_0x862a4e=typeof globalThis<'u'?globalThis:_0x862a4e||self,_0x881bf7(_0x862a4e[_0x328663(0x9b)],_0x862a4e[_0x328663(0x98)],_0x862a4e[_0x328663(0xa7)]));}(this,function(_0x134a88,_0x391ad3,_0x371ff2){'use strict';const _0x42bceb=_0x4046;class _0x5301b6{get['McpConnectionStatusChanged'](){const _0x214a74=_0x4046;return _0x134a88[_0x214a74(0xa9)][_0x214a74(0xad)];}get[_0x42bceb(0xa5)](){const _0x30aa55=_0x42bceb;return _0x134a88['MCPEventId'][_0x30aa55(0xa5)];}get[_0x42bceb(0xb2)](){const _0x4fb3ae=_0x42bceb;return _0x134a88[_0x4fb3ae(0xa9)][_0x4fb3ae(0xb2)];}get[_0x42bceb(0xb4)](){const _0x1e73bd=_0x42bceb;return _0x134a88[_0x1e73bd(0xa9)]['McpToolCallFailed'];}}_0x391ad3[_0x42bceb(0xbb)][_0x42bceb(0xb1)](_0x5301b6);class _0x452713 extends _0x391ad3[_0x42bceb(0xbc)]{['_initialize'](_0x20e4f4){this['_registerMCPFacadeEvents'](_0x20e4f4);}[_0x42bceb(0xb0)](_0xb5f1d1){const _0x3b2efe=_0x42bceb,_0x423579=_0xb5f1d1[_0x3b2efe(0x96)](_0x134a88['MCPEventService']);this[_0x3b2efe(0xaa)](this[_0x3b2efe(0xa1)][_0x3b2efe(0xad)],()=>_0x371ff2['toDisposable'](_0x423579['event$'][_0x3b2efe(0x9d)](_0x5e8ec7=>{const _0x123f3c=_0x3b2efe;_0x5e8ec7[_0x123f3c(0xba)]===_0x134a88[_0x123f3c(0xa9)][_0x123f3c(0xad)]&&this['fireEvent'](this['Event'][_0x123f3c(0xad)],_0x5e8ec7['data']);}))),this[_0x3b2efe(0xaa)](this[_0x3b2efe(0xa1)]['McpToolCallReceived'],()=>_0x371ff2[_0x3b2efe(0xa2)](_0x423579['event$'][_0x3b2efe(0x9d)](_0x3cb02e=>{const _0x57e63e=_0x3b2efe;_0x3cb02e[_0x57e63e(0xba)]===_0x134a88[_0x57e63e(0xa9)]['McpToolCallReceived']&&this['fireEvent'](this[_0x57e63e(0xa1)]['McpToolCallReceived'],_0x3cb02e[_0x57e63e(0xa8)]);}))),this[_0x3b2efe(0xaa)](this[_0x3b2efe(0xa1)]['McpToolCallExecuted'],()=>_0x371ff2[_0x3b2efe(0xa2)](_0x423579['event$']['subscribe'](_0x1fab03=>{const _0x260bcc=_0x3b2efe;_0x1fab03[_0x260bcc(0xba)]===_0x134a88['MCPEventId'][_0x260bcc(0xb2)]&&this['fireEvent'](this['Event']['McpToolCallExecuted'],_0x1fab03[_0x260bcc(0xa8)]);}))),this[_0x3b2efe(0xaa)](this['Event'][_0x3b2efe(0xb4)],()=>_0x371ff2[_0x3b2efe(0xa2)](_0x423579[_0x3b2efe(0xb9)][_0x3b2efe(0x9d)](_0x56ab47=>{const _0x9b594d=_0x3b2efe;_0x56ab47['type']===_0x134a88[_0x9b594d(0xa9)][_0x9b594d(0xb4)]&&this[_0x9b594d(0xac)](this[_0x9b594d(0xa1)][_0x9b594d(0xb4)],_0x56ab47['data']);})));}['validateMCPToolCall'](_0x535d00,_0x24ad2a){const _0x1c0783=_0x42bceb;return this[_0x1c0783(0x95)]['get'](_0x134a88[_0x1c0783(0xab)])[_0x1c0783(0xb5)](_0x535d00,_0x24ad2a);}[_0x42bceb(0xbe)](){const _0xc3872b=_0x42bceb;return this[_0xc3872b(0x95)]['get'](_0x134a88[_0xc3872b(0xab)])[_0xc3872b(0x9a)]();}[_0x42bceb(0xae)](_0xcf1414,_0x284a61){const _0x58a748=_0x42bceb;return this['_injector'][_0x58a748(0x96)](_0x134a88['IMCPToolRegistry'])['executeTool'](_0xcf1414,_0x284a61);}['getMCPConnectionStatus'](){const _0x4bffab=_0x42bceb;return this['_injector'][_0x4bffab(0x96)](_0x134a88['MCPConnectionController'])['getConnectionStatus']();}[_0x42bceb(0x9c)](){const _0x4ab40e=_0x42bceb;this[_0x4ab40e(0x95)]['get'](_0x134a88['MCPConnectionController'])['connect']();}['disconnectMCP'](){const _0x2ea397=_0x42bceb;this[_0x2ea397(0x95)][_0x2ea397(0x96)](_0x134a88[_0x2ea397(0xb8)])[_0x2ea397(0xa4)]();}}_0x391ad3[_0x42bceb(0xbc)]['extend'](_0x452713);}));function _0x4046(_0x49eabf,_0x568631){_0x49eabf=_0x49eabf-0x94;const _0x259800=_0x2598();let _0x404660=_0x259800[_0x49eabf];return _0x404660;}function _0x2598(){const _0x575579=['_injector','get','1890910znNHhu','UniverCoreFacade','object','getAllTools','UniverProMcp','connectMCP','subscribe','418293aEYXFe','9768762HFaDjw','@univerjs/core','Event','toDisposable','3026732BFnKVr','disconnect','McpToolCallReceived','@univerjs/core/facade','UniverCore','data','MCPEventId','registerEventHandler','IMCPToolRegistry','fireEvent','McpConnectionStatusChanged','callMCPTool','32kxpCdR','_registerMCPFacadeEvents','extend','McpToolCallExecuted','9146384ZsNSkV','McpToolCallFailed','validateToolCall','297041oXEKSS','4691730nWYBDw','MCPConnectionController','event$','type','FEventName','FUniver','function','getAllMCPTools','amd'];_0x2598=function(){return _0x575579;};return _0x2598();}