@univerjs-pro/mcp 0.15.2-insiders.20260124-12fc7f0 → 0.15.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 _0x3992(_0x5ba9cc,_0xcbe287){_0x5ba9cc=_0x5ba9cc-0xa5;const _0x15866a=_0x1586();let _0x399249=_0x15866a[_0x5ba9cc];return _0x399249;}(function(_0x376ea1,_0x5aa18c){const _0x1ef8c5=_0x3992,_0x30772b=_0x376ea1();while(!![]){try{const _0x118d00=-parseInt(_0x1ef8c5(0xaa))/0x1*(-parseInt(_0x1ef8c5(0xa7))/0x2)+parseInt(_0x1ef8c5(0xa9))/0x3*(parseInt(_0x1ef8c5(0xcb))/0x4)+parseInt(_0x1ef8c5(0xc5))/0x5*(-parseInt(_0x1ef8c5(0xd0))/0x6)+parseInt(_0x1ef8c5(0xaf))/0x7+parseInt(_0x1ef8c5(0xd5))/0x8+parseInt(_0x1ef8c5(0xbb))/0x9+-parseInt(_0x1ef8c5(0xbf))/0xa;if(_0x118d00===_0x5aa18c)break;else _0x30772b['push'](_0x30772b['shift']());}catch(_0x2d1949){_0x30772b['push'](_0x30772b['shift']());}}}(_0x1586,0xd120a),function(_0x5e2dda,_0xa4b1e){const _0x4a153=_0x3992;typeof exports==_0x4a153(0xc6)&&typeof module<'u'?_0xa4b1e(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x4a153(0xc0)&&define[_0x4a153(0xcc)]?define([_0x4a153(0xae),_0x4a153(0xab),_0x4a153(0xb6)],_0xa4b1e):(_0x5e2dda=typeof globalThis<'u'?globalThis:_0x5e2dda||self,_0xa4b1e(_0x5e2dda[_0x4a153(0xcf)],_0x5e2dda['UniverCoreFacade'],_0x5e2dda[_0x4a153(0xa8)]));}(this,function(_0x215eec,_0x2848e1,_0x2f4c6f){'use strict';const _0xd2cea1=_0x3992;class _0x39e778{get[_0xd2cea1(0xd6)](){const _0x496399=_0xd2cea1;return _0x215eec[_0x496399(0xb4)][_0x496399(0xd6)];}get['McpToolCallReceived'](){const _0x582d8a=_0xd2cea1;return _0x215eec[_0x582d8a(0xb4)][_0x582d8a(0xcd)];}get[_0xd2cea1(0xc4)](){const _0x2ee771=_0xd2cea1;return _0x215eec[_0x2ee771(0xb4)]['McpToolCallExecuted'];}get[_0xd2cea1(0xc1)](){const _0x1e4632=_0xd2cea1;return _0x215eec[_0x1e4632(0xb4)][_0x1e4632(0xc1)];}}_0x2848e1[_0xd2cea1(0xce)]['extend'](_0x39e778);class _0x4c44e4 extends _0x2848e1[_0xd2cea1(0xc2)]{['_initialize'](_0x60b960){const _0x45d468=_0xd2cea1;this[_0x45d468(0xbc)](_0x60b960);}[_0xd2cea1(0xbc)](_0x529e0e){const _0x25ac24=_0xd2cea1,_0x4ede8e=_0x529e0e[_0x25ac24(0xa6)](_0x215eec[_0x25ac24(0xd2)]);this[_0x25ac24(0xba)](this[_0x25ac24(0xd4)][_0x25ac24(0xd6)],()=>_0x2f4c6f['toDisposable'](_0x4ede8e[_0x25ac24(0xc9)][_0x25ac24(0xac)](_0x2cf97d=>{const _0x4a874f=_0x25ac24;_0x2cf97d[_0x4a874f(0xb7)]===_0x215eec[_0x4a874f(0xb4)][_0x4a874f(0xd6)]&&this[_0x4a874f(0xb3)](this[_0x4a874f(0xd4)][_0x4a874f(0xd6)],_0x2cf97d[_0x4a874f(0xd3)]);}))),this['registerEventHandler'](this[_0x25ac24(0xd4)]['McpToolCallReceived'],()=>_0x2f4c6f[_0x25ac24(0xb0)](_0x4ede8e[_0x25ac24(0xc9)][_0x25ac24(0xac)](_0x2414f1=>{const _0x5599ec=_0x25ac24;_0x2414f1['type']===_0x215eec['MCPEventId'][_0x5599ec(0xcd)]&&this[_0x5599ec(0xb3)](this[_0x5599ec(0xd4)][_0x5599ec(0xcd)],_0x2414f1[_0x5599ec(0xd3)]);}))),this[_0x25ac24(0xba)](this[_0x25ac24(0xd4)][_0x25ac24(0xc4)],()=>_0x2f4c6f[_0x25ac24(0xb0)](_0x4ede8e['event$'][_0x25ac24(0xac)](_0x18b37d=>{const _0x3a9f04=_0x25ac24;_0x18b37d['type']===_0x215eec[_0x3a9f04(0xb4)][_0x3a9f04(0xc4)]&&this[_0x3a9f04(0xb3)](this[_0x3a9f04(0xd4)][_0x3a9f04(0xc4)],_0x18b37d['data']);}))),this[_0x25ac24(0xba)](this['Event'][_0x25ac24(0xc1)],()=>_0x2f4c6f[_0x25ac24(0xb0)](_0x4ede8e['event$'][_0x25ac24(0xac)](_0x339074=>{const _0x5661fe=_0x25ac24;_0x339074['type']===_0x215eec[_0x5661fe(0xb4)][_0x5661fe(0xc1)]&&this[_0x5661fe(0xb3)](this[_0x5661fe(0xd4)]['McpToolCallFailed'],_0x339074[_0x5661fe(0xd3)]);})));}[_0xd2cea1(0xad)](_0x9ef708,_0x522c9a){const _0x88777c=_0xd2cea1;return this['_injector']['get'](_0x215eec[_0x88777c(0xa5)])[_0x88777c(0xb2)](_0x9ef708,_0x522c9a);}[_0xd2cea1(0xc3)](){const _0xaef68d=_0xd2cea1;return this['_injector'][_0xaef68d(0xa6)](_0x215eec[_0xaef68d(0xa5)])['getAllTools']();}[_0xd2cea1(0xb8)](_0xab70cc,_0xe3a63){const _0x226abb=_0xd2cea1;return this[_0x226abb(0xc7)][_0x226abb(0xa6)](_0x215eec[_0x226abb(0xa5)])[_0x226abb(0xbe)](_0xab70cc,_0xe3a63);}[_0xd2cea1(0xb9)](){const _0x4897c8=_0xd2cea1;return this[_0x4897c8(0xc7)][_0x4897c8(0xa6)](_0x215eec[_0x4897c8(0xb5)])[_0x4897c8(0xb1)]();}[_0xd2cea1(0xc8)](){const _0x4c2811=_0xd2cea1;this[_0x4c2811(0xc7)][_0x4c2811(0xa6)](_0x215eec[_0x4c2811(0xb5)])['connect']();}[_0xd2cea1(0xd1)](){const _0x4f4434=_0xd2cea1;this[_0x4f4434(0xc7)]['get'](_0x215eec[_0x4f4434(0xb5)])[_0x4f4434(0xbd)]();}}_0x2848e1[_0xd2cea1(0xc2)][_0xd2cea1(0xca)](_0x4c44e4);}));function _0x1586(){const _0x156a6b=['UniverCore','87oWMlyF','3dRyxuF','@univerjs/core/facade','subscribe','validateMCPToolCall','@univerjs-pro/mcp','381577zbDaRP','toDisposable','getConnectionStatus','validateToolCall','fireEvent','MCPEventId','MCPConnectionController','@univerjs/core','type','callMCPTool','getMCPConnectionStatus','registerEventHandler','8409006ZViipv','_registerMCPFacadeEvents','disconnect','executeTool','14581120uELkZo','function','McpToolCallFailed','FUniver','getAllMCPTools','McpToolCallExecuted','3427715esahfh','object','_injector','connectMCP','event$','extend','145052NyOIBV','amd','McpToolCallReceived','FEventName','UniverProMcp','12oivYDn','disconnectMCP','MCPEventService','data','Event','11883320gwbJnY','McpConnectionStatusChanged','IMCPToolRegistry','get','106598JCZerE'];_0x1586=function(){return _0x156a6b;};return _0x1586();}
1
+ function _0x349b(_0x3eaa03,_0x56be8c){_0x3eaa03=_0x3eaa03-0x94;const _0x50624b=_0x5062();let _0x349b22=_0x50624b[_0x3eaa03];return _0x349b22;}function _0x5062(){const _0x23fa5c=['UniverCore','disconnectMCP','MCPEventId','connect','456759ogIAYX','McpToolCallReceived','_injector','@univerjs/core/facade','getAllTools','_initialize','98ZMiaXz','1227317uDKDmH','subscribe','MCPConnectionController','11320JRlTjn','connectMCP','callMCPTool','MCPEventService','disconnect','24130qkDRMd','data','McpToolCallFailed','@univerjs/core','getAllMCPTools','McpConnectionStatusChanged','fireEvent','event$','McpToolCallExecuted','FEventName','getConnectionStatus','get','1859cGWUOP','validateMCPToolCall','extend','amd','24iomuqD','type','toDisposable','2004OOsfdm','UniverProMcp','_registerMCPFacadeEvents','UniverCoreFacade','Event','IMCPToolRegistry','183PzZCmD','1028535OJiWFu','validateToolCall','function','registerEventHandler','1438662WeTkbQ','FUniver'];_0x5062=function(){return _0x23fa5c;};return _0x5062();}(function(_0x716949,_0x105d21){const _0x4a16f2=_0x349b,_0x11278a=_0x716949();while(!![]){try{const _0x58e420=parseInt(_0x4a16f2(0xa0))/0x1*(-parseInt(_0x4a16f2(0xbc))/0x2)+parseInt(_0x4a16f2(0xc2))/0x3*(-parseInt(_0x4a16f2(0xa4))/0x4)+parseInt(_0x4a16f2(0xc3))/0x5+-parseInt(_0x4a16f2(0x94))/0x6+parseInt(_0x4a16f2(0xa1))/0x7+-parseInt(_0x4a16f2(0xb9))/0x8*(parseInt(_0x4a16f2(0x9a))/0x9)+parseInt(_0x4a16f2(0xa9))/0xa*(parseInt(_0x4a16f2(0xb5))/0xb);if(_0x58e420===_0x105d21)break;else _0x11278a['push'](_0x11278a['shift']());}catch(_0x4e0a86){_0x11278a['push'](_0x11278a['shift']());}}}(_0x5062,0x1ec1b),function(_0x545f86,_0x1e5e42){const _0xeec2eb=_0x349b;typeof exports=='object'&&typeof module<'u'?_0x1e5e42(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0xeec2eb(0xc5)&&define[_0xeec2eb(0xb8)]?define(['@univerjs-pro/mcp',_0xeec2eb(0x9d),_0xeec2eb(0xac)],_0x1e5e42):(_0x545f86=typeof globalThis<'u'?globalThis:_0x545f86||self,_0x1e5e42(_0x545f86[_0xeec2eb(0xbd)],_0x545f86[_0xeec2eb(0xbf)],_0x545f86[_0xeec2eb(0x96)]));}(this,function(_0xbbee6e,_0xf0e66b,_0x13d549){'use strict';const _0xd3defe=_0x349b;class _0x1edb85{get[_0xd3defe(0xae)](){const _0xe565b0=_0xd3defe;return _0xbbee6e[_0xe565b0(0x98)][_0xe565b0(0xae)];}get[_0xd3defe(0x9b)](){const _0x3ae46a=_0xd3defe;return _0xbbee6e[_0x3ae46a(0x98)][_0x3ae46a(0x9b)];}get[_0xd3defe(0xb1)](){const _0x221f29=_0xd3defe;return _0xbbee6e[_0x221f29(0x98)]['McpToolCallExecuted'];}get[_0xd3defe(0xab)](){const _0x403024=_0xd3defe;return _0xbbee6e[_0x403024(0x98)][_0x403024(0xab)];}}_0xf0e66b[_0xd3defe(0xb2)][_0xd3defe(0xb7)](_0x1edb85);class _0x497ef8 extends _0xf0e66b['FUniver']{[_0xd3defe(0x9f)](_0xa090c1){const _0x2edc61=_0xd3defe;this[_0x2edc61(0xbe)](_0xa090c1);}['_registerMCPFacadeEvents'](_0x4f7e5d){const _0x542027=_0xd3defe,_0x40fd0a=_0x4f7e5d[_0x542027(0xb4)](_0xbbee6e[_0x542027(0xa7)]);this['registerEventHandler'](this['Event'][_0x542027(0xae)],()=>_0x13d549['toDisposable'](_0x40fd0a[_0x542027(0xb0)][_0x542027(0xa2)](_0x17fd30=>{const _0x2a7848=_0x542027;_0x17fd30[_0x2a7848(0xba)]===_0xbbee6e['MCPEventId']['McpConnectionStatusChanged']&&this[_0x2a7848(0xaf)](this[_0x2a7848(0xc0)][_0x2a7848(0xae)],_0x17fd30[_0x2a7848(0xaa)]);}))),this['registerEventHandler'](this[_0x542027(0xc0)]['McpToolCallReceived'],()=>_0x13d549[_0x542027(0xbb)](_0x40fd0a[_0x542027(0xb0)][_0x542027(0xa2)](_0x4b3766=>{const _0x56c51b=_0x542027;_0x4b3766[_0x56c51b(0xba)]===_0xbbee6e[_0x56c51b(0x98)][_0x56c51b(0x9b)]&&this[_0x56c51b(0xaf)](this[_0x56c51b(0xc0)][_0x56c51b(0x9b)],_0x4b3766['data']);}))),this[_0x542027(0xc6)](this['Event'][_0x542027(0xb1)],()=>_0x13d549['toDisposable'](_0x40fd0a[_0x542027(0xb0)]['subscribe'](_0x5696bc=>{const _0x29e635=_0x542027;_0x5696bc[_0x29e635(0xba)]===_0xbbee6e[_0x29e635(0x98)][_0x29e635(0xb1)]&&this[_0x29e635(0xaf)](this[_0x29e635(0xc0)][_0x29e635(0xb1)],_0x5696bc[_0x29e635(0xaa)]);}))),this[_0x542027(0xc6)](this[_0x542027(0xc0)][_0x542027(0xab)],()=>_0x13d549[_0x542027(0xbb)](_0x40fd0a['event$'][_0x542027(0xa2)](_0x36bce6=>{const _0x2ffde3=_0x542027;_0x36bce6[_0x2ffde3(0xba)]===_0xbbee6e[_0x2ffde3(0x98)][_0x2ffde3(0xab)]&&this[_0x2ffde3(0xaf)](this[_0x2ffde3(0xc0)]['McpToolCallFailed'],_0x36bce6[_0x2ffde3(0xaa)]);})));}[_0xd3defe(0xb6)](_0x375c60,_0x3aafcb){const _0x504516=_0xd3defe;return this[_0x504516(0x9c)][_0x504516(0xb4)](_0xbbee6e['IMCPToolRegistry'])[_0x504516(0xc4)](_0x375c60,_0x3aafcb);}[_0xd3defe(0xad)](){const _0x3c0f73=_0xd3defe;return this[_0x3c0f73(0x9c)][_0x3c0f73(0xb4)](_0xbbee6e[_0x3c0f73(0xc1)])[_0x3c0f73(0x9e)]();}[_0xd3defe(0xa6)](_0x84627a,_0x598748){const _0x15438c=_0xd3defe;return this['_injector'][_0x15438c(0xb4)](_0xbbee6e[_0x15438c(0xc1)])['executeTool'](_0x84627a,_0x598748);}['getMCPConnectionStatus'](){const _0xf78bdc=_0xd3defe;return this[_0xf78bdc(0x9c)]['get'](_0xbbee6e[_0xf78bdc(0xa3)])[_0xf78bdc(0xb3)]();}[_0xd3defe(0xa5)](){const _0x122a27=_0xd3defe;this[_0x122a27(0x9c)]['get'](_0xbbee6e[_0x122a27(0xa3)])[_0x122a27(0x99)]();}[_0xd3defe(0x97)](){const _0x4c50b2=_0xd3defe;this[_0x4c50b2(0x9c)][_0x4c50b2(0xb4)](_0xbbee6e[_0x4c50b2(0xa3)])[_0x4c50b2(0xa8)]();}}_0xf0e66b[_0xd3defe(0x95)][_0xd3defe(0xb7)](_0x497ef8);}));