@univerjs-pro/mcp 0.12.4-insiders.20251213-692494c → 0.13.0-insiders.20251215-64041bb

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 _0x2fa2(_0x46d128,_0x436f1e){_0x46d128=_0x46d128-0x103;const _0x18eff5=_0x18ef();let _0x2fa2a7=_0x18eff5[_0x46d128];return _0x2fa2a7;}function _0x18ef(){const _0x17a015=['data','_injector','45QSKxoY','getAllTools','105VZJAbv','subscribe','UniverCore','_registerMCPFacadeEvents','disconnect','McpToolCallReceived','MCPEventService','UniverCoreFacade','48541QXGqyD','event$','fireEvent','executeTool','function','McpConnectionStatusChanged','1466170bwSRwX','364168bZdviu','extend','McpToolCallExecuted','getConnectionStatus','registerEventHandler','84jMxQca','get','1470912mmvzHy','McpToolCallFailed','MCPConnectionController','disconnectMCP','connect','34512VcGdKK','FEventName','amd','MCPEventId','@univerjs/core/facade','type','toDisposable','object','validateMCPToolCall','8538ZPBkwF','3672466xzMKEa','Event','getAllMCPTools','IMCPToolRegistry','getMCPConnectionStatus','UniverProMcp','FUniver'];_0x18ef=function(){return _0x17a015;};return _0x18ef();}(function(_0xc03880,_0x526d76){const _0x4ca3d3=_0x2fa2,_0x19cf3c=_0xc03880();while(!![]){try{const _0x3a60c8=-parseInt(_0x4ca3d3(0x107))/0x1+parseInt(_0x4ca3d3(0x123))/0x2*(parseInt(_0x4ca3d3(0x113))/0x3)+parseInt(_0x4ca3d3(0x10e))/0x4+parseInt(_0x4ca3d3(0x12f))/0x5*(parseInt(_0x4ca3d3(0x11a))/0x6)+-parseInt(_0x4ca3d3(0x124))/0x7+-parseInt(_0x4ca3d3(0x115))/0x8+parseInt(_0x4ca3d3(0x12d))/0x9*(parseInt(_0x4ca3d3(0x10d))/0xa);if(_0x3a60c8===_0x526d76)break;else _0x19cf3c['push'](_0x19cf3c['shift']());}catch(_0x39883a){_0x19cf3c['push'](_0x19cf3c['shift']());}}}(_0x18ef,0x4b0d0),function(_0x261fd7,_0x2d1187){const _0x2d6e7e=_0x2fa2;typeof exports==_0x2d6e7e(0x121)&&typeof module<'u'?_0x2d1187(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x2d6e7e(0x10b)&&define[_0x2d6e7e(0x11c)]?define(['@univerjs-pro/mcp',_0x2d6e7e(0x11e),'@univerjs/core'],_0x2d1187):(_0x261fd7=typeof globalThis<'u'?globalThis:_0x261fd7||self,_0x2d1187(_0x261fd7[_0x2d6e7e(0x129)],_0x261fd7[_0x2d6e7e(0x106)],_0x261fd7[_0x2d6e7e(0x131)]));}(this,function(_0x351d3f,_0x57bf0a,_0x5bd7e5){'use strict';const _0x164a86=_0x2fa2;class _0x195153{get[_0x164a86(0x10c)](){const _0x1f7f12=_0x164a86;return _0x351d3f[_0x1f7f12(0x11d)][_0x1f7f12(0x10c)];}get[_0x164a86(0x104)](){const _0x20de43=_0x164a86;return _0x351d3f['MCPEventId'][_0x20de43(0x104)];}get[_0x164a86(0x110)](){const _0x24ff97=_0x164a86;return _0x351d3f[_0x24ff97(0x11d)][_0x24ff97(0x110)];}get[_0x164a86(0x116)](){const _0x4cbe01=_0x164a86;return _0x351d3f['MCPEventId'][_0x4cbe01(0x116)];}}_0x57bf0a[_0x164a86(0x11b)][_0x164a86(0x10f)](_0x195153);class _0x1482f9 extends _0x57bf0a[_0x164a86(0x12a)]{['_initialize'](_0x3e620d){const _0x1665f9=_0x164a86;this[_0x1665f9(0x132)](_0x3e620d);}[_0x164a86(0x132)](_0x2a6b86){const _0x1b6ef3=_0x164a86,_0x24b093=_0x2a6b86[_0x1b6ef3(0x114)](_0x351d3f[_0x1b6ef3(0x105)]);this[_0x1b6ef3(0x112)](this[_0x1b6ef3(0x125)]['McpConnectionStatusChanged'],()=>_0x5bd7e5[_0x1b6ef3(0x120)](_0x24b093[_0x1b6ef3(0x108)][_0x1b6ef3(0x130)](_0x59ae9d=>{const _0x2b2c0a=_0x1b6ef3;_0x59ae9d['type']===_0x351d3f[_0x2b2c0a(0x11d)][_0x2b2c0a(0x10c)]&&this[_0x2b2c0a(0x109)](this[_0x2b2c0a(0x125)][_0x2b2c0a(0x10c)],_0x59ae9d[_0x2b2c0a(0x12b)]);}))),this[_0x1b6ef3(0x112)](this['Event'][_0x1b6ef3(0x104)],()=>_0x5bd7e5[_0x1b6ef3(0x120)](_0x24b093[_0x1b6ef3(0x108)][_0x1b6ef3(0x130)](_0x4126e9=>{const _0x2634cf=_0x1b6ef3;_0x4126e9[_0x2634cf(0x11f)]===_0x351d3f[_0x2634cf(0x11d)]['McpToolCallReceived']&&this[_0x2634cf(0x109)](this['Event']['McpToolCallReceived'],_0x4126e9['data']);}))),this['registerEventHandler'](this['Event'][_0x1b6ef3(0x110)],()=>_0x5bd7e5[_0x1b6ef3(0x120)](_0x24b093[_0x1b6ef3(0x108)][_0x1b6ef3(0x130)](_0x277f43=>{const _0x1120be=_0x1b6ef3;_0x277f43['type']===_0x351d3f[_0x1120be(0x11d)][_0x1120be(0x110)]&&this['fireEvent'](this[_0x1120be(0x125)][_0x1120be(0x110)],_0x277f43['data']);}))),this[_0x1b6ef3(0x112)](this['Event'][_0x1b6ef3(0x116)],()=>_0x5bd7e5[_0x1b6ef3(0x120)](_0x24b093['event$']['subscribe'](_0x407616=>{const _0x389e37=_0x1b6ef3;_0x407616[_0x389e37(0x11f)]===_0x351d3f[_0x389e37(0x11d)][_0x389e37(0x116)]&&this[_0x389e37(0x109)](this[_0x389e37(0x125)]['McpToolCallFailed'],_0x407616['data']);})));}[_0x164a86(0x122)](_0x35cfd2,_0x5d907b){const _0x52caa3=_0x164a86;return this[_0x52caa3(0x12c)][_0x52caa3(0x114)](_0x351d3f['IMCPToolRegistry'])['validateToolCall'](_0x35cfd2,_0x5d907b);}[_0x164a86(0x126)](){const _0x4189d9=_0x164a86;return this[_0x4189d9(0x12c)]['get'](_0x351d3f[_0x4189d9(0x127)])[_0x4189d9(0x12e)]();}['callMCPTool'](_0x259884,_0x3bb878){const _0x8bea78=_0x164a86;return this[_0x8bea78(0x12c)]['get'](_0x351d3f[_0x8bea78(0x127)])[_0x8bea78(0x10a)](_0x259884,_0x3bb878);}[_0x164a86(0x128)](){const _0x58e7a9=_0x164a86;return this[_0x58e7a9(0x12c)]['get'](_0x351d3f[_0x58e7a9(0x117)])[_0x58e7a9(0x111)]();}['connectMCP'](){const _0x136904=_0x164a86;this[_0x136904(0x12c)][_0x136904(0x114)](_0x351d3f[_0x136904(0x117)])[_0x136904(0x119)]();}[_0x164a86(0x118)](){const _0x164195=_0x164a86;this[_0x164195(0x12c)][_0x164195(0x114)](_0x351d3f[_0x164195(0x117)])[_0x164195(0x103)]();}}_0x57bf0a['FUniver'][_0x164a86(0x10f)](_0x1482f9);}));
1
+ function _0x88c8(){const _0x5c4cf0=['@univerjs/core/facade','_injector','function','642095RtEswc','get','connect','getAllMCPTools','17150640sQCDLZ','5180160FUKXHY','UniverCore','1097294taPYNX','registerEventHandler','4RDjXcR','disconnectMCP','subscribe','McpToolCallFailed','_initialize','@univerjs-pro/mcp','Event','getAllTools','5868632EqtGaG','event$','1209573RwPSft','629268QkQePu','validateToolCall','McpConnectionStatusChanged','extend','data','FEventName','type','getConnectionStatus','validateMCPToolCall','FUniver','McpToolCallExecuted','fireEvent','McpToolCallReceived','toDisposable','IMCPToolRegistry','executeTool','connectMCP','callMCPTool','UniverProMcp','_registerMCPFacadeEvents','MCPConnectionController','MCPEventId'];_0x88c8=function(){return _0x5c4cf0;};return _0x88c8();}function _0x3216(_0x340084,_0x33aec9){_0x340084=_0x340084-0x13e;const _0x88c87e=_0x88c8();let _0x321614=_0x88c87e[_0x340084];return _0x321614;}(function(_0x382dd9,_0x610258){const _0x41a47f=_0x3216,_0xe3e4b6=_0x382dd9();while(!![]){try{const _0xac0938=parseInt(_0x41a47f(0x156))/0x1+-parseInt(_0x41a47f(0x163))/0x2+parseInt(_0x41a47f(0x162))/0x3+-parseInt(_0x41a47f(0x158))/0x4*(parseInt(_0x41a47f(0x14f))/0x5)+parseInt(_0x41a47f(0x154))/0x6+parseInt(_0x41a47f(0x160))/0x7+-parseInt(_0x41a47f(0x153))/0x8;if(_0xac0938===_0x610258)break;else _0xe3e4b6['push'](_0xe3e4b6['shift']());}catch(_0x4569f8){_0xe3e4b6['push'](_0xe3e4b6['shift']());}}}(_0x88c8,0x963aa),function(_0x5ecb08,_0x1d3847){const _0x22b03d=_0x3216;typeof exports=='object'&&typeof module<'u'?_0x1d3847(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x22b03d(0x14e)&&define['amd']?define([_0x22b03d(0x15d),_0x22b03d(0x14c),'@univerjs/core'],_0x1d3847):(_0x5ecb08=typeof globalThis<'u'?globalThis:_0x5ecb08||self,_0x1d3847(_0x5ecb08[_0x22b03d(0x148)],_0x5ecb08['UniverCoreFacade'],_0x5ecb08[_0x22b03d(0x155)]));}(this,function(_0x56fb43,_0x53d575,_0x2c0ab3){'use strict';const _0x537a78=_0x3216;class _0xa5ff8b{get[_0x537a78(0x165)](){const _0x10ba78=_0x537a78;return _0x56fb43[_0x10ba78(0x14b)]['McpConnectionStatusChanged'];}get[_0x537a78(0x142)](){const _0x5a9b58=_0x537a78;return _0x56fb43[_0x5a9b58(0x14b)]['McpToolCallReceived'];}get['McpToolCallExecuted'](){const _0x1ca2ad=_0x537a78;return _0x56fb43[_0x1ca2ad(0x14b)]['McpToolCallExecuted'];}get[_0x537a78(0x15b)](){const _0x14f613=_0x537a78;return _0x56fb43[_0x14f613(0x14b)]['McpToolCallFailed'];}}_0x53d575[_0x537a78(0x168)][_0x537a78(0x166)](_0xa5ff8b);class _0x4af92d extends _0x53d575[_0x537a78(0x13f)]{[_0x537a78(0x15c)](_0x2795d4){this['_registerMCPFacadeEvents'](_0x2795d4);}[_0x537a78(0x149)](_0x1cafd1){const _0x33cfd8=_0x537a78,_0x20714e=_0x1cafd1[_0x33cfd8(0x150)](_0x56fb43['MCPEventService']);this[_0x33cfd8(0x157)](this[_0x33cfd8(0x15e)][_0x33cfd8(0x165)],()=>_0x2c0ab3['toDisposable'](_0x20714e[_0x33cfd8(0x161)][_0x33cfd8(0x15a)](_0x5e3d15=>{const _0x2c37a2=_0x33cfd8;_0x5e3d15[_0x2c37a2(0x169)]===_0x56fb43[_0x2c37a2(0x14b)][_0x2c37a2(0x165)]&&this[_0x2c37a2(0x141)](this[_0x2c37a2(0x15e)]['McpConnectionStatusChanged'],_0x5e3d15[_0x2c37a2(0x167)]);}))),this['registerEventHandler'](this[_0x33cfd8(0x15e)][_0x33cfd8(0x142)],()=>_0x2c0ab3[_0x33cfd8(0x143)](_0x20714e[_0x33cfd8(0x161)][_0x33cfd8(0x15a)](_0x4d9a8a=>{const _0x4fe6bf=_0x33cfd8;_0x4d9a8a[_0x4fe6bf(0x169)]===_0x56fb43[_0x4fe6bf(0x14b)][_0x4fe6bf(0x142)]&&this[_0x4fe6bf(0x141)](this['Event'][_0x4fe6bf(0x142)],_0x4d9a8a[_0x4fe6bf(0x167)]);}))),this[_0x33cfd8(0x157)](this[_0x33cfd8(0x15e)]['McpToolCallExecuted'],()=>_0x2c0ab3[_0x33cfd8(0x143)](_0x20714e['event$'][_0x33cfd8(0x15a)](_0x5ea373=>{const _0x40804c=_0x33cfd8;_0x5ea373[_0x40804c(0x169)]===_0x56fb43[_0x40804c(0x14b)][_0x40804c(0x140)]&&this['fireEvent'](this[_0x40804c(0x15e)][_0x40804c(0x140)],_0x5ea373[_0x40804c(0x167)]);}))),this[_0x33cfd8(0x157)](this[_0x33cfd8(0x15e)]['McpToolCallFailed'],()=>_0x2c0ab3['toDisposable'](_0x20714e[_0x33cfd8(0x161)][_0x33cfd8(0x15a)](_0x507af6=>{const _0x33e9d8=_0x33cfd8;_0x507af6['type']===_0x56fb43[_0x33e9d8(0x14b)][_0x33e9d8(0x15b)]&&this[_0x33e9d8(0x141)](this[_0x33e9d8(0x15e)][_0x33e9d8(0x15b)],_0x507af6[_0x33e9d8(0x167)]);})));}[_0x537a78(0x13e)](_0x5713a4,_0x30b470){const _0x48162d=_0x537a78;return this[_0x48162d(0x14d)][_0x48162d(0x150)](_0x56fb43[_0x48162d(0x144)])[_0x48162d(0x164)](_0x5713a4,_0x30b470);}[_0x537a78(0x152)](){const _0x26de3f=_0x537a78;return this[_0x26de3f(0x14d)][_0x26de3f(0x150)](_0x56fb43[_0x26de3f(0x144)])[_0x26de3f(0x15f)]();}[_0x537a78(0x147)](_0x33fda7,_0x1be249){const _0x925913=_0x537a78;return this[_0x925913(0x14d)][_0x925913(0x150)](_0x56fb43[_0x925913(0x144)])[_0x925913(0x145)](_0x33fda7,_0x1be249);}['getMCPConnectionStatus'](){const _0x5e4fb5=_0x537a78;return this[_0x5e4fb5(0x14d)][_0x5e4fb5(0x150)](_0x56fb43[_0x5e4fb5(0x14a)])[_0x5e4fb5(0x16a)]();}[_0x537a78(0x146)](){const _0x4fa0a8=_0x537a78;this[_0x4fa0a8(0x14d)][_0x4fa0a8(0x150)](_0x56fb43[_0x4fa0a8(0x14a)])[_0x4fa0a8(0x151)]();}[_0x537a78(0x159)](){const _0x9c7990=_0x537a78;this[_0x9c7990(0x14d)][_0x9c7990(0x150)](_0x56fb43[_0x9c7990(0x14a)])['disconnect']();}}_0x53d575['FUniver']['extend'](_0x4af92d);}));