@univerjs-pro/mcp 0.12.2-nightly.202511241159 → 0.12.2-nightly.202511290905

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 _0x2deb(){const _0x512716=['MCPConnectionController','disconnect','1460DeEHlJ','645aIcYuX','_initialize','@univerjs-pro/mcp','getConnectionStatus','MCPEventId','validateToolCall','registerEventHandler','amd','1844847bZSUbX','extend','callMCPTool','disconnectMCP','McpToolCallExecuted','1419369cPogSG','connect','getAllTools','_registerMCPFacadeEvents','2683590pbWfNa','8YvZMqW','connectMCP','executeTool','4435LOGcrv','FEventName','IMCPToolRegistry','type','@univerjs/core/facade','getMCPConnectionStatus','fireEvent','subscribe','getAllMCPTools','_injector','2MoVHjZ','MCPEventService','validateMCPToolCall','McpConnectionStatusChanged','UniverCore','toDisposable','373094JistPq','1986MgqsTF','McpToolCallReceived','function','event$','Event','get','6876848cVstPS','@univerjs/core','McpToolCallFailed','data'];_0x2deb=function(){return _0x512716;};return _0x2deb();}function _0x7d2d(_0x581288,_0x51a302){const _0x2deb12=_0x2deb();return _0x7d2d=function(_0x7d2d7f,_0x1821fa){_0x7d2d7f=_0x7d2d7f-0xe8;let _0x3f81bd=_0x2deb12[_0x7d2d7f];return _0x3f81bd;},_0x7d2d(_0x581288,_0x51a302);}(function(_0x3507be,_0x4ffabc){const _0x4ac2a5=_0x7d2d,_0x5d1e6f=_0x3507be();while(!![]){try{const _0x153d7c=-parseInt(_0x4ac2a5(0x105))/0x1*(-parseInt(_0x4ac2a5(0x10b))/0x2)+-parseInt(_0x4ac2a5(0x119))/0x3*(-parseInt(_0x4ac2a5(0x118))/0x4)+-parseInt(_0x4ac2a5(0xfb))/0x5*(parseInt(_0x4ac2a5(0x10c))/0x6)+parseInt(_0x4ac2a5(0xf3))/0x7+parseInt(_0x4ac2a5(0xf8))/0x8*(parseInt(_0x4ac2a5(0xee))/0x9)+parseInt(_0x4ac2a5(0xf7))/0xa+-parseInt(_0x4ac2a5(0x112))/0xb;if(_0x153d7c===_0x4ffabc)break;else _0x5d1e6f['push'](_0x5d1e6f['shift']());}catch(_0x3a478b){_0x5d1e6f['push'](_0x5d1e6f['shift']());}}}(_0x2deb,0x33011),function(_0x1c6876,_0x54cc22){const _0x370fdf=_0x7d2d;typeof exports=='object'&&typeof module<'u'?_0x54cc22(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x370fdf(0x10e)&&define[_0x370fdf(0xed)]?define([_0x370fdf(0xe8),_0x370fdf(0xff),_0x370fdf(0x113)],_0x54cc22):(_0x1c6876=typeof globalThis<'u'?globalThis:_0x1c6876||self,_0x54cc22(_0x1c6876['UniverProMcp'],_0x1c6876['UniverCoreFacade'],_0x1c6876[_0x370fdf(0x109)]));}(this,function(_0x517200,_0x5e192a,_0x10a707){'use strict';const _0x24f0f0=_0x7d2d;class _0x51d3c8{get[_0x24f0f0(0x108)](){const _0x3ccd56=_0x24f0f0;return _0x517200[_0x3ccd56(0xea)][_0x3ccd56(0x108)];}get[_0x24f0f0(0x10d)](){const _0x4942eb=_0x24f0f0;return _0x517200[_0x4942eb(0xea)][_0x4942eb(0x10d)];}get[_0x24f0f0(0xf2)](){const _0x84c274=_0x24f0f0;return _0x517200[_0x84c274(0xea)][_0x84c274(0xf2)];}get[_0x24f0f0(0x114)](){const _0x272d5b=_0x24f0f0;return _0x517200[_0x272d5b(0xea)][_0x272d5b(0x114)];}}_0x5e192a[_0x24f0f0(0xfc)][_0x24f0f0(0xef)](_0x51d3c8);class _0x1a2da8 extends _0x5e192a['FUniver']{[_0x24f0f0(0x11a)](_0x1f6ccb){this['_registerMCPFacadeEvents'](_0x1f6ccb);}[_0x24f0f0(0xf6)](_0x84d864){const _0x5ef75b=_0x24f0f0,_0x5e247f=_0x84d864[_0x5ef75b(0x111)](_0x517200[_0x5ef75b(0x106)]);this[_0x5ef75b(0xec)](this[_0x5ef75b(0x110)][_0x5ef75b(0x108)],()=>_0x10a707[_0x5ef75b(0x10a)](_0x5e247f['event$'][_0x5ef75b(0x102)](_0x59bd92=>{const _0x170f05=_0x5ef75b;_0x59bd92[_0x170f05(0xfe)]===_0x517200[_0x170f05(0xea)][_0x170f05(0x108)]&&this[_0x170f05(0x101)](this[_0x170f05(0x110)]['McpConnectionStatusChanged'],_0x59bd92[_0x170f05(0x115)]);}))),this[_0x5ef75b(0xec)](this[_0x5ef75b(0x110)]['McpToolCallReceived'],()=>_0x10a707[_0x5ef75b(0x10a)](_0x5e247f['event$']['subscribe'](_0x460d15=>{const _0x3fa250=_0x5ef75b;_0x460d15[_0x3fa250(0xfe)]===_0x517200[_0x3fa250(0xea)][_0x3fa250(0x10d)]&&this[_0x3fa250(0x101)](this[_0x3fa250(0x110)]['McpToolCallReceived'],_0x460d15[_0x3fa250(0x115)]);}))),this[_0x5ef75b(0xec)](this[_0x5ef75b(0x110)][_0x5ef75b(0xf2)],()=>_0x10a707[_0x5ef75b(0x10a)](_0x5e247f[_0x5ef75b(0x10f)][_0x5ef75b(0x102)](_0x238e12=>{const _0xedf1b=_0x5ef75b;_0x238e12[_0xedf1b(0xfe)]===_0x517200[_0xedf1b(0xea)][_0xedf1b(0xf2)]&&this['fireEvent'](this['Event'][_0xedf1b(0xf2)],_0x238e12[_0xedf1b(0x115)]);}))),this[_0x5ef75b(0xec)](this[_0x5ef75b(0x110)][_0x5ef75b(0x114)],()=>_0x10a707[_0x5ef75b(0x10a)](_0x5e247f[_0x5ef75b(0x10f)][_0x5ef75b(0x102)](_0x22f691=>{const _0x5d53ec=_0x5ef75b;_0x22f691[_0x5d53ec(0xfe)]===_0x517200['MCPEventId'][_0x5d53ec(0x114)]&&this['fireEvent'](this['Event'][_0x5d53ec(0x114)],_0x22f691['data']);})));}[_0x24f0f0(0x107)](_0x531001,_0x403f21){const _0x1cbd1b=_0x24f0f0;return this['_injector'][_0x1cbd1b(0x111)](_0x517200['IMCPToolRegistry'])[_0x1cbd1b(0xeb)](_0x531001,_0x403f21);}[_0x24f0f0(0x103)](){const _0x16ddbd=_0x24f0f0;return this[_0x16ddbd(0x104)][_0x16ddbd(0x111)](_0x517200[_0x16ddbd(0xfd)])[_0x16ddbd(0xf5)]();}[_0x24f0f0(0xf0)](_0x3b9790,_0x42294e){const _0x16b5f8=_0x24f0f0;return this[_0x16b5f8(0x104)]['get'](_0x517200['IMCPToolRegistry'])[_0x16b5f8(0xfa)](_0x3b9790,_0x42294e);}[_0x24f0f0(0x100)](){const _0x400c46=_0x24f0f0;return this[_0x400c46(0x104)]['get'](_0x517200['MCPConnectionController'])[_0x400c46(0xe9)]();}[_0x24f0f0(0xf9)](){const _0x21ba16=_0x24f0f0;this[_0x21ba16(0x104)][_0x21ba16(0x111)](_0x517200[_0x21ba16(0x116)])[_0x21ba16(0xf4)]();}[_0x24f0f0(0xf1)](){const _0x9ad6ab=_0x24f0f0;this['_injector'][_0x9ad6ab(0x111)](_0x517200[_0x9ad6ab(0x116)])[_0x9ad6ab(0x117)]();}}_0x5e192a['FUniver']['extend'](_0x1a2da8);}));
1
+ (function(_0x19772f,_0x1bc357){const _0x4d0a50=_0x1b6d,_0x467ccc=_0x19772f();while(!![]){try{const _0x3545b5=-parseInt(_0x4d0a50(0x138))/0x1+-parseInt(_0x4d0a50(0x149))/0x2*(parseInt(_0x4d0a50(0x13c))/0x3)+-parseInt(_0x4d0a50(0x144))/0x4*(-parseInt(_0x4d0a50(0x140))/0x5)+parseInt(_0x4d0a50(0x13d))/0x6+-parseInt(_0x4d0a50(0x136))/0x7+-parseInt(_0x4d0a50(0x130))/0x8*(parseInt(_0x4d0a50(0x126))/0x9)+parseInt(_0x4d0a50(0x150))/0xa;if(_0x3545b5===_0x1bc357)break;else _0x467ccc['push'](_0x467ccc['shift']());}catch(_0x3000d8){_0x467ccc['push'](_0x467ccc['shift']());}}}(_0x5f18,0x5dc2c),function(_0x36fe48,_0x34b1c7){const _0x3a4da0=_0x1b6d;typeof exports==_0x3a4da0(0x147)&&typeof module<'u'?_0x34b1c7(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x3a4da0(0x12a)&&define[_0x3a4da0(0x12b)]?define([_0x3a4da0(0x14c),_0x3a4da0(0x125),_0x3a4da0(0x154)],_0x34b1c7):(_0x36fe48=typeof globalThis<'u'?globalThis:_0x36fe48||self,_0x34b1c7(_0x36fe48['UniverProMcp'],_0x36fe48['UniverCoreFacade'],_0x36fe48[_0x3a4da0(0x148)]));}(this,function(_0x3827ce,_0x467e8b,_0x4d9d98){'use strict';const _0x2cba5a=_0x1b6d;class _0x581f48{get[_0x2cba5a(0x128)](){const _0x402f5f=_0x2cba5a;return _0x3827ce[_0x402f5f(0x153)][_0x402f5f(0x128)];}get[_0x2cba5a(0x139)](){const _0x43d296=_0x2cba5a;return _0x3827ce[_0x43d296(0x153)][_0x43d296(0x139)];}get[_0x2cba5a(0x137)](){const _0x38844e=_0x2cba5a;return _0x3827ce[_0x38844e(0x153)][_0x38844e(0x137)];}get['McpToolCallFailed'](){const _0x2eee4b=_0x2cba5a;return _0x3827ce['MCPEventId'][_0x2eee4b(0x13b)];}}_0x467e8b[_0x2cba5a(0x12c)][_0x2cba5a(0x12d)](_0x581f48);class _0x3e6500 extends _0x467e8b['FUniver']{[_0x2cba5a(0x12e)](_0x42e0ac){const _0x947afb=_0x2cba5a;this[_0x947afb(0x134)](_0x42e0ac);}[_0x2cba5a(0x134)](_0x9af219){const _0x43b683=_0x2cba5a,_0x592537=_0x9af219['get'](_0x3827ce[_0x43b683(0x129)]);this['registerEventHandler'](this[_0x43b683(0x14b)][_0x43b683(0x128)],()=>_0x4d9d98[_0x43b683(0x133)](_0x592537[_0x43b683(0x13e)][_0x43b683(0x143)](_0xa9874=>{const _0x4d2391=_0x43b683;_0xa9874[_0x4d2391(0x13f)]===_0x3827ce[_0x4d2391(0x153)]['McpConnectionStatusChanged']&&this['fireEvent'](this[_0x4d2391(0x14b)][_0x4d2391(0x128)],_0xa9874[_0x4d2391(0x14d)]);}))),this[_0x43b683(0x145)](this[_0x43b683(0x14b)]['McpToolCallReceived'],()=>_0x4d9d98[_0x43b683(0x133)](_0x592537[_0x43b683(0x13e)][_0x43b683(0x143)](_0x2ade81=>{const _0x3217ce=_0x43b683;_0x2ade81[_0x3217ce(0x13f)]===_0x3827ce['MCPEventId'][_0x3217ce(0x139)]&&this['fireEvent'](this['Event'][_0x3217ce(0x139)],_0x2ade81[_0x3217ce(0x14d)]);}))),this[_0x43b683(0x145)](this['Event'][_0x43b683(0x137)],()=>_0x4d9d98[_0x43b683(0x133)](_0x592537[_0x43b683(0x13e)][_0x43b683(0x143)](_0x2b7d15=>{const _0x547795=_0x43b683;_0x2b7d15[_0x547795(0x13f)]===_0x3827ce[_0x547795(0x153)][_0x547795(0x137)]&&this[_0x547795(0x14e)](this['Event'][_0x547795(0x137)],_0x2b7d15['data']);}))),this[_0x43b683(0x145)](this[_0x43b683(0x14b)][_0x43b683(0x13b)],()=>_0x4d9d98[_0x43b683(0x133)](_0x592537[_0x43b683(0x13e)][_0x43b683(0x143)](_0x3d2ea5=>{const _0x4b5443=_0x43b683;_0x3d2ea5[_0x4b5443(0x13f)]===_0x3827ce[_0x4b5443(0x153)][_0x4b5443(0x13b)]&&this[_0x4b5443(0x14e)](this[_0x4b5443(0x14b)]['McpToolCallFailed'],_0x3d2ea5[_0x4b5443(0x14d)]);})));}[_0x2cba5a(0x151)](_0x58769a,_0x14572e){const _0x5a06b5=_0x2cba5a;return this[_0x5a06b5(0x14f)][_0x5a06b5(0x13a)](_0x3827ce[_0x5a06b5(0x146)])[_0x5a06b5(0x132)](_0x58769a,_0x14572e);}[_0x2cba5a(0x141)](){const _0x260144=_0x2cba5a;return this[_0x260144(0x14f)][_0x260144(0x13a)](_0x3827ce[_0x260144(0x146)])[_0x260144(0x135)]();}[_0x2cba5a(0x14a)](_0x22a408,_0x778b48){const _0x2650ec=_0x2cba5a;return this[_0x2650ec(0x14f)][_0x2650ec(0x13a)](_0x3827ce[_0x2650ec(0x146)])['executeTool'](_0x22a408,_0x778b48);}[_0x2cba5a(0x12f)](){const _0xca4aa6=_0x2cba5a;return this[_0xca4aa6(0x14f)][_0xca4aa6(0x13a)](_0x3827ce[_0xca4aa6(0x142)])[_0xca4aa6(0x124)]();}['connectMCP'](){const _0x57d28b=_0x2cba5a;this[_0x57d28b(0x14f)][_0x57d28b(0x13a)](_0x3827ce[_0x57d28b(0x142)])[_0x57d28b(0x152)]();}['disconnectMCP'](){const _0x56a5ce=_0x2cba5a;this[_0x56a5ce(0x14f)][_0x56a5ce(0x13a)](_0x3827ce['MCPConnectionController'])[_0x56a5ce(0x127)]();}}_0x467e8b[_0x2cba5a(0x131)]['extend'](_0x3e6500);}));function _0x1b6d(_0x18b8d4,_0x566d3a){const _0x5f1872=_0x5f18();return _0x1b6d=function(_0x1b6ded,_0x17400c){_0x1b6ded=_0x1b6ded-0x124;let _0x15d11c=_0x5f1872[_0x1b6ded];return _0x15d11c;},_0x1b6d(_0x18b8d4,_0x566d3a);}function _0x5f18(){const _0x1463f9=['fireEvent','_injector','11741390MGsMNl','validateMCPToolCall','connect','MCPEventId','@univerjs/core','getConnectionStatus','@univerjs/core/facade','33102CUEfwu','disconnect','McpConnectionStatusChanged','MCPEventService','function','amd','FEventName','extend','_initialize','getMCPConnectionStatus','1264lujynB','FUniver','validateToolCall','toDisposable','_registerMCPFacadeEvents','getAllTools','3893673KEexZd','McpToolCallExecuted','83748DSWnuw','McpToolCallReceived','get','McpToolCallFailed','3cqPyqm','3289362JoxlEf','event$','type','15215AVfhNP','getAllMCPTools','MCPConnectionController','subscribe','224hABelf','registerEventHandler','IMCPToolRegistry','object','UniverCore','575238mqcgfC','callMCPTool','Event','@univerjs-pro/mcp','data'];_0x5f18=function(){return _0x1463f9;};return _0x5f18();}