@univerjs-pro/mcp 0.12.2-nightly.202511290905 → 0.12.3

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(_0x19772f,_0x1bc357){const _0x4d0a50=_0x1b6d,_0x467ccc=_0x19772f();while(!![]){try{const _0x3545b5=-parseInt(_0x4d0a50(0x138))/0x1+-parseInt(_0x4d0a50(0x149))/0x2*(parseInt(_0x4d0a50(0x13c))/0x3)+-parseInt(_0x4d0a50(0x144))/0x4*(-parseInt(_0x4d0a50(0x140))/0x5)+parseInt(_0x4d0a50(0x13d))/0x6+-parseInt(_0x4d0a50(0x136))/0x7+-parseInt(_0x4d0a50(0x130))/0x8*(parseInt(_0x4d0a50(0x126))/0x9)+parseInt(_0x4d0a50(0x150))/0xa;if(_0x3545b5===_0x1bc357)break;else _0x467ccc['push'](_0x467ccc['shift']());}catch(_0x3000d8){_0x467ccc['push'](_0x467ccc['shift']());}}}(_0x5f18,0x5dc2c),function(_0x36fe48,_0x34b1c7){const _0x3a4da0=_0x1b6d;typeof exports==_0x3a4da0(0x147)&&typeof module<'u'?_0x34b1c7(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x3a4da0(0x12a)&&define[_0x3a4da0(0x12b)]?define([_0x3a4da0(0x14c),_0x3a4da0(0x125),_0x3a4da0(0x154)],_0x34b1c7):(_0x36fe48=typeof globalThis<'u'?globalThis:_0x36fe48||self,_0x34b1c7(_0x36fe48['UniverProMcp'],_0x36fe48['UniverCoreFacade'],_0x36fe48[_0x3a4da0(0x148)]));}(this,function(_0x3827ce,_0x467e8b,_0x4d9d98){'use strict';const _0x2cba5a=_0x1b6d;class _0x581f48{get[_0x2cba5a(0x128)](){const _0x402f5f=_0x2cba5a;return _0x3827ce[_0x402f5f(0x153)][_0x402f5f(0x128)];}get[_0x2cba5a(0x139)](){const _0x43d296=_0x2cba5a;return _0x3827ce[_0x43d296(0x153)][_0x43d296(0x139)];}get[_0x2cba5a(0x137)](){const _0x38844e=_0x2cba5a;return _0x3827ce[_0x38844e(0x153)][_0x38844e(0x137)];}get['McpToolCallFailed'](){const _0x2eee4b=_0x2cba5a;return _0x3827ce['MCPEventId'][_0x2eee4b(0x13b)];}}_0x467e8b[_0x2cba5a(0x12c)][_0x2cba5a(0x12d)](_0x581f48);class _0x3e6500 extends _0x467e8b['FUniver']{[_0x2cba5a(0x12e)](_0x42e0ac){const _0x947afb=_0x2cba5a;this[_0x947afb(0x134)](_0x42e0ac);}[_0x2cba5a(0x134)](_0x9af219){const _0x43b683=_0x2cba5a,_0x592537=_0x9af219['get'](_0x3827ce[_0x43b683(0x129)]);this['registerEventHandler'](this[_0x43b683(0x14b)][_0x43b683(0x128)],()=>_0x4d9d98[_0x43b683(0x133)](_0x592537[_0x43b683(0x13e)][_0x43b683(0x143)](_0xa9874=>{const _0x4d2391=_0x43b683;_0xa9874[_0x4d2391(0x13f)]===_0x3827ce[_0x4d2391(0x153)]['McpConnectionStatusChanged']&&this['fireEvent'](this[_0x4d2391(0x14b)][_0x4d2391(0x128)],_0xa9874[_0x4d2391(0x14d)]);}))),this[_0x43b683(0x145)](this[_0x43b683(0x14b)]['McpToolCallReceived'],()=>_0x4d9d98[_0x43b683(0x133)](_0x592537[_0x43b683(0x13e)][_0x43b683(0x143)](_0x2ade81=>{const _0x3217ce=_0x43b683;_0x2ade81[_0x3217ce(0x13f)]===_0x3827ce['MCPEventId'][_0x3217ce(0x139)]&&this['fireEvent'](this['Event'][_0x3217ce(0x139)],_0x2ade81[_0x3217ce(0x14d)]);}))),this[_0x43b683(0x145)](this['Event'][_0x43b683(0x137)],()=>_0x4d9d98[_0x43b683(0x133)](_0x592537[_0x43b683(0x13e)][_0x43b683(0x143)](_0x2b7d15=>{const _0x547795=_0x43b683;_0x2b7d15[_0x547795(0x13f)]===_0x3827ce[_0x547795(0x153)][_0x547795(0x137)]&&this[_0x547795(0x14e)](this['Event'][_0x547795(0x137)],_0x2b7d15['data']);}))),this[_0x43b683(0x145)](this[_0x43b683(0x14b)][_0x43b683(0x13b)],()=>_0x4d9d98[_0x43b683(0x133)](_0x592537[_0x43b683(0x13e)][_0x43b683(0x143)](_0x3d2ea5=>{const _0x4b5443=_0x43b683;_0x3d2ea5[_0x4b5443(0x13f)]===_0x3827ce[_0x4b5443(0x153)][_0x4b5443(0x13b)]&&this[_0x4b5443(0x14e)](this[_0x4b5443(0x14b)]['McpToolCallFailed'],_0x3d2ea5[_0x4b5443(0x14d)]);})));}[_0x2cba5a(0x151)](_0x58769a,_0x14572e){const _0x5a06b5=_0x2cba5a;return this[_0x5a06b5(0x14f)][_0x5a06b5(0x13a)](_0x3827ce[_0x5a06b5(0x146)])[_0x5a06b5(0x132)](_0x58769a,_0x14572e);}[_0x2cba5a(0x141)](){const _0x260144=_0x2cba5a;return this[_0x260144(0x14f)][_0x260144(0x13a)](_0x3827ce[_0x260144(0x146)])[_0x260144(0x135)]();}[_0x2cba5a(0x14a)](_0x22a408,_0x778b48){const _0x2650ec=_0x2cba5a;return this[_0x2650ec(0x14f)][_0x2650ec(0x13a)](_0x3827ce[_0x2650ec(0x146)])['executeTool'](_0x22a408,_0x778b48);}[_0x2cba5a(0x12f)](){const _0xca4aa6=_0x2cba5a;return this[_0xca4aa6(0x14f)][_0xca4aa6(0x13a)](_0x3827ce[_0xca4aa6(0x142)])[_0xca4aa6(0x124)]();}['connectMCP'](){const _0x57d28b=_0x2cba5a;this[_0x57d28b(0x14f)][_0x57d28b(0x13a)](_0x3827ce[_0x57d28b(0x142)])[_0x57d28b(0x152)]();}['disconnectMCP'](){const _0x56a5ce=_0x2cba5a;this[_0x56a5ce(0x14f)][_0x56a5ce(0x13a)](_0x3827ce['MCPConnectionController'])[_0x56a5ce(0x127)]();}}_0x467e8b[_0x2cba5a(0x131)]['extend'](_0x3e6500);}));function _0x1b6d(_0x18b8d4,_0x566d3a){const _0x5f1872=_0x5f18();return _0x1b6d=function(_0x1b6ded,_0x17400c){_0x1b6ded=_0x1b6ded-0x124;let _0x15d11c=_0x5f1872[_0x1b6ded];return _0x15d11c;},_0x1b6d(_0x18b8d4,_0x566d3a);}function _0x5f18(){const _0x1463f9=['fireEvent','_injector','11741390MGsMNl','validateMCPToolCall','connect','MCPEventId','@univerjs/core','getConnectionStatus','@univerjs/core/facade','33102CUEfwu','disconnect','McpConnectionStatusChanged','MCPEventService','function','amd','FEventName','extend','_initialize','getMCPConnectionStatus','1264lujynB','FUniver','validateToolCall','toDisposable','_registerMCPFacadeEvents','getAllTools','3893673KEexZd','McpToolCallExecuted','83748DSWnuw','McpToolCallReceived','get','McpToolCallFailed','3cqPyqm','3289362JoxlEf','event$','type','15215AVfhNP','getAllMCPTools','MCPConnectionController','subscribe','224hABelf','registerEventHandler','IMCPToolRegistry','object','UniverCore','575238mqcgfC','callMCPTool','Event','@univerjs-pro/mcp','data'];_0x5f18=function(){return _0x1463f9;};return _0x5f18();}
1
+ function _0x5241(_0x2633eb,_0x8b5f57){const _0x2ca763=_0x2ca7();return _0x5241=function(_0x524135,_0x510e0d){_0x524135=_0x524135-0x118;let _0x5bdd88=_0x2ca763[_0x524135];return _0x5bdd88;},_0x5241(_0x2633eb,_0x8b5f57);}(function(_0x1a771a,_0xe04575){const _0x509cf8=_0x5241,_0x3f195f=_0x1a771a();while(!![]){try{const _0x4dbe88=parseInt(_0x509cf8(0x139))/0x1+-parseInt(_0x509cf8(0x130))/0x2*(-parseInt(_0x509cf8(0x129))/0x3)+-parseInt(_0x509cf8(0x138))/0x4*(-parseInt(_0x509cf8(0x143))/0x5)+-parseInt(_0x509cf8(0x145))/0x6*(parseInt(_0x509cf8(0x136))/0x7)+-parseInt(_0x509cf8(0x13f))/0x8*(-parseInt(_0x509cf8(0x11a))/0x9)+parseInt(_0x509cf8(0x132))/0xa+-parseInt(_0x509cf8(0x124))/0xb;if(_0x4dbe88===_0xe04575)break;else _0x3f195f['push'](_0x3f195f['shift']());}catch(_0x5cbf65){_0x3f195f['push'](_0x3f195f['shift']());}}}(_0x2ca7,0x60c5e),function(_0x42d420,_0x12886a){const _0x4f325c=_0x5241;typeof exports==_0x4f325c(0x120)&&typeof module<'u'?_0x12886a(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define=='function'&&define[_0x4f325c(0x128)]?define([_0x4f325c(0x149),_0x4f325c(0x123),'@univerjs/core'],_0x12886a):(_0x42d420=typeof globalThis<'u'?globalThis:_0x42d420||self,_0x12886a(_0x42d420[_0x4f325c(0x146)],_0x42d420[_0x4f325c(0x118)],_0x42d420[_0x4f325c(0x12d)]));}(this,function(_0x266ae3,_0x586bb7,_0x3eb257){'use strict';const _0x563246=_0x5241;class _0x25e049{get[_0x563246(0x11f)](){const _0x4e069a=_0x563246;return _0x266ae3['MCPEventId'][_0x4e069a(0x11f)];}get['McpToolCallReceived'](){const _0x40539a=_0x563246;return _0x266ae3[_0x40539a(0x135)][_0x40539a(0x137)];}get[_0x563246(0x12c)](){const _0x10d2ed=_0x563246;return _0x266ae3[_0x10d2ed(0x135)][_0x10d2ed(0x12c)];}get[_0x563246(0x13a)](){const _0x1404a3=_0x563246;return _0x266ae3[_0x1404a3(0x135)][_0x1404a3(0x13a)];}}_0x586bb7[_0x563246(0x141)][_0x563246(0x142)](_0x25e049);class _0x346e75 extends _0x586bb7[_0x563246(0x12a)]{[_0x563246(0x134)](_0xfb776a){const _0x1fab7b=_0x563246;this[_0x1fab7b(0x131)](_0xfb776a);}[_0x563246(0x131)](_0x4b717b){const _0x50c96e=_0x563246,_0x2873dd=_0x4b717b[_0x50c96e(0x13d)](_0x266ae3[_0x50c96e(0x14a)]);this[_0x50c96e(0x140)](this[_0x50c96e(0x11e)][_0x50c96e(0x11f)],()=>_0x3eb257[_0x50c96e(0x11c)](_0x2873dd[_0x50c96e(0x12b)][_0x50c96e(0x133)](_0x412ad9=>{const _0x323e96=_0x50c96e;_0x412ad9[_0x323e96(0x13b)]===_0x266ae3['MCPEventId'][_0x323e96(0x11f)]&&this[_0x323e96(0x13c)](this[_0x323e96(0x11e)][_0x323e96(0x11f)],_0x412ad9[_0x323e96(0x11d)]);}))),this[_0x50c96e(0x140)](this[_0x50c96e(0x11e)][_0x50c96e(0x137)],()=>_0x3eb257[_0x50c96e(0x11c)](_0x2873dd[_0x50c96e(0x12b)][_0x50c96e(0x133)](_0x204cae=>{const _0x3accb4=_0x50c96e;_0x204cae['type']===_0x266ae3['MCPEventId'][_0x3accb4(0x137)]&&this['fireEvent'](this['Event']['McpToolCallReceived'],_0x204cae[_0x3accb4(0x11d)]);}))),this[_0x50c96e(0x140)](this[_0x50c96e(0x11e)][_0x50c96e(0x12c)],()=>_0x3eb257[_0x50c96e(0x11c)](_0x2873dd['event$']['subscribe'](_0x45310=>{const _0xda57ef=_0x50c96e;_0x45310['type']===_0x266ae3[_0xda57ef(0x135)][_0xda57ef(0x12c)]&&this['fireEvent'](this[_0xda57ef(0x11e)][_0xda57ef(0x12c)],_0x45310[_0xda57ef(0x11d)]);}))),this[_0x50c96e(0x140)](this['Event']['McpToolCallFailed'],()=>_0x3eb257[_0x50c96e(0x11c)](_0x2873dd[_0x50c96e(0x12b)][_0x50c96e(0x133)](_0x502553=>{const _0x1caca9=_0x50c96e;_0x502553[_0x1caca9(0x13b)]===_0x266ae3[_0x1caca9(0x135)][_0x1caca9(0x13a)]&&this[_0x1caca9(0x13c)](this['Event'][_0x1caca9(0x13a)],_0x502553['data']);})));}[_0x563246(0x125)](_0x26fe2f,_0x5718d0){const _0x348558=_0x563246;return this['_injector'][_0x348558(0x13d)](_0x266ae3[_0x348558(0x13e)])[_0x348558(0x144)](_0x26fe2f,_0x5718d0);}['getAllMCPTools'](){const _0x3c4d03=_0x563246;return this[_0x3c4d03(0x148)][_0x3c4d03(0x13d)](_0x266ae3[_0x3c4d03(0x13e)])[_0x3c4d03(0x122)]();}[_0x563246(0x12e)](_0x5e02b8,_0x233631){const _0x4f490c=_0x563246;return this[_0x4f490c(0x148)][_0x4f490c(0x13d)](_0x266ae3[_0x4f490c(0x13e)])[_0x4f490c(0x11b)](_0x5e02b8,_0x233631);}[_0x563246(0x147)](){const _0x293862=_0x563246;return this[_0x293862(0x148)][_0x293862(0x13d)](_0x266ae3[_0x293862(0x126)])[_0x293862(0x119)]();}[_0x563246(0x127)](){const _0x47cf50=_0x563246;this['_injector'][_0x47cf50(0x13d)](_0x266ae3[_0x47cf50(0x126)])['connect']();}[_0x563246(0x12f)](){const _0x688da9=_0x563246;this[_0x688da9(0x148)]['get'](_0x266ae3[_0x688da9(0x126)])[_0x688da9(0x121)]();}}_0x586bb7['FUniver'][_0x563246(0x142)](_0x346e75);}));function _0x2ca7(){const _0x496f8e=['validateMCPToolCall','MCPConnectionController','connectMCP','amd','42NApFrn','FUniver','event$','McpToolCallExecuted','UniverCore','callMCPTool','disconnectMCP','24516skIcsn','_registerMCPFacadeEvents','5136290IxNdFT','subscribe','_initialize','MCPEventId','1575126hZTwCh','McpToolCallReceived','1371196clNZfU','416909TMxjbp','McpToolCallFailed','type','fireEvent','get','IMCPToolRegistry','8800qxrSAN','registerEventHandler','FEventName','extend','10CoTEMP','validateToolCall','12TopzUp','UniverProMcp','getMCPConnectionStatus','_injector','@univerjs-pro/mcp','MCPEventService','UniverCoreFacade','getConnectionStatus','4527rXqCEh','executeTool','toDisposable','data','Event','McpConnectionStatusChanged','object','disconnect','getAllTools','@univerjs/core/facade','16440930wqHFlv'];_0x2ca7=function(){return _0x496f8e;};return _0x2ca7();}