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

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 _0x4d63(_0x5d3806,_0x26ff2f){const _0x720a84=_0x720a();return _0x4d63=function(_0x4d631a,_0x37afa4){_0x4d631a=_0x4d631a-0xd1;let _0x294907=_0x720a84[_0x4d631a];return _0x294907;},_0x4d63(_0x5d3806,_0x26ff2f);}function _0x720a(){const _0x2d8897=['McpToolCallReceived','McpToolCallExecuted','13058kJUaxd','209Ntbjpw','validateMCPToolCall','extend','1364484kyHmUt','284NGRUlv','getAllTools','5698338EUwrtQ','7HGizZe','Event','object','UniverProMcp','disconnectMCP','callMCPTool','@univerjs/core/facade','1295224nkzEBO','MCPEventService','2873055sqyCfZ','_registerMCPFacadeEvents','25524zhGKFm','405378ELhhwF','FUniver','@univerjs-pro/mcp','57sSHVgE','toDisposable','_initialize','_injector','registerEventHandler','connect','connectMCP','fireEvent','data','disconnect','McpToolCallFailed','MCPEventId','function','MCPConnectionController','subscribe','110crvryi','IMCPToolRegistry','event$','McpConnectionStatusChanged','getMCPConnectionStatus','type','get'];_0x720a=function(){return _0x2d8897;};return _0x720a();}(function(_0x4e756d,_0x2f6806){const _0x2f8d10=_0x4d63,_0x78bc92=_0x4e756d();while(!![]){try{const _0x39ee41=-parseInt(_0x2f8d10(0xf3))/0x1*(parseInt(_0x2f8d10(0xdc))/0x2)+parseInt(_0x2f8d10(0xef))/0x3*(-parseInt(_0x2f8d10(0xe1))/0x4)+parseInt(_0x2f8d10(0xed))/0x5+parseInt(_0x2f8d10(0xe3))/0x6*(-parseInt(_0x2f8d10(0xe4))/0x7)+parseInt(_0x2f8d10(0xeb))/0x8+-parseInt(_0x2f8d10(0xf0))/0x9*(parseInt(_0x2f8d10(0xd3))/0xa)+parseInt(_0x2f8d10(0xdd))/0xb*(parseInt(_0x2f8d10(0xe0))/0xc);if(_0x39ee41===_0x2f6806)break;else _0x78bc92['push'](_0x78bc92['shift']());}catch(_0x466d82){_0x78bc92['push'](_0x78bc92['shift']());}}}(_0x720a,0x74195),function(_0x584250,_0x5c1a7c){const _0x15eba3=_0x4d63;typeof exports==_0x15eba3(0xe6)&&typeof module<'u'?_0x5c1a7c(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x15eba3(0xff)&&define['amd']?define([_0x15eba3(0xf2),_0x15eba3(0xea),'@univerjs/core'],_0x5c1a7c):(_0x584250=typeof globalThis<'u'?globalThis:_0x584250||self,_0x5c1a7c(_0x584250[_0x15eba3(0xe7)],_0x584250['UniverCoreFacade'],_0x584250['UniverCore']));}(this,function(_0x1a9b5d,_0x2ba270,_0x4dbc0e){'use strict';const _0x17b341=_0x4d63;class _0x1bd628{get[_0x17b341(0xd6)](){const _0x24b3ed=_0x17b341;return _0x1a9b5d['MCPEventId'][_0x24b3ed(0xd6)];}get[_0x17b341(0xda)](){return _0x1a9b5d['MCPEventId']['McpToolCallReceived'];}get[_0x17b341(0xdb)](){const _0x4b6aca=_0x17b341;return _0x1a9b5d[_0x4b6aca(0xfe)][_0x4b6aca(0xdb)];}get[_0x17b341(0xfd)](){const _0x8f055a=_0x17b341;return _0x1a9b5d['MCPEventId'][_0x8f055a(0xfd)];}}_0x2ba270['FEventName'][_0x17b341(0xdf)](_0x1bd628);class _0xe8adb3 extends _0x2ba270['FUniver']{[_0x17b341(0xf5)](_0x2a0853){const _0x23d128=_0x17b341;this[_0x23d128(0xee)](_0x2a0853);}[_0x17b341(0xee)](_0x52c9de){const _0x2429a0=_0x17b341,_0x5543bc=_0x52c9de[_0x2429a0(0xd9)](_0x1a9b5d[_0x2429a0(0xec)]);this['registerEventHandler'](this[_0x2429a0(0xe5)]['McpConnectionStatusChanged'],()=>_0x4dbc0e['toDisposable'](_0x5543bc[_0x2429a0(0xd5)][_0x2429a0(0xd2)](_0x53d7b7=>{const _0x109696=_0x2429a0;_0x53d7b7[_0x109696(0xd8)]===_0x1a9b5d[_0x109696(0xfe)][_0x109696(0xd6)]&&this[_0x109696(0xfa)](this[_0x109696(0xe5)][_0x109696(0xd6)],_0x53d7b7['data']);}))),this['registerEventHandler'](this[_0x2429a0(0xe5)][_0x2429a0(0xda)],()=>_0x4dbc0e['toDisposable'](_0x5543bc[_0x2429a0(0xd5)][_0x2429a0(0xd2)](_0x1237cf=>{const _0x2b5599=_0x2429a0;_0x1237cf[_0x2b5599(0xd8)]===_0x1a9b5d[_0x2b5599(0xfe)][_0x2b5599(0xda)]&&this[_0x2b5599(0xfa)](this['Event']['McpToolCallReceived'],_0x1237cf[_0x2b5599(0xfb)]);}))),this[_0x2429a0(0xf7)](this[_0x2429a0(0xe5)]['McpToolCallExecuted'],()=>_0x4dbc0e['toDisposable'](_0x5543bc[_0x2429a0(0xd5)][_0x2429a0(0xd2)](_0x3bacd0=>{const _0x99dab6=_0x2429a0;_0x3bacd0[_0x99dab6(0xd8)]===_0x1a9b5d[_0x99dab6(0xfe)][_0x99dab6(0xdb)]&&this['fireEvent'](this[_0x99dab6(0xe5)][_0x99dab6(0xdb)],_0x3bacd0[_0x99dab6(0xfb)]);}))),this['registerEventHandler'](this[_0x2429a0(0xe5)][_0x2429a0(0xfd)],()=>_0x4dbc0e[_0x2429a0(0xf4)](_0x5543bc[_0x2429a0(0xd5)][_0x2429a0(0xd2)](_0x236a9d=>{const _0x1e8d5b=_0x2429a0;_0x236a9d[_0x1e8d5b(0xd8)]===_0x1a9b5d['MCPEventId']['McpToolCallFailed']&&this[_0x1e8d5b(0xfa)](this[_0x1e8d5b(0xe5)][_0x1e8d5b(0xfd)],_0x236a9d['data']);})));}[_0x17b341(0xde)](_0x4db0a3,_0x4ed2a8){const _0x1f830f=_0x17b341;return this[_0x1f830f(0xf6)][_0x1f830f(0xd9)](_0x1a9b5d[_0x1f830f(0xd4)])['validateToolCall'](_0x4db0a3,_0x4ed2a8);}['getAllMCPTools'](){const _0x4081cb=_0x17b341;return this[_0x4081cb(0xf6)][_0x4081cb(0xd9)](_0x1a9b5d['IMCPToolRegistry'])[_0x4081cb(0xe2)]();}[_0x17b341(0xe9)](_0x597a18,_0x2f1f98){const _0x1412fa=_0x17b341;return this[_0x1412fa(0xf6)][_0x1412fa(0xd9)](_0x1a9b5d[_0x1412fa(0xd4)])['executeTool'](_0x597a18,_0x2f1f98);}[_0x17b341(0xd7)](){const _0x2c19bb=_0x17b341;return this[_0x2c19bb(0xf6)][_0x2c19bb(0xd9)](_0x1a9b5d[_0x2c19bb(0xd1)])['getConnectionStatus']();}[_0x17b341(0xf9)](){const _0x3b0506=_0x17b341;this[_0x3b0506(0xf6)][_0x3b0506(0xd9)](_0x1a9b5d[_0x3b0506(0xd1)])[_0x3b0506(0xf8)]();}[_0x17b341(0xe8)](){const _0x1fcffb=_0x17b341;this[_0x1fcffb(0xf6)][_0x1fcffb(0xd9)](_0x1a9b5d[_0x1fcffb(0xd1)])[_0x1fcffb(0xfc)]();}}_0x2ba270[_0x17b341(0xf1)]['extend'](_0xe8adb3);}));
1
+ function _0x2e63(_0x483918,_0x1ceeae){const _0x533d41=_0x533d();return _0x2e63=function(_0x2e6371,_0x58a9e2){_0x2e6371=_0x2e6371-0xab;let _0x3f894d=_0x533d41[_0x2e6371];return _0x3f894d;},_0x2e63(_0x483918,_0x1ceeae);}function _0x533d(){const _0x2119c2=['subscribe','getMCPConnectionStatus','object','UniverCore','disconnectMCP','1726362eTnJLT','FEventName','@univerjs-pro/mcp','connectMCP','MCPConnectionController','701750TeXHCd','FUniver','_initialize','_registerMCPFacadeEvents','type','IMCPToolRegistry','McpConnectionStatusChanged','3770437EFAZWf','disconnect','Event','amd','McpToolCallFailed','getAllMCPTools','183873CCiFEo','McpToolCallExecuted','executeTool','toDisposable','24gyPsrt','fireEvent','10JSPsuJ','validateToolCall','extend','310svGZgq','McpToolCallReceived','getConnectionStatus','event$','2298EKHNZV','data','registerEventHandler','538796cdIxzI','_injector','12psNeaa','MCPEventId','UniverProMcp','getAllTools','validateMCPToolCall','@univerjs/core','@univerjs/core/facade','28785Uvnkeh','get'];_0x533d=function(){return _0x2119c2;};return _0x533d();}(function(_0x597a16,_0x1ea426){const _0x9d6a24=_0x2e63,_0x4097e1=_0x597a16();while(!![]){try{const _0x442a44=parseInt(_0x9d6a24(0xd7))/0x1+-parseInt(_0x9d6a24(0xce))/0x2+parseInt(_0x9d6a24(0xbe))/0x3*(parseInt(_0x9d6a24(0xd0))/0x4)+-parseInt(_0x9d6a24(0xc7))/0x5*(parseInt(_0x9d6a24(0xcb))/0x6)+parseInt(_0x9d6a24(0xb1))/0x7*(-parseInt(_0x9d6a24(0xc2))/0x8)+-parseInt(_0x9d6a24(0xac))/0x9*(-parseInt(_0x9d6a24(0xc4))/0xa)+parseInt(_0x9d6a24(0xb8))/0xb;if(_0x442a44===_0x1ea426)break;else _0x4097e1['push'](_0x4097e1['shift']());}catch(_0x4e1983){_0x4097e1['push'](_0x4097e1['shift']());}}}(_0x533d,0x25705),function(_0x3bacc5,_0x3bdbb4){const _0x5147a2=_0x2e63;typeof exports==_0x5147a2(0xdb)&&typeof module<'u'?_0x3bdbb4(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define=='function'&&define[_0x5147a2(0xbb)]?define([_0x5147a2(0xae),_0x5147a2(0xd6),_0x5147a2(0xd5)],_0x3bdbb4):(_0x3bacc5=typeof globalThis<'u'?globalThis:_0x3bacc5||self,_0x3bdbb4(_0x3bacc5[_0x5147a2(0xd2)],_0x3bacc5['UniverCoreFacade'],_0x3bacc5[_0x5147a2(0xdc)]));}(this,function(_0x4679fa,_0x4c2585,_0x32657c){'use strict';const _0x432656=_0x2e63;class _0x42d488{get[_0x432656(0xb7)](){const _0xc58014=_0x432656;return _0x4679fa[_0xc58014(0xd1)][_0xc58014(0xb7)];}get[_0x432656(0xc8)](){const _0x184c79=_0x432656;return _0x4679fa[_0x184c79(0xd1)][_0x184c79(0xc8)];}get[_0x432656(0xbf)](){const _0x178176=_0x432656;return _0x4679fa[_0x178176(0xd1)]['McpToolCallExecuted'];}get[_0x432656(0xbc)](){const _0x282f82=_0x432656;return _0x4679fa[_0x282f82(0xd1)][_0x282f82(0xbc)];}}_0x4c2585[_0x432656(0xad)][_0x432656(0xc6)](_0x42d488);class _0x1a90fb extends _0x4c2585[_0x432656(0xb2)]{[_0x432656(0xb3)](_0x275c86){const _0x5074a5=_0x432656;this[_0x5074a5(0xb4)](_0x275c86);}['_registerMCPFacadeEvents'](_0x299604){const _0x5d8dba=_0x432656,_0x2f9562=_0x299604[_0x5d8dba(0xd8)](_0x4679fa['MCPEventService']);this[_0x5d8dba(0xcd)](this[_0x5d8dba(0xba)]['McpConnectionStatusChanged'],()=>_0x32657c[_0x5d8dba(0xc1)](_0x2f9562['event$']['subscribe'](_0x1e8bd8=>{const _0x51bec9=_0x5d8dba;_0x1e8bd8[_0x51bec9(0xb5)]===_0x4679fa[_0x51bec9(0xd1)][_0x51bec9(0xb7)]&&this['fireEvent'](this[_0x51bec9(0xba)]['McpConnectionStatusChanged'],_0x1e8bd8[_0x51bec9(0xcc)]);}))),this['registerEventHandler'](this[_0x5d8dba(0xba)][_0x5d8dba(0xc8)],()=>_0x32657c['toDisposable'](_0x2f9562[_0x5d8dba(0xca)][_0x5d8dba(0xd9)](_0x3c0e06=>{const _0x1b87da=_0x5d8dba;_0x3c0e06[_0x1b87da(0xb5)]===_0x4679fa['MCPEventId'][_0x1b87da(0xc8)]&&this[_0x1b87da(0xc3)](this['Event'][_0x1b87da(0xc8)],_0x3c0e06[_0x1b87da(0xcc)]);}))),this[_0x5d8dba(0xcd)](this[_0x5d8dba(0xba)][_0x5d8dba(0xbf)],()=>_0x32657c[_0x5d8dba(0xc1)](_0x2f9562[_0x5d8dba(0xca)][_0x5d8dba(0xd9)](_0x4ecb89=>{const _0x18b586=_0x5d8dba;_0x4ecb89[_0x18b586(0xb5)]===_0x4679fa['MCPEventId'][_0x18b586(0xbf)]&&this[_0x18b586(0xc3)](this[_0x18b586(0xba)][_0x18b586(0xbf)],_0x4ecb89['data']);}))),this['registerEventHandler'](this[_0x5d8dba(0xba)][_0x5d8dba(0xbc)],()=>_0x32657c[_0x5d8dba(0xc1)](_0x2f9562[_0x5d8dba(0xca)][_0x5d8dba(0xd9)](_0x4fd3a8=>{const _0xd1ddad=_0x5d8dba;_0x4fd3a8['type']===_0x4679fa['MCPEventId'][_0xd1ddad(0xbc)]&&this[_0xd1ddad(0xc3)](this[_0xd1ddad(0xba)][_0xd1ddad(0xbc)],_0x4fd3a8['data']);})));}[_0x432656(0xd4)](_0x2883d7,_0x5602f6){const _0x37c05f=_0x432656;return this[_0x37c05f(0xcf)]['get'](_0x4679fa[_0x37c05f(0xb6)])[_0x37c05f(0xc5)](_0x2883d7,_0x5602f6);}[_0x432656(0xbd)](){const _0x1c24d8=_0x432656;return this[_0x1c24d8(0xcf)][_0x1c24d8(0xd8)](_0x4679fa['IMCPToolRegistry'])[_0x1c24d8(0xd3)]();}['callMCPTool'](_0x532b43,_0x1565c9){const _0x344d34=_0x432656;return this[_0x344d34(0xcf)][_0x344d34(0xd8)](_0x4679fa['IMCPToolRegistry'])[_0x344d34(0xc0)](_0x532b43,_0x1565c9);}[_0x432656(0xda)](){const _0x2337bb=_0x432656;return this['_injector']['get'](_0x4679fa[_0x2337bb(0xb0)])[_0x2337bb(0xc9)]();}[_0x432656(0xaf)](){const _0xbc88de=_0x432656;this[_0xbc88de(0xcf)][_0xbc88de(0xd8)](_0x4679fa[_0xbc88de(0xb0)])['connect']();}[_0x432656(0xab)](){const _0x252a09=_0x432656;this[_0x252a09(0xcf)][_0x252a09(0xd8)](_0x4679fa[_0x252a09(0xb0)])[_0x252a09(0xb9)]();}}_0x4c2585[_0x432656(0xb2)][_0x432656(0xc6)](_0x1a90fb);}));