@univerjs-pro/mcp 0.15.1 → 0.15.2

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 _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);}));
1
+ (function(_0x1643e2,_0x4a99fb){const _0x194e92=_0x3146,_0x5253c7=_0x1643e2();while(!![]){try{const _0x2bf509=-parseInt(_0x194e92(0xe5))/0x1*(parseInt(_0x194e92(0xfa))/0x2)+-parseInt(_0x194e92(0x10b))/0x3*(parseInt(_0x194e92(0xe3))/0x4)+parseInt(_0x194e92(0xf3))/0x5*(-parseInt(_0x194e92(0x105))/0x6)+parseInt(_0x194e92(0xf8))/0x7+-parseInt(_0x194e92(0xe6))/0x8*(-parseInt(_0x194e92(0xe0))/0x9)+parseInt(_0x194e92(0xeb))/0xa*(parseInt(_0x194e92(0xfe))/0xb)+-parseInt(_0x194e92(0x10f))/0xc;if(_0x2bf509===_0x4a99fb)break;else _0x5253c7['push'](_0x5253c7['shift']());}catch(_0x315523){_0x5253c7['push'](_0x5253c7['shift']());}}}(_0x1864,0x2d7b3),function(_0x2f984c,_0x5498d2){const _0x207e50=_0x3146;typeof exports==_0x207e50(0xf1)&&typeof module<'u'?_0x5498d2(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x207e50(0x10a)&&define['amd']?define([_0x207e50(0x100),_0x207e50(0xf5),_0x207e50(0xec)],_0x5498d2):(_0x2f984c=typeof globalThis<'u'?globalThis:_0x2f984c||self,_0x5498d2(_0x2f984c[_0x207e50(0xfc)],_0x2f984c['UniverCoreFacade'],_0x2f984c[_0x207e50(0xf7)]));}(this,function(_0x2b16cb,_0x1d0347,_0x4d2a03){'use strict';const _0x638b8a=_0x3146;class _0x28035c{get['McpConnectionStatusChanged'](){const _0x484060=_0x3146;return _0x2b16cb[_0x484060(0xdf)]['McpConnectionStatusChanged'];}get['McpToolCallReceived'](){const _0x1284db=_0x3146;return _0x2b16cb[_0x1284db(0xdf)][_0x1284db(0xf2)];}get[_0x638b8a(0x107)](){const _0x365da3=_0x638b8a;return _0x2b16cb[_0x365da3(0xdf)][_0x365da3(0x107)];}get['McpToolCallFailed'](){const _0x26be44=_0x638b8a;return _0x2b16cb[_0x26be44(0xdf)][_0x26be44(0xe9)];}}_0x1d0347['FEventName'][_0x638b8a(0x10e)](_0x28035c);class _0x311f07 extends _0x1d0347[_0x638b8a(0xe2)]{[_0x638b8a(0x102)](_0x55e59a){const _0x1b4895=_0x638b8a;this[_0x1b4895(0xe7)](_0x55e59a);}[_0x638b8a(0xe7)](_0x5a0759){const _0x3b0d4b=_0x638b8a,_0x3f372e=_0x5a0759[_0x3b0d4b(0x106)](_0x2b16cb[_0x3b0d4b(0xfd)]);this['registerEventHandler'](this[_0x3b0d4b(0xfb)][_0x3b0d4b(0xef)],()=>_0x4d2a03[_0x3b0d4b(0xe4)](_0x3f372e[_0x3b0d4b(0xe1)][_0x3b0d4b(0xe8)](_0x4e1642=>{const _0x57db22=_0x3b0d4b;_0x4e1642[_0x57db22(0xff)]===_0x2b16cb[_0x57db22(0xdf)][_0x57db22(0xef)]&&this[_0x57db22(0x103)](this[_0x57db22(0xfb)][_0x57db22(0xef)],_0x4e1642[_0x57db22(0xea)]);}))),this[_0x3b0d4b(0x109)](this[_0x3b0d4b(0xfb)]['McpToolCallReceived'],()=>_0x4d2a03['toDisposable'](_0x3f372e['event$']['subscribe'](_0x276e22=>{const _0x547f17=_0x3b0d4b;_0x276e22[_0x547f17(0xff)]===_0x2b16cb['MCPEventId'][_0x547f17(0xf2)]&&this[_0x547f17(0x103)](this['Event'][_0x547f17(0xf2)],_0x276e22['data']);}))),this[_0x3b0d4b(0x109)](this[_0x3b0d4b(0xfb)]['McpToolCallExecuted'],()=>_0x4d2a03[_0x3b0d4b(0xe4)](_0x3f372e[_0x3b0d4b(0xe1)][_0x3b0d4b(0xe8)](_0x25eaf0=>{const _0x354382=_0x3b0d4b;_0x25eaf0['type']===_0x2b16cb['MCPEventId'][_0x354382(0x107)]&&this[_0x354382(0x103)](this[_0x354382(0xfb)][_0x354382(0x107)],_0x25eaf0[_0x354382(0xea)]);}))),this[_0x3b0d4b(0x109)](this[_0x3b0d4b(0xfb)][_0x3b0d4b(0xe9)],()=>_0x4d2a03['toDisposable'](_0x3f372e[_0x3b0d4b(0xe1)][_0x3b0d4b(0xe8)](_0x119d0e=>{const _0x2fede3=_0x3b0d4b;_0x119d0e[_0x2fede3(0xff)]===_0x2b16cb[_0x2fede3(0xdf)]['McpToolCallFailed']&&this['fireEvent'](this[_0x2fede3(0xfb)]['McpToolCallFailed'],_0x119d0e['data']);})));}[_0x638b8a(0x108)](_0x2c1343,_0x1f07a3){const _0x2de96d=_0x638b8a;return this['_injector'][_0x2de96d(0x106)](_0x2b16cb['IMCPToolRegistry'])[_0x2de96d(0x101)](_0x2c1343,_0x1f07a3);}['getAllMCPTools'](){const _0x2779d8=_0x638b8a;return this[_0x2779d8(0x10c)][_0x2779d8(0x106)](_0x2b16cb[_0x2779d8(0x104)])[_0x2779d8(0xf9)]();}[_0x638b8a(0xf0)](_0x11b0ad,_0x39e933){const _0x3ed81b=_0x638b8a;return this[_0x3ed81b(0x10c)]['get'](_0x2b16cb['IMCPToolRegistry'])[_0x3ed81b(0xf6)](_0x11b0ad,_0x39e933);}[_0x638b8a(0xed)](){const _0x4e4144=_0x638b8a;return this[_0x4e4144(0x10c)][_0x4e4144(0x106)](_0x2b16cb[_0x4e4144(0xf4)])[_0x4e4144(0xee)]();}[_0x638b8a(0x10d)](){const _0x104461=_0x638b8a;this[_0x104461(0x10c)][_0x104461(0x106)](_0x2b16cb[_0x104461(0xf4)])['connect']();}['disconnectMCP'](){const _0x1af5c3=_0x638b8a;this[_0x1af5c3(0x10c)][_0x1af5c3(0x106)](_0x2b16cb['MCPConnectionController'])['disconnect']();}}_0x1d0347[_0x638b8a(0xe2)][_0x638b8a(0x10e)](_0x311f07);}));function _0x3146(_0x42913d,_0xe5b317){_0x42913d=_0x42913d-0xdf;const _0x1864ce=_0x1864();let _0x314632=_0x1864ce[_0x42913d];return _0x314632;}function _0x1864(){const _0x7f3b7a=['2362339hGffbh','getAllTools','2fEltHu','Event','UniverProMcp','MCPEventService','24211Mzipit','type','@univerjs-pro/mcp','validateToolCall','_initialize','fireEvent','IMCPToolRegistry','60XxEAMu','get','McpToolCallExecuted','validateMCPToolCall','registerEventHandler','function','6009hEsErP','_injector','connectMCP','extend','1488792Ylnovd','MCPEventId','18BFzdEo','event$','FUniver','68bkXSUM','toDisposable','301114bUMPaY','727976CojuwB','_registerMCPFacadeEvents','subscribe','McpToolCallFailed','data','1410FmBJRQ','@univerjs/core','getMCPConnectionStatus','getConnectionStatus','McpConnectionStatusChanged','callMCPTool','object','McpToolCallReceived','92145ZKOUZs','MCPConnectionController','@univerjs/core/facade','executeTool','UniverCore'];_0x1864=function(){return _0x7f3b7a;};return _0x1864();}