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

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 _0x5648(){const _0x4c142a=['1341587dvKWxy','3dgFMLe','extend','MCPEventId','fireEvent','data','get','_injector','validateToolCall','FEventName','439615VpGVVT','4792pBffZb','UniverProMcp','14aDfIBu','toDisposable','McpConnectionStatusChanged','getMCPConnectionStatus','subscribe','MCPConnectionController','McpToolCallReceived','_initialize','1953JsMCXM','object','function','2265488XbCPjm','disconnectMCP','disconnect','IMCPToolRegistry','type','182MhgtvI','922130zvBmiq','amd','event$','connect','27gFeLGx','McpToolCallFailed','UniverCore','@univerjs/core/facade','246xuXIuc','registerEventHandler','McpToolCallExecuted','Event','@univerjs/core','_registerMCPFacadeEvents','getAllMCPTools','104479OwhVzf','108VufuqZ','callMCPTool','66225XJuMxG','MCPEventService'];_0x5648=function(){return _0x4c142a;};return _0x5648();}function _0x50b3(_0x3b964b,_0x44172b){const _0x5648b3=_0x5648();return _0x50b3=function(_0x50b34d,_0x3d3952){_0x50b34d=_0x50b34d-0x1c1;let _0xfd2eae=_0x5648b3[_0x50b34d];return _0xfd2eae;},_0x50b3(_0x3b964b,_0x44172b);}(function(_0x418888,_0x73890d){const _0x4abdf5=_0x50b3,_0x440ab8=_0x418888();while(!![]){try{const _0x430845=parseInt(_0x4abdf5(0x1ed))/0x1*(-parseInt(_0x4abdf5(0x1cd))/0x2)+-parseInt(_0x4abdf5(0x1c1))/0x3*(-parseInt(_0x4abdf5(0x1d8))/0x4)+parseInt(_0x4abdf5(0x1f0))/0x5*(-parseInt(_0x4abdf5(0x1e6))/0x6)+parseInt(_0x4abdf5(0x1d5))/0x7*(-parseInt(_0x4abdf5(0x1cb))/0x8)+-parseInt(_0x4abdf5(0x1e2))/0x9*(-parseInt(_0x4abdf5(0x1de))/0xa)+-parseInt(_0x4abdf5(0x1ca))/0xb*(parseInt(_0x4abdf5(0x1ee))/0xc)+-parseInt(_0x4abdf5(0x1f2))/0xd*(-parseInt(_0x4abdf5(0x1dd))/0xe);if(_0x430845===_0x73890d)break;else _0x440ab8['push'](_0x440ab8['shift']());}catch(_0x266469){_0x440ab8['push'](_0x440ab8['shift']());}}}(_0x5648,0x5d9a2),function(_0x193f91,_0xc97cb4){const _0x5ddcd4=_0x50b3;typeof exports==_0x5ddcd4(0x1d6)&&typeof module<'u'?_0xc97cb4(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x5ddcd4(0x1d7)&&define[_0x5ddcd4(0x1df)]?define(['@univerjs-pro/mcp',_0x5ddcd4(0x1e5),_0x5ddcd4(0x1ea)],_0xc97cb4):(_0x193f91=typeof globalThis<'u'?globalThis:_0x193f91||self,_0xc97cb4(_0x193f91[_0x5ddcd4(0x1cc)],_0x193f91['UniverCoreFacade'],_0x193f91[_0x5ddcd4(0x1e4)]));}(this,function(_0x4a9799,_0x2807c1,_0x4ff194){'use strict';const _0x20852e=_0x50b3;class _0x65179a{get[_0x20852e(0x1cf)](){const _0x432290=_0x20852e;return _0x4a9799[_0x432290(0x1c3)]['McpConnectionStatusChanged'];}get[_0x20852e(0x1d3)](){const _0x1e68e9=_0x20852e;return _0x4a9799[_0x1e68e9(0x1c3)][_0x1e68e9(0x1d3)];}get[_0x20852e(0x1e8)](){const _0x5ccb54=_0x20852e;return _0x4a9799[_0x5ccb54(0x1c3)][_0x5ccb54(0x1e8)];}get[_0x20852e(0x1e3)](){const _0x2dd0f4=_0x20852e;return _0x4a9799[_0x2dd0f4(0x1c3)][_0x2dd0f4(0x1e3)];}}_0x2807c1[_0x20852e(0x1c9)][_0x20852e(0x1c2)](_0x65179a);class _0x1e4e98 extends _0x2807c1['FUniver']{[_0x20852e(0x1d4)](_0x548c19){const _0xa2115e=_0x20852e;this[_0xa2115e(0x1eb)](_0x548c19);}[_0x20852e(0x1eb)](_0x4f1932){const _0x15b44e=_0x20852e,_0x35474a=_0x4f1932[_0x15b44e(0x1c6)](_0x4a9799[_0x15b44e(0x1f1)]);this['registerEventHandler'](this[_0x15b44e(0x1e9)][_0x15b44e(0x1cf)],()=>_0x4ff194[_0x15b44e(0x1ce)](_0x35474a['event$'][_0x15b44e(0x1d1)](_0x3c10e0=>{const _0x21453b=_0x15b44e;_0x3c10e0[_0x21453b(0x1dc)]===_0x4a9799[_0x21453b(0x1c3)][_0x21453b(0x1cf)]&&this['fireEvent'](this[_0x21453b(0x1e9)][_0x21453b(0x1cf)],_0x3c10e0[_0x21453b(0x1c5)]);}))),this[_0x15b44e(0x1e7)](this[_0x15b44e(0x1e9)]['McpToolCallReceived'],()=>_0x4ff194[_0x15b44e(0x1ce)](_0x35474a[_0x15b44e(0x1e0)][_0x15b44e(0x1d1)](_0x5d7fa9=>{const _0x52afae=_0x15b44e;_0x5d7fa9[_0x52afae(0x1dc)]===_0x4a9799[_0x52afae(0x1c3)][_0x52afae(0x1d3)]&&this[_0x52afae(0x1c4)](this[_0x52afae(0x1e9)][_0x52afae(0x1d3)],_0x5d7fa9['data']);}))),this[_0x15b44e(0x1e7)](this['Event'][_0x15b44e(0x1e8)],()=>_0x4ff194['toDisposable'](_0x35474a[_0x15b44e(0x1e0)][_0x15b44e(0x1d1)](_0x2b6db6=>{const _0x466388=_0x15b44e;_0x2b6db6[_0x466388(0x1dc)]===_0x4a9799[_0x466388(0x1c3)][_0x466388(0x1e8)]&&this[_0x466388(0x1c4)](this[_0x466388(0x1e9)][_0x466388(0x1e8)],_0x2b6db6['data']);}))),this[_0x15b44e(0x1e7)](this[_0x15b44e(0x1e9)][_0x15b44e(0x1e3)],()=>_0x4ff194[_0x15b44e(0x1ce)](_0x35474a[_0x15b44e(0x1e0)][_0x15b44e(0x1d1)](_0x1d7cfe=>{const _0x6cf58c=_0x15b44e;_0x1d7cfe['type']===_0x4a9799[_0x6cf58c(0x1c3)][_0x6cf58c(0x1e3)]&&this['fireEvent'](this[_0x6cf58c(0x1e9)]['McpToolCallFailed'],_0x1d7cfe[_0x6cf58c(0x1c5)]);})));}['validateMCPToolCall'](_0x1f3fbe,_0x1a652d){const _0x454ad3=_0x20852e;return this['_injector']['get'](_0x4a9799[_0x454ad3(0x1db)])[_0x454ad3(0x1c8)](_0x1f3fbe,_0x1a652d);}[_0x20852e(0x1ec)](){const _0x3fd6cd=_0x20852e;return this['_injector'][_0x3fd6cd(0x1c6)](_0x4a9799[_0x3fd6cd(0x1db)])['getAllTools']();}[_0x20852e(0x1ef)](_0x179551,_0xef6e1e){const _0x161931=_0x20852e;return this['_injector'][_0x161931(0x1c6)](_0x4a9799[_0x161931(0x1db)])['executeTool'](_0x179551,_0xef6e1e);}[_0x20852e(0x1d0)](){const _0x33bfe0=_0x20852e;return this[_0x33bfe0(0x1c7)][_0x33bfe0(0x1c6)](_0x4a9799[_0x33bfe0(0x1d2)])['getConnectionStatus']();}['connectMCP'](){const _0x1ecbcc=_0x20852e;this[_0x1ecbcc(0x1c7)]['get'](_0x4a9799[_0x1ecbcc(0x1d2)])[_0x1ecbcc(0x1e1)]();}[_0x20852e(0x1d9)](){const _0xe545b8=_0x20852e;this['_injector'][_0xe545b8(0x1c6)](_0x4a9799[_0xe545b8(0x1d2)])[_0xe545b8(0x1da)]();}}_0x2807c1['FUniver'][_0x20852e(0x1c2)](_0x1e4e98);}));