@univerjs-pro/mcp 0.10.13-nightly.202510290902 → 0.10.14

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 _0x3631(_0x20c0f5,_0x5d3a30){const _0x22b848=_0x22b8();return _0x3631=function(_0x363148,_0x8c9072){_0x363148=_0x363148-0x150;let _0x2c9dbe=_0x22b848[_0x363148];return _0x2c9dbe;},_0x3631(_0x20c0f5,_0x5d3a30);}function _0x22b8(){const _0x5bda0d=['@univerjs/core','type','10892312ZoGcYu','function','event$','extend','_initialize','7aJBWeh','getAllMCPTools','subscribe','object','get','executeTool','@univerjs/core/facade','26oGYsuQ','_injector','McpToolCallFailed','connectMCP','_registerMCPFacadeEvents','validateMCPToolCall','15294429cqhjiH','amd','Event','6339515MllGNV','toDisposable','registerEventHandler','callMCPTool','validateToolCall','4329972pfWEbS','IMCPToolRegistry','getAllTools','752810PVWQvK','UniverCore','getMCPConnectionStatus','MCPConnectionController','141546DXLYiU','McpConnectionStatusChanged','10LbSmsH','FEventName','MCPEventId','data','5699756yMYEjm','connect','McpToolCallExecuted','disconnect','FUniver','fireEvent','McpToolCallReceived','MCPEventService'];_0x22b8=function(){return _0x5bda0d;};return _0x22b8();}(function(_0x1598b5,_0x34af71){const _0x275be3=_0x3631,_0x31332b=_0x1598b5();while(!![]){try{const _0x4174ab=-parseInt(_0x275be3(0x175))/0x1+-parseInt(_0x275be3(0x164))/0x2*(-parseInt(_0x275be3(0x179))/0x3)+-parseInt(_0x275be3(0x17f))/0x4+-parseInt(_0x275be3(0x16d))/0x5+parseInt(_0x275be3(0x172))/0x6*(parseInt(_0x275be3(0x15d))/0x7)+parseInt(_0x275be3(0x158))/0x8+-parseInt(_0x275be3(0x16a))/0x9*(-parseInt(_0x275be3(0x17b))/0xa);if(_0x4174ab===_0x34af71)break;else _0x31332b['push'](_0x31332b['shift']());}catch(_0x3a898f){_0x31332b['push'](_0x31332b['shift']());}}}(_0x22b8,0xe8018),function(_0x317260,_0x26f31a){const _0x286035=_0x3631;typeof exports==_0x286035(0x160)&&typeof module<'u'?_0x26f31a(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x286035(0x159)&&define[_0x286035(0x16b)]?define(['@univerjs-pro/mcp',_0x286035(0x163),_0x286035(0x156)],_0x26f31a):(_0x317260=typeof globalThis<'u'?globalThis:_0x317260||self,_0x26f31a(_0x317260['UniverProMcp'],_0x317260['UniverCoreFacade'],_0x317260[_0x286035(0x176)]));}(this,function(_0x27fe53,_0x3fc3ce,_0x36678e){'use strict';const _0x1d3130=_0x3631;class _0xdba144{get['McpConnectionStatusChanged'](){const _0x80f683=_0x3631;return _0x27fe53[_0x80f683(0x17d)][_0x80f683(0x17a)];}get['McpToolCallReceived'](){const _0x4cd2e3=_0x3631;return _0x27fe53[_0x4cd2e3(0x17d)]['McpToolCallReceived'];}get[_0x1d3130(0x150)](){const _0x36304e=_0x1d3130;return _0x27fe53[_0x36304e(0x17d)][_0x36304e(0x150)];}get['McpToolCallFailed'](){const _0x5d3b61=_0x1d3130;return _0x27fe53[_0x5d3b61(0x17d)]['McpToolCallFailed'];}}_0x3fc3ce[_0x1d3130(0x17c)][_0x1d3130(0x15b)](_0xdba144);class _0x18485e extends _0x3fc3ce[_0x1d3130(0x152)]{[_0x1d3130(0x15c)](_0x21480e){const _0x420dad=_0x1d3130;this[_0x420dad(0x168)](_0x21480e);}[_0x1d3130(0x168)](_0x33c6ac){const _0xd97017=_0x1d3130,_0x3680fe=_0x33c6ac['get'](_0x27fe53[_0xd97017(0x155)]);this['registerEventHandler'](this['Event']['McpConnectionStatusChanged'],()=>_0x36678e[_0xd97017(0x16e)](_0x3680fe['event$']['subscribe'](_0x438f1=>{const _0x18b6fa=_0xd97017;_0x438f1[_0x18b6fa(0x157)]===_0x27fe53[_0x18b6fa(0x17d)]['McpConnectionStatusChanged']&&this['fireEvent'](this[_0x18b6fa(0x16c)]['McpConnectionStatusChanged'],_0x438f1[_0x18b6fa(0x17e)]);}))),this[_0xd97017(0x16f)](this[_0xd97017(0x16c)][_0xd97017(0x154)],()=>_0x36678e[_0xd97017(0x16e)](_0x3680fe[_0xd97017(0x15a)][_0xd97017(0x15f)](_0x27f875=>{const _0xbfc59d=_0xd97017;_0x27f875[_0xbfc59d(0x157)]===_0x27fe53[_0xbfc59d(0x17d)]['McpToolCallReceived']&&this['fireEvent'](this['Event']['McpToolCallReceived'],_0x27f875[_0xbfc59d(0x17e)]);}))),this[_0xd97017(0x16f)](this[_0xd97017(0x16c)][_0xd97017(0x150)],()=>_0x36678e[_0xd97017(0x16e)](_0x3680fe[_0xd97017(0x15a)][_0xd97017(0x15f)](_0x36b967=>{const _0x5b8309=_0xd97017;_0x36b967['type']===_0x27fe53[_0x5b8309(0x17d)][_0x5b8309(0x150)]&&this[_0x5b8309(0x153)](this[_0x5b8309(0x16c)]['McpToolCallExecuted'],_0x36b967[_0x5b8309(0x17e)]);}))),this[_0xd97017(0x16f)](this[_0xd97017(0x16c)][_0xd97017(0x166)],()=>_0x36678e['toDisposable'](_0x3680fe[_0xd97017(0x15a)][_0xd97017(0x15f)](_0x32ab4d=>{const _0x20b842=_0xd97017;_0x32ab4d[_0x20b842(0x157)]===_0x27fe53[_0x20b842(0x17d)][_0x20b842(0x166)]&&this['fireEvent'](this[_0x20b842(0x16c)][_0x20b842(0x166)],_0x32ab4d[_0x20b842(0x17e)]);})));}[_0x1d3130(0x169)](_0x461bb1,_0x47b72a){const _0x5aa091=_0x1d3130;return this['_injector']['get'](_0x27fe53[_0x5aa091(0x173)])[_0x5aa091(0x171)](_0x461bb1,_0x47b72a);}[_0x1d3130(0x15e)](){const _0x60b796=_0x1d3130;return this[_0x60b796(0x165)][_0x60b796(0x161)](_0x27fe53[_0x60b796(0x173)])[_0x60b796(0x174)]();}[_0x1d3130(0x170)](_0x271579,_0x3b663c){const _0x52d547=_0x1d3130;return this[_0x52d547(0x165)][_0x52d547(0x161)](_0x27fe53[_0x52d547(0x173)])[_0x52d547(0x162)](_0x271579,_0x3b663c);}[_0x1d3130(0x177)](){const _0x2aa9be=_0x1d3130;return this[_0x2aa9be(0x165)][_0x2aa9be(0x161)](_0x27fe53[_0x2aa9be(0x178)])['getConnectionStatus']();}[_0x1d3130(0x167)](){const _0x4df6c5=_0x1d3130;this[_0x4df6c5(0x165)][_0x4df6c5(0x161)](_0x27fe53['MCPConnectionController'])[_0x4df6c5(0x180)]();}['disconnectMCP'](){const _0x5d4aad=_0x1d3130;this['_injector'][_0x5d4aad(0x161)](_0x27fe53[_0x5d4aad(0x178)])[_0x5d4aad(0x151)]();}}_0x3fc3ce['FUniver']['extend'](_0x18485e);}));
1
+ (function(_0x2bcf66,_0x918124){const _0x49a305=_0x2fb0,_0x1e1886=_0x2bcf66();while(!![]){try{const _0x4dc719=-parseInt(_0x49a305(0x193))/0x1*(parseInt(_0x49a305(0x184))/0x2)+-parseInt(_0x49a305(0x17d))/0x3*(parseInt(_0x49a305(0x17c))/0x4)+parseInt(_0x49a305(0x187))/0x5+parseInt(_0x49a305(0x188))/0x6+parseInt(_0x49a305(0x1a5))/0x7+parseInt(_0x49a305(0x18f))/0x8*(parseInt(_0x49a305(0x19b))/0x9)+parseInt(_0x49a305(0x179))/0xa*(-parseInt(_0x49a305(0x17a))/0xb);if(_0x4dc719===_0x918124)break;else _0x1e1886['push'](_0x1e1886['shift']());}catch(_0x324f6e){_0x1e1886['push'](_0x1e1886['shift']());}}}(_0x29d8,0x879f8),function(_0x4f75c9,_0x5a15f5){const _0x84939=_0x2fb0;typeof exports==_0x84939(0x19a)&&typeof module<'u'?_0x5a15f5(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x84939(0x18a)&&define['amd']?define([_0x84939(0x1a1),_0x84939(0x18d),_0x84939(0x1a0)],_0x5a15f5):(_0x4f75c9=typeof globalThis<'u'?globalThis:_0x4f75c9||self,_0x5a15f5(_0x4f75c9[_0x84939(0x18c)],_0x4f75c9['UniverCoreFacade'],_0x4f75c9[_0x84939(0x1a3)]));}(this,function(_0x2ae1f3,_0x13191a,_0x3f3c82){'use strict';const _0x2cb70b=_0x2fb0;class _0x2d0132{get[_0x2cb70b(0x18e)](){const _0x2fcbd5=_0x2cb70b;return _0x2ae1f3[_0x2fcbd5(0x19f)]['McpConnectionStatusChanged'];}get[_0x2cb70b(0x186)](){return _0x2ae1f3['MCPEventId']['McpToolCallReceived'];}get[_0x2cb70b(0x191)](){const _0x35a295=_0x2cb70b;return _0x2ae1f3['MCPEventId'][_0x35a295(0x191)];}get[_0x2cb70b(0x17f)](){const _0x337727=_0x2cb70b;return _0x2ae1f3['MCPEventId'][_0x337727(0x17f)];}}_0x13191a[_0x2cb70b(0x19d)]['extend'](_0x2d0132);class _0x48eb1c extends _0x13191a[_0x2cb70b(0x17b)]{[_0x2cb70b(0x18b)](_0x54e154){const _0xcf5d35=_0x2cb70b;this[_0xcf5d35(0x182)](_0x54e154);}[_0x2cb70b(0x182)](_0x1b975b){const _0x479c31=_0x2cb70b,_0x3cc11f=_0x1b975b[_0x479c31(0x195)](_0x2ae1f3['MCPEventService']);this[_0x479c31(0x17e)](this[_0x479c31(0x189)]['McpConnectionStatusChanged'],()=>_0x3f3c82['toDisposable'](_0x3cc11f[_0x479c31(0x1a9)]['subscribe'](_0x358da6=>{const _0x4e315b=_0x479c31;_0x358da6[_0x4e315b(0x185)]===_0x2ae1f3[_0x4e315b(0x19f)][_0x4e315b(0x18e)]&&this[_0x4e315b(0x1a8)](this[_0x4e315b(0x189)][_0x4e315b(0x18e)],_0x358da6[_0x4e315b(0x1a2)]);}))),this['registerEventHandler'](this[_0x479c31(0x189)][_0x479c31(0x186)],()=>_0x3f3c82[_0x479c31(0x199)](_0x3cc11f[_0x479c31(0x1a9)][_0x479c31(0x192)](_0x589966=>{const _0xb8d2e1=_0x479c31;_0x589966[_0xb8d2e1(0x185)]===_0x2ae1f3[_0xb8d2e1(0x19f)][_0xb8d2e1(0x186)]&&this[_0xb8d2e1(0x1a8)](this[_0xb8d2e1(0x189)][_0xb8d2e1(0x186)],_0x589966[_0xb8d2e1(0x1a2)]);}))),this[_0x479c31(0x17e)](this[_0x479c31(0x189)]['McpToolCallExecuted'],()=>_0x3f3c82[_0x479c31(0x199)](_0x3cc11f[_0x479c31(0x1a9)][_0x479c31(0x192)](_0x461835=>{const _0x258e52=_0x479c31;_0x461835[_0x258e52(0x185)]===_0x2ae1f3['MCPEventId'][_0x258e52(0x191)]&&this[_0x258e52(0x1a8)](this[_0x258e52(0x189)][_0x258e52(0x191)],_0x461835[_0x258e52(0x1a2)]);}))),this['registerEventHandler'](this[_0x479c31(0x189)]['McpToolCallFailed'],()=>_0x3f3c82['toDisposable'](_0x3cc11f[_0x479c31(0x1a9)][_0x479c31(0x192)](_0x3c8959=>{const _0x4754f1=_0x479c31;_0x3c8959[_0x4754f1(0x185)]===_0x2ae1f3[_0x4754f1(0x19f)][_0x4754f1(0x17f)]&&this[_0x4754f1(0x1a8)](this['Event']['McpToolCallFailed'],_0x3c8959['data']);})));}[_0x2cb70b(0x190)](_0x418bf9,_0x23b864){const _0x527f92=_0x2cb70b;return this[_0x527f92(0x1a6)][_0x527f92(0x195)](_0x2ae1f3['IMCPToolRegistry'])[_0x527f92(0x197)](_0x418bf9,_0x23b864);}[_0x2cb70b(0x196)](){const _0x92a15d=_0x2cb70b;return this[_0x92a15d(0x1a6)]['get'](_0x2ae1f3['IMCPToolRegistry'])[_0x92a15d(0x1a4)]();}['callMCPTool'](_0x2df9e9,_0x18d342){const _0x15bfd8=_0x2cb70b;return this[_0x15bfd8(0x1a6)][_0x15bfd8(0x195)](_0x2ae1f3['IMCPToolRegistry'])[_0x15bfd8(0x180)](_0x2df9e9,_0x18d342);}[_0x2cb70b(0x198)](){const _0x37f1c2=_0x2cb70b;return this['_injector'][_0x37f1c2(0x195)](_0x2ae1f3[_0x37f1c2(0x19e)])[_0x37f1c2(0x194)]();}[_0x2cb70b(0x19c)](){const _0x56d0cf=_0x2cb70b;this[_0x56d0cf(0x1a6)][_0x56d0cf(0x195)](_0x2ae1f3[_0x56d0cf(0x19e)])[_0x56d0cf(0x183)]();}['disconnectMCP'](){const _0x4a4bd4=_0x2cb70b;this[_0x4a4bd4(0x1a6)][_0x4a4bd4(0x195)](_0x2ae1f3[_0x4a4bd4(0x19e)])[_0x4a4bd4(0x181)]();}}_0x13191a[_0x2cb70b(0x17b)][_0x2cb70b(0x1a7)](_0x48eb1c);}));function _0x2fb0(_0x23bba7,_0x4aca6b){const _0x29d89=_0x29d8();return _0x2fb0=function(_0x2fb088,_0x17e644){_0x2fb088=_0x2fb088-0x179;let _0x5f31dc=_0x29d89[_0x2fb088];return _0x5f31dc;},_0x2fb0(_0x23bba7,_0x4aca6b);}function _0x29d8(){const _0xd7e3cf=['@univerjs-pro/mcp','data','UniverCore','getAllTools','4925893sdXEwz','_injector','extend','fireEvent','event$','128230pggRWw','517PmgCMZ','FUniver','127288XURoxg','18rgvWSB','registerEventHandler','McpToolCallFailed','executeTool','disconnect','_registerMCPFacadeEvents','connect','2PaJNCE','type','McpToolCallReceived','1864265jQrGaw','1659888uOLszw','Event','function','_initialize','UniverProMcp','@univerjs/core/facade','McpConnectionStatusChanged','899576JDlHhw','validateMCPToolCall','McpToolCallExecuted','subscribe','903651OclCvX','getConnectionStatus','get','getAllMCPTools','validateToolCall','getMCPConnectionStatus','toDisposable','object','72PtmQZR','connectMCP','FEventName','MCPConnectionController','MCPEventId','@univerjs/core'];_0x29d8=function(){return _0xd7e3cf;};return _0x29d8();}