@univerjs-pro/mcp 0.15.0-insiders.20260110-48b77c8 → 0.15.1

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 _0x3878(){const _0x2f2e59=['McpConnectionStatusChanged','6612588BpJvLE','@univerjs/core','FUniver','extend','fireEvent','amd','data','getMCPConnectionStatus','_registerMCPFacadeEvents','MCPConnectionController','disconnect','toDisposable','8665168qSKMzK','11436JVdKWi','disconnectMCP','IMCPToolRegistry','6128635TsWBTT','MCPEventId','FEventName','function','subscribe','get','57099pFWbEh','type','getConnectionStatus','callMCPTool','McpToolCallExecuted','MCPEventService','connect','6014244lEMAgT','164dQCPbs','event$','validateToolCall','UniverCoreFacade','186vidWzT','1539582sYetfb','McpToolCallReceived','registerEventHandler','_injector','getAllMCPTools','@univerjs/core/facade','@univerjs-pro/mcp','UniverProMcp','getAllTools','connectMCP','validateMCPToolCall','McpToolCallFailed','_initialize','Event'];_0x3878=function(){return _0x2f2e59;};return _0x3878();}function _0x3f43(_0x391f00,_0x4fa268){_0x391f00=_0x391f00-0x1ed;const _0x387841=_0x3878();let _0x3f4387=_0x387841[_0x391f00];return _0x3f4387;}(function(_0x5d8b43,_0x30f684){const _0x397e5b=_0x3f43,_0x2e727e=_0x5d8b43();while(!![]){try{const _0x224811=parseInt(_0x397e5b(0x1fd))/0x1+parseInt(_0x397e5b(0x1f8))/0x2*(-parseInt(_0x397e5b(0x219))/0x3)+-parseInt(_0x397e5b(0x1f7))/0x4+parseInt(_0x397e5b(0x21c))/0x5+parseInt(_0x397e5b(0x1fc))/0x6*(parseInt(_0x397e5b(0x1f0))/0x7)+-parseInt(_0x397e5b(0x218))/0x8+parseInt(_0x397e5b(0x20c))/0x9;if(_0x224811===_0x30f684)break;else _0x2e727e['push'](_0x2e727e['shift']());}catch(_0x109ae6){_0x2e727e['push'](_0x2e727e['shift']());}}}(_0x3878,0xd0671),function(_0x167565,_0x22e51c){const _0x4b0849=_0x3f43;typeof exports=='object'&&typeof module<'u'?_0x22e51c(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x4b0849(0x1ed)&&define[_0x4b0849(0x211)]?define([_0x4b0849(0x203),_0x4b0849(0x202),_0x4b0849(0x20d)],_0x22e51c):(_0x167565=typeof globalThis<'u'?globalThis:_0x167565||self,_0x22e51c(_0x167565[_0x4b0849(0x204)],_0x167565[_0x4b0849(0x1fb)],_0x167565['UniverCore']));}(this,function(_0x2f7c62,_0x3a938c,_0x55494b){'use strict';const _0x3d6fbc=_0x3f43;class _0x461de5{get[_0x3d6fbc(0x20b)](){const _0x2cb608=_0x3d6fbc;return _0x2f7c62['MCPEventId'][_0x2cb608(0x20b)];}get[_0x3d6fbc(0x1fe)](){return _0x2f7c62['MCPEventId']['McpToolCallReceived'];}get[_0x3d6fbc(0x1f4)](){const _0x22932c=_0x3d6fbc;return _0x2f7c62[_0x22932c(0x21d)][_0x22932c(0x1f4)];}get['McpToolCallFailed'](){const _0x1e1c0f=_0x3d6fbc;return _0x2f7c62[_0x1e1c0f(0x21d)][_0x1e1c0f(0x208)];}}_0x3a938c[_0x3d6fbc(0x21e)]['extend'](_0x461de5);class _0x39c51d extends _0x3a938c[_0x3d6fbc(0x20e)]{[_0x3d6fbc(0x209)](_0x12c58b){const _0x3fa132=_0x3d6fbc;this[_0x3fa132(0x214)](_0x12c58b);}[_0x3d6fbc(0x214)](_0x47335d){const _0x2174f0=_0x3d6fbc,_0x2a5070=_0x47335d['get'](_0x2f7c62[_0x2174f0(0x1f5)]);this['registerEventHandler'](this[_0x2174f0(0x20a)][_0x2174f0(0x20b)],()=>_0x55494b[_0x2174f0(0x217)](_0x2a5070[_0x2174f0(0x1f9)][_0x2174f0(0x1ee)](_0x5b4562=>{const _0x47c671=_0x2174f0;_0x5b4562[_0x47c671(0x1f1)]===_0x2f7c62['MCPEventId'][_0x47c671(0x20b)]&&this['fireEvent'](this[_0x47c671(0x20a)][_0x47c671(0x20b)],_0x5b4562[_0x47c671(0x212)]);}))),this[_0x2174f0(0x1ff)](this[_0x2174f0(0x20a)][_0x2174f0(0x1fe)],()=>_0x55494b[_0x2174f0(0x217)](_0x2a5070[_0x2174f0(0x1f9)][_0x2174f0(0x1ee)](_0x2eb83b=>{const _0x112439=_0x2174f0;_0x2eb83b[_0x112439(0x1f1)]===_0x2f7c62[_0x112439(0x21d)][_0x112439(0x1fe)]&&this[_0x112439(0x210)](this['Event'][_0x112439(0x1fe)],_0x2eb83b[_0x112439(0x212)]);}))),this[_0x2174f0(0x1ff)](this['Event'][_0x2174f0(0x1f4)],()=>_0x55494b[_0x2174f0(0x217)](_0x2a5070[_0x2174f0(0x1f9)][_0x2174f0(0x1ee)](_0x293849=>{const _0x4e9934=_0x2174f0;_0x293849[_0x4e9934(0x1f1)]===_0x2f7c62[_0x4e9934(0x21d)]['McpToolCallExecuted']&&this[_0x4e9934(0x210)](this[_0x4e9934(0x20a)][_0x4e9934(0x1f4)],_0x293849[_0x4e9934(0x212)]);}))),this[_0x2174f0(0x1ff)](this[_0x2174f0(0x20a)][_0x2174f0(0x208)],()=>_0x55494b[_0x2174f0(0x217)](_0x2a5070[_0x2174f0(0x1f9)][_0x2174f0(0x1ee)](_0x2ba91e=>{const _0x5da2e1=_0x2174f0;_0x2ba91e['type']===_0x2f7c62[_0x5da2e1(0x21d)][_0x5da2e1(0x208)]&&this[_0x5da2e1(0x210)](this[_0x5da2e1(0x20a)][_0x5da2e1(0x208)],_0x2ba91e[_0x5da2e1(0x212)]);})));}[_0x3d6fbc(0x207)](_0x3674a8,_0x57af5e){const _0x442917=_0x3d6fbc;return this['_injector'][_0x442917(0x1ef)](_0x2f7c62[_0x442917(0x21b)])[_0x442917(0x1fa)](_0x3674a8,_0x57af5e);}[_0x3d6fbc(0x201)](){const _0x39616b=_0x3d6fbc;return this[_0x39616b(0x200)][_0x39616b(0x1ef)](_0x2f7c62[_0x39616b(0x21b)])[_0x39616b(0x205)]();}[_0x3d6fbc(0x1f3)](_0x30994a,_0x25ce0f){const _0x509505=_0x3d6fbc;return this[_0x509505(0x200)][_0x509505(0x1ef)](_0x2f7c62[_0x509505(0x21b)])['executeTool'](_0x30994a,_0x25ce0f);}[_0x3d6fbc(0x213)](){const _0x263879=_0x3d6fbc;return this[_0x263879(0x200)]['get'](_0x2f7c62[_0x263879(0x215)])[_0x263879(0x1f2)]();}[_0x3d6fbc(0x206)](){const _0x53703a=_0x3d6fbc;this[_0x53703a(0x200)][_0x53703a(0x1ef)](_0x2f7c62[_0x53703a(0x215)])[_0x53703a(0x1f6)]();}[_0x3d6fbc(0x21a)](){const _0x3e8f83=_0x3d6fbc;this[_0x3e8f83(0x200)][_0x3e8f83(0x1ef)](_0x2f7c62[_0x3e8f83(0x215)])[_0x3e8f83(0x216)]();}}_0x3a938c[_0x3d6fbc(0x20e)][_0x3d6fbc(0x20f)](_0x39c51d);}));
1
+ function _0x1c64(){const _0x281c7a=['UniverCore','McpToolCallReceived','7vCnPZN','callMCPTool','object','executeTool','toDisposable','13404876IWNUfh','40WQbKFQ','FUniver','fireEvent','disconnect','extend','event$','@univerjs/core','26CLSRgM','@univerjs-pro/mcp','connectMCP','UniverProMcp','McpToolCallExecuted','McpToolCallFailed','getMCPConnectionStatus','UniverCoreFacade','connect','55rfLkAg','McpConnectionStatusChanged','102tLBOjc','_initialize','_registerMCPFacadeEvents','FEventName','1233024mRkTpx','101592dCDquh','MCPEventService','getAllMCPTools','550187fwQGeI','get','6908928Cuganu','subscribe','type','MCPConnectionController','disconnectMCP','data','88124wttsTy','validateToolCall','@univerjs/core/facade','IMCPToolRegistry','4694oLXMel','getConnectionStatus','Event','_injector','504vACfCV','registerEventHandler','validateMCPToolCall','MCPEventId'];_0x1c64=function(){return _0x281c7a;};return _0x1c64();}function _0x3a7a(_0x15cb4e,_0x322b81){_0x15cb4e=_0x15cb4e-0x1ab;const _0x1c647b=_0x1c64();let _0x3a7a01=_0x1c647b[_0x15cb4e];return _0x3a7a01;}(function(_0x393418,_0x5cf473){const _0x19d2f7=_0x3a7a,_0x46bccb=_0x393418();while(!![]){try{const _0x490a60=parseInt(_0x19d2f7(0x1c7))/0x1*(-parseInt(_0x19d2f7(0x1b3))/0x2)+-parseInt(_0x19d2f7(0x1b7))/0x3+parseInt(_0x19d2f7(0x1c3))/0x4*(-parseInt(_0x19d2f7(0x1b1))/0x5)+-parseInt(_0x19d2f7(0x1bd))/0x6*(parseInt(_0x19d2f7(0x1d1))/0x7)+parseInt(_0x19d2f7(0x1b8))/0x8*(parseInt(_0x19d2f7(0x1cb))/0x9)+parseInt(_0x19d2f7(0x1d7))/0xa*(-parseInt(_0x19d2f7(0x1bb))/0xb)+-parseInt(_0x19d2f7(0x1d6))/0xc*(-parseInt(_0x19d2f7(0x1de))/0xd);if(_0x490a60===_0x5cf473)break;else _0x46bccb['push'](_0x46bccb['shift']());}catch(_0x104bcb){_0x46bccb['push'](_0x46bccb['shift']());}}}(_0x1c64,0xab23f),function(_0x11dd81,_0x381412){const _0x25798d=_0x3a7a;typeof exports==_0x25798d(0x1d3)&&typeof module<'u'?_0x381412(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define=='function'&&define['amd']?define([_0x25798d(0x1df),_0x25798d(0x1c5),_0x25798d(0x1dd)],_0x381412):(_0x11dd81=typeof globalThis<'u'?globalThis:_0x11dd81||self,_0x381412(_0x11dd81[_0x25798d(0x1ab)],_0x11dd81[_0x25798d(0x1af)],_0x11dd81[_0x25798d(0x1cf)]));}(this,function(_0x420593,_0x555514,_0x1fcfca){'use strict';const _0x3eebd8=_0x3a7a;class _0x28af19{get['McpConnectionStatusChanged'](){const _0x3a9715=_0x3a7a;return _0x420593[_0x3a9715(0x1ce)][_0x3a9715(0x1b2)];}get[_0x3eebd8(0x1d0)](){const _0x4a057e=_0x3eebd8;return _0x420593['MCPEventId'][_0x4a057e(0x1d0)];}get[_0x3eebd8(0x1ac)](){const _0x4173bd=_0x3eebd8;return _0x420593[_0x4173bd(0x1ce)][_0x4173bd(0x1ac)];}get[_0x3eebd8(0x1ad)](){const _0x375e31=_0x3eebd8;return _0x420593[_0x375e31(0x1ce)][_0x375e31(0x1ad)];}}_0x555514[_0x3eebd8(0x1b6)][_0x3eebd8(0x1db)](_0x28af19);class _0x8b8a25 extends _0x555514[_0x3eebd8(0x1d8)]{[_0x3eebd8(0x1b4)](_0x3980eb){const _0x41ae9c=_0x3eebd8;this[_0x41ae9c(0x1b5)](_0x3980eb);}['_registerMCPFacadeEvents'](_0x5ce639){const _0x58987c=_0x3eebd8,_0x43190f=_0x5ce639[_0x58987c(0x1bc)](_0x420593[_0x58987c(0x1b9)]);this[_0x58987c(0x1cc)](this[_0x58987c(0x1c9)][_0x58987c(0x1b2)],()=>_0x1fcfca[_0x58987c(0x1d5)](_0x43190f[_0x58987c(0x1dc)]['subscribe'](_0x45c7a4=>{const _0x720f7b=_0x58987c;_0x45c7a4['type']===_0x420593['MCPEventId']['McpConnectionStatusChanged']&&this[_0x720f7b(0x1d9)](this[_0x720f7b(0x1c9)][_0x720f7b(0x1b2)],_0x45c7a4[_0x720f7b(0x1c2)]);}))),this[_0x58987c(0x1cc)](this['Event'][_0x58987c(0x1d0)],()=>_0x1fcfca[_0x58987c(0x1d5)](_0x43190f[_0x58987c(0x1dc)]['subscribe'](_0x269693=>{const _0xf6d807=_0x58987c;_0x269693['type']===_0x420593[_0xf6d807(0x1ce)][_0xf6d807(0x1d0)]&&this[_0xf6d807(0x1d9)](this[_0xf6d807(0x1c9)][_0xf6d807(0x1d0)],_0x269693[_0xf6d807(0x1c2)]);}))),this[_0x58987c(0x1cc)](this['Event'][_0x58987c(0x1ac)],()=>_0x1fcfca[_0x58987c(0x1d5)](_0x43190f['event$'][_0x58987c(0x1be)](_0x540f2b=>{const _0x1f0f1d=_0x58987c;_0x540f2b[_0x1f0f1d(0x1bf)]===_0x420593['MCPEventId'][_0x1f0f1d(0x1ac)]&&this[_0x1f0f1d(0x1d9)](this[_0x1f0f1d(0x1c9)]['McpToolCallExecuted'],_0x540f2b[_0x1f0f1d(0x1c2)]);}))),this[_0x58987c(0x1cc)](this[_0x58987c(0x1c9)][_0x58987c(0x1ad)],()=>_0x1fcfca[_0x58987c(0x1d5)](_0x43190f[_0x58987c(0x1dc)][_0x58987c(0x1be)](_0x48a809=>{const _0x202967=_0x58987c;_0x48a809['type']===_0x420593[_0x202967(0x1ce)][_0x202967(0x1ad)]&&this[_0x202967(0x1d9)](this['Event'][_0x202967(0x1ad)],_0x48a809[_0x202967(0x1c2)]);})));}[_0x3eebd8(0x1cd)](_0xe76d9a,_0x27f5fb){const _0x17dc85=_0x3eebd8;return this[_0x17dc85(0x1ca)][_0x17dc85(0x1bc)](_0x420593['IMCPToolRegistry'])[_0x17dc85(0x1c4)](_0xe76d9a,_0x27f5fb);}[_0x3eebd8(0x1ba)](){const _0x1df7c9=_0x3eebd8;return this['_injector']['get'](_0x420593[_0x1df7c9(0x1c6)])['getAllTools']();}[_0x3eebd8(0x1d2)](_0x22a5db,_0x5c0b1c){const _0x43a205=_0x3eebd8;return this[_0x43a205(0x1ca)]['get'](_0x420593[_0x43a205(0x1c6)])[_0x43a205(0x1d4)](_0x22a5db,_0x5c0b1c);}[_0x3eebd8(0x1ae)](){const _0x537bd2=_0x3eebd8;return this[_0x537bd2(0x1ca)][_0x537bd2(0x1bc)](_0x420593[_0x537bd2(0x1c0)])[_0x537bd2(0x1c8)]();}[_0x3eebd8(0x1e0)](){const _0x37bf67=_0x3eebd8;this['_injector']['get'](_0x420593[_0x37bf67(0x1c0)])[_0x37bf67(0x1b0)]();}[_0x3eebd8(0x1c1)](){const _0x215ca3=_0x3eebd8;this[_0x215ca3(0x1ca)][_0x215ca3(0x1bc)](_0x420593['MCPConnectionController'])[_0x215ca3(0x1da)]();}}_0x555514['FUniver'][_0x3eebd8(0x1db)](_0x8b8a25);}));