@univerjs-pro/mcp 0.12.4 → 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 _0x4eeb(_0x503a58,_0x264eb1){_0x503a58=_0x503a58-0x14e;const _0x1d4990=_0x1d49();let _0x4eeb5a=_0x1d4990[_0x503a58];return _0x4eeb5a;}(function(_0x6f9a8f,_0x4b3adf){const _0x59bf1a=_0x4eeb,_0x3fb827=_0x6f9a8f();while(!![]){try{const _0x29f80c=parseInt(_0x59bf1a(0x158))/0x1+-parseInt(_0x59bf1a(0x16c))/0x2*(parseInt(_0x59bf1a(0x154))/0x3)+-parseInt(_0x59bf1a(0x170))/0x4+parseInt(_0x59bf1a(0x166))/0x5*(parseInt(_0x59bf1a(0x152))/0x6)+parseInt(_0x59bf1a(0x16d))/0x7+parseInt(_0x59bf1a(0x15b))/0x8+-parseInt(_0x59bf1a(0x153))/0x9;if(_0x29f80c===_0x4b3adf)break;else _0x3fb827['push'](_0x3fb827['shift']());}catch(_0x34eaf5){_0x3fb827['push'](_0x3fb827['shift']());}}}(_0x1d49,0xd76a1),function(_0x4662be,_0x366936){const _0x136306=_0x4eeb;typeof exports==_0x136306(0x177)&&typeof module<'u'?_0x366936(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x136306(0x15c)&&define[_0x136306(0x16b)]?define([_0x136306(0x161),_0x136306(0x156),_0x136306(0x15f)],_0x366936):(_0x4662be=typeof globalThis<'u'?globalThis:_0x4662be||self,_0x366936(_0x4662be[_0x136306(0x16e)],_0x4662be['UniverCoreFacade'],_0x4662be[_0x136306(0x157)]));}(this,function(_0x5a81c9,_0x2fcae9,_0x1e8e9a){'use strict';const _0x379395=_0x4eeb;class _0x38e7d1{get[_0x379395(0x151)](){const _0x1aadc6=_0x379395;return _0x5a81c9[_0x1aadc6(0x174)]['McpConnectionStatusChanged'];}get[_0x379395(0x15e)](){const _0x312147=_0x379395;return _0x5a81c9[_0x312147(0x174)]['McpToolCallReceived'];}get[_0x379395(0x163)](){const _0x1afa13=_0x379395;return _0x5a81c9['MCPEventId'][_0x1afa13(0x163)];}get[_0x379395(0x173)](){return _0x5a81c9['MCPEventId']['McpToolCallFailed'];}}_0x2fcae9[_0x379395(0x179)][_0x379395(0x16f)](_0x38e7d1);class _0x337331 extends _0x2fcae9['FUniver']{[_0x379395(0x178)](_0x5c0a75){this['_registerMCPFacadeEvents'](_0x5c0a75);}[_0x379395(0x160)](_0x31c9e6){const _0x4e24c2=_0x379395,_0x39e800=_0x31c9e6[_0x4e24c2(0x164)](_0x5a81c9['MCPEventService']);this[_0x4e24c2(0x15a)](this[_0x4e24c2(0x171)]['McpConnectionStatusChanged'],()=>_0x1e8e9a['toDisposable'](_0x39e800[_0x4e24c2(0x159)]['subscribe'](_0x375efe=>{const _0x270352=_0x4e24c2;_0x375efe[_0x270352(0x17a)]===_0x5a81c9[_0x270352(0x174)][_0x270352(0x151)]&&this['fireEvent'](this[_0x270352(0x171)]['McpConnectionStatusChanged'],_0x375efe[_0x270352(0x14e)]);}))),this[_0x4e24c2(0x15a)](this['Event']['McpToolCallReceived'],()=>_0x1e8e9a[_0x4e24c2(0x169)](_0x39e800[_0x4e24c2(0x159)][_0x4e24c2(0x172)](_0x104d12=>{const _0x2b99be=_0x4e24c2;_0x104d12[_0x2b99be(0x17a)]===_0x5a81c9[_0x2b99be(0x174)][_0x2b99be(0x15e)]&&this['fireEvent'](this['Event'][_0x2b99be(0x15e)],_0x104d12[_0x2b99be(0x14e)]);}))),this[_0x4e24c2(0x15a)](this[_0x4e24c2(0x171)][_0x4e24c2(0x163)],()=>_0x1e8e9a[_0x4e24c2(0x169)](_0x39e800[_0x4e24c2(0x159)][_0x4e24c2(0x172)](_0x400db8=>{const _0x13127f=_0x4e24c2;_0x400db8['type']===_0x5a81c9[_0x13127f(0x174)][_0x13127f(0x163)]&&this['fireEvent'](this[_0x13127f(0x171)][_0x13127f(0x163)],_0x400db8['data']);}))),this[_0x4e24c2(0x15a)](this[_0x4e24c2(0x171)][_0x4e24c2(0x173)],()=>_0x1e8e9a[_0x4e24c2(0x169)](_0x39e800[_0x4e24c2(0x159)]['subscribe'](_0x9030fa=>{const _0x306ae4=_0x4e24c2;_0x9030fa['type']===_0x5a81c9[_0x306ae4(0x174)]['McpToolCallFailed']&&this['fireEvent'](this[_0x306ae4(0x171)]['McpToolCallFailed'],_0x9030fa[_0x306ae4(0x14e)]);})));}[_0x379395(0x155)](_0x297739,_0x1bfeda){const _0x5c2ef8=_0x379395;return this[_0x5c2ef8(0x168)]['get'](_0x5a81c9[_0x5c2ef8(0x15d)])[_0x5c2ef8(0x16a)](_0x297739,_0x1bfeda);}[_0x379395(0x150)](){const _0xa814c6=_0x379395;return this[_0xa814c6(0x168)][_0xa814c6(0x164)](_0x5a81c9[_0xa814c6(0x15d)])['getAllTools']();}[_0x379395(0x176)](_0x519bad,_0x343c51){const _0x127b7c=_0x379395;return this[_0x127b7c(0x168)]['get'](_0x5a81c9[_0x127b7c(0x15d)])[_0x127b7c(0x175)](_0x519bad,_0x343c51);}['getMCPConnectionStatus'](){const _0xd60db5=_0x379395;return this['_injector'][_0xd60db5(0x164)](_0x5a81c9[_0xd60db5(0x14f)])[_0xd60db5(0x162)]();}[_0x379395(0x165)](){const _0x25fd69=_0x379395;this[_0x25fd69(0x168)][_0x25fd69(0x164)](_0x5a81c9[_0x25fd69(0x14f)])['connect']();}[_0x379395(0x167)](){const _0x56c9ed=_0x379395;this[_0x56c9ed(0x168)][_0x56c9ed(0x164)](_0x5a81c9['MCPConnectionController'])['disconnect']();}}_0x2fcae9['FUniver'][_0x379395(0x16f)](_0x337331);}));function _0x1d49(){const _0x3f652e=['McpConnectionStatusChanged','909564LOImlu','9099108MrixMG','3BQXIbh','validateMCPToolCall','@univerjs/core/facade','UniverCore','1708035kmGZpl','event$','registerEventHandler','10234960YjLIcz','function','IMCPToolRegistry','McpToolCallReceived','@univerjs/core','_registerMCPFacadeEvents','@univerjs-pro/mcp','getConnectionStatus','McpToolCallExecuted','get','connectMCP','10nLCyEe','disconnectMCP','_injector','toDisposable','validateToolCall','amd','2156118Gnefui','4796960USPqpx','UniverProMcp','extend','4017860zKrVLw','Event','subscribe','McpToolCallFailed','MCPEventId','executeTool','callMCPTool','object','_initialize','FEventName','type','data','MCPConnectionController','getAllMCPTools'];_0x1d49=function(){return _0x3f652e;};return _0x1d49();}
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);}));