@univerjs-pro/mcp 0.15.0-insiders.20260107-3441c7a → 0.15.0-insiders.20260107-3d1cfdf

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 _0x18f8(_0x4fedab,_0x22810d){_0x4fedab=_0x4fedab-0x116;const _0x6d57b8=_0x6d57();let _0x18f835=_0x6d57b8[_0x4fedab];return _0x18f835;}(function(_0x1fa421,_0x1427c8){const _0x409dc1=_0x18f8,_0x28776b=_0x1fa421();while(!![]){try{const _0x69a2b1=-parseInt(_0x409dc1(0x13d))/0x1*(parseInt(_0x409dc1(0x124))/0x2)+parseInt(_0x409dc1(0x12b))/0x3*(-parseInt(_0x409dc1(0x11c))/0x4)+parseInt(_0x409dc1(0x146))/0x5*(-parseInt(_0x409dc1(0x13b))/0x6)+-parseInt(_0x409dc1(0x137))/0x7*(parseInt(_0x409dc1(0x136))/0x8)+parseInt(_0x409dc1(0x12d))/0x9*(parseInt(_0x409dc1(0x131))/0xa)+parseInt(_0x409dc1(0x11f))/0xb*(parseInt(_0x409dc1(0x125))/0xc)+parseInt(_0x409dc1(0x11b))/0xd;if(_0x69a2b1===_0x1427c8)break;else _0x28776b['push'](_0x28776b['shift']());}catch(_0x24972d){_0x28776b['push'](_0x28776b['shift']());}}}(_0x6d57,0x75be4),function(_0x160c2e,_0x28e5d6){const _0x4b8df7=_0x18f8;typeof exports==_0x4b8df7(0x116)&&typeof module<'u'?_0x28e5d6(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x4b8df7(0x133)&&define[_0x4b8df7(0x11a)]?define([_0x4b8df7(0x12a),_0x4b8df7(0x139),_0x4b8df7(0x142)],_0x28e5d6):(_0x160c2e=typeof globalThis<'u'?globalThis:_0x160c2e||self,_0x28e5d6(_0x160c2e[_0x4b8df7(0x141)],_0x160c2e[_0x4b8df7(0x12c)],_0x160c2e[_0x4b8df7(0x14a)]));}(this,function(_0xaf535e,_0x25c035,_0x2a42f7){'use strict';const _0x12874a=_0x18f8;class _0x38b7ed{get[_0x12874a(0x130)](){const _0x35a041=_0x12874a;return _0xaf535e[_0x35a041(0x120)][_0x35a041(0x130)];}get[_0x12874a(0x123)](){const _0x196895=_0x12874a;return _0xaf535e[_0x196895(0x120)][_0x196895(0x123)];}get[_0x12874a(0x147)](){const _0x48de8e=_0x12874a;return _0xaf535e[_0x48de8e(0x120)][_0x48de8e(0x147)];}get[_0x12874a(0x13f)](){const _0x482b18=_0x12874a;return _0xaf535e[_0x482b18(0x120)][_0x482b18(0x13f)];}}_0x25c035[_0x12874a(0x118)]['extend'](_0x38b7ed);class _0xbb1c6e extends _0x25c035['FUniver']{[_0x12874a(0x138)](_0x492ce2){const _0x145673=_0x12874a;this[_0x145673(0x13c)](_0x492ce2);}[_0x12874a(0x13c)](_0x15e9ba){const _0x34e57=_0x12874a,_0x3dd9f2=_0x15e9ba[_0x34e57(0x145)](_0xaf535e[_0x34e57(0x13e)]);this[_0x34e57(0x12e)](this[_0x34e57(0x119)][_0x34e57(0x130)],()=>_0x2a42f7[_0x34e57(0x148)](_0x3dd9f2[_0x34e57(0x140)][_0x34e57(0x11e)](_0x9d345e=>{const _0x42fcb3=_0x34e57;_0x9d345e[_0x42fcb3(0x13a)]===_0xaf535e[_0x42fcb3(0x120)][_0x42fcb3(0x130)]&&this['fireEvent'](this[_0x42fcb3(0x119)][_0x42fcb3(0x130)],_0x9d345e[_0x42fcb3(0x134)]);}))),this[_0x34e57(0x12e)](this[_0x34e57(0x119)][_0x34e57(0x123)],()=>_0x2a42f7['toDisposable'](_0x3dd9f2[_0x34e57(0x140)][_0x34e57(0x11e)](_0x162e70=>{const _0xb70c44=_0x34e57;_0x162e70[_0xb70c44(0x13a)]===_0xaf535e[_0xb70c44(0x120)][_0xb70c44(0x123)]&&this['fireEvent'](this['Event'][_0xb70c44(0x123)],_0x162e70[_0xb70c44(0x134)]);}))),this['registerEventHandler'](this[_0x34e57(0x119)][_0x34e57(0x147)],()=>_0x2a42f7[_0x34e57(0x148)](_0x3dd9f2[_0x34e57(0x140)][_0x34e57(0x11e)](_0x8c926f=>{const _0x58a687=_0x34e57;_0x8c926f['type']===_0xaf535e[_0x58a687(0x120)][_0x58a687(0x147)]&&this['fireEvent'](this[_0x58a687(0x119)][_0x58a687(0x147)],_0x8c926f['data']);}))),this[_0x34e57(0x12e)](this[_0x34e57(0x119)]['McpToolCallFailed'],()=>_0x2a42f7[_0x34e57(0x148)](_0x3dd9f2[_0x34e57(0x140)][_0x34e57(0x11e)](_0x129b45=>{const _0x574412=_0x34e57;_0x129b45[_0x574412(0x13a)]===_0xaf535e[_0x574412(0x120)][_0x574412(0x13f)]&&this[_0x574412(0x129)](this[_0x574412(0x119)][_0x574412(0x13f)],_0x129b45[_0x574412(0x134)]);})));}[_0x12874a(0x117)](_0x2040db,_0x161b67){const _0x357d39=_0x12874a;return this['_injector'][_0x357d39(0x145)](_0xaf535e[_0x357d39(0x122)])[_0x357d39(0x143)](_0x2040db,_0x161b67);}[_0x12874a(0x14b)](){const _0x59e5e9=_0x12874a;return this[_0x59e5e9(0x144)][_0x59e5e9(0x145)](_0xaf535e[_0x59e5e9(0x122)])['getAllTools']();}[_0x12874a(0x149)](_0x1f6154,_0x38fab6){const _0x2ed323=_0x12874a;return this['_injector'][_0x2ed323(0x145)](_0xaf535e[_0x2ed323(0x122)])[_0x2ed323(0x12f)](_0x1f6154,_0x38fab6);}[_0x12874a(0x14c)](){const _0x31faab=_0x12874a;return this[_0x31faab(0x144)][_0x31faab(0x145)](_0xaf535e[_0x31faab(0x132)])[_0x31faab(0x121)]();}[_0x12874a(0x128)](){const _0x207446=_0x12874a;this[_0x207446(0x144)][_0x207446(0x145)](_0xaf535e['MCPConnectionController'])[_0x207446(0x127)]();}['disconnectMCP'](){const _0x4b1b2d=_0x12874a;this['_injector'][_0x4b1b2d(0x145)](_0xaf535e[_0x4b1b2d(0x132)])[_0x4b1b2d(0x135)]();}}_0x25c035[_0x12874a(0x11d)][_0x12874a(0x126)](_0xbb1c6e);}));function _0x6d57(){const _0x451c34=['object','validateMCPToolCall','FEventName','Event','amd','29422731sTxczi','16jVhMqf','FUniver','subscribe','44TWRKZk','MCPEventId','getConnectionStatus','IMCPToolRegistry','McpToolCallReceived','278iaBtTa','1485504LoxYYu','extend','connect','connectMCP','fireEvent','@univerjs-pro/mcp','520683QuVame','UniverCoreFacade','27YeavqE','registerEventHandler','executeTool','McpConnectionStatusChanged','545120XyfSXu','MCPConnectionController','function','data','disconnect','28040KdPZYG','553dyrFrU','_initialize','@univerjs/core/facade','type','516bePHmV','_registerMCPFacadeEvents','5336kVLPaT','MCPEventService','McpToolCallFailed','event$','UniverProMcp','@univerjs/core','validateToolCall','_injector','get','42260Ykctsd','McpToolCallExecuted','toDisposable','callMCPTool','UniverCore','getAllMCPTools','getMCPConnectionStatus'];_0x6d57=function(){return _0x451c34;};return _0x6d57();}
1
+ function _0x2015(_0x9b2168,_0x29403a){_0x9b2168=_0x9b2168-0xe0;const _0x3bbadc=_0x3bba();let _0x20158e=_0x3bbadc[_0x9b2168];return _0x20158e;}function _0x3bba(){const _0x25d3da=['MCPConnectionController','@univerjs-pro/mcp','135yWVoFZ','380zpycUu','MCPEventService','UniverCore','McpConnectionStatusChanged','_initialize','UniverProMcp','extend','FUniver','131010IXmuKZ','disconnect','846CBwimw','1203160EVPPWJ','MCPEventId','487962KjglFO','IMCPToolRegistry','1036006qISlei','@univerjs/core','Event','get','getConnectionStatus','getAllTools','223225opnSOa','56LKxNtm','_registerMCPFacadeEvents','disconnectMCP','McpToolCallFailed','245768xGbkpT','function','event$','validateToolCall','McpToolCallExecuted','registerEventHandler','subscribe','FEventName','1948ZopChz','callMCPTool','UniverCoreFacade','fireEvent','_injector','toDisposable','McpToolCallReceived','type','data'];_0x3bba=function(){return _0x25d3da;};return _0x3bba();}(function(_0x225313,_0xd9914a){const _0x29dd80=_0x2015,_0x4766ef=_0x225313();while(!![]){try{const _0x14d643=-parseInt(_0x29dd80(0xe9))/0x1+parseInt(_0x29dd80(0xe3))/0x2+parseInt(_0x29dd80(0x10c))/0x3*(parseInt(_0x29dd80(0xf6))/0x4)+-parseInt(_0x29dd80(0x10d))/0x5+-parseInt(_0x29dd80(0xe1))/0x6*(parseInt(_0x29dd80(0xea))/0x7)+-parseInt(_0x29dd80(0xee))/0x8*(-parseInt(_0x29dd80(0x101))/0x9)+-parseInt(_0x29dd80(0x102))/0xa*(-parseInt(_0x29dd80(0x10a))/0xb);if(_0x14d643===_0xd9914a)break;else _0x4766ef['push'](_0x4766ef['shift']());}catch(_0x4d5187){_0x4766ef['push'](_0x4766ef['shift']());}}}(_0x3bba,0x6ee73),function(_0x5d752b,_0x3157b9){const _0x38e27d=_0x2015;typeof exports=='object'&&typeof module<'u'?_0x3157b9(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x38e27d(0xef)&&define['amd']?define([_0x38e27d(0x100),'@univerjs/core/facade',_0x38e27d(0xe4)],_0x3157b9):(_0x5d752b=typeof globalThis<'u'?globalThis:_0x5d752b||self,_0x3157b9(_0x5d752b[_0x38e27d(0x107)],_0x5d752b[_0x38e27d(0xf8)],_0x5d752b[_0x38e27d(0x104)]));}(this,function(_0x5c2020,_0x2d016d,_0x6623c1){'use strict';const _0x441936=_0x2015;class _0x3e3cb2{get[_0x441936(0x105)](){return _0x5c2020['MCPEventId']['McpConnectionStatusChanged'];}get[_0x441936(0xfc)](){return _0x5c2020['MCPEventId']['McpToolCallReceived'];}get[_0x441936(0xf2)](){const _0x19119d=_0x441936;return _0x5c2020[_0x19119d(0xe0)][_0x19119d(0xf2)];}get[_0x441936(0xed)](){const _0x29ace1=_0x441936;return _0x5c2020[_0x29ace1(0xe0)][_0x29ace1(0xed)];}}_0x2d016d[_0x441936(0xf5)]['extend'](_0x3e3cb2);class _0x3da9aa extends _0x2d016d[_0x441936(0x109)]{[_0x441936(0x106)](_0x5a4a5d){const _0x57deab=_0x441936;this[_0x57deab(0xeb)](_0x5a4a5d);}[_0x441936(0xeb)](_0x4d9a0e){const _0x2f0899=_0x441936,_0x4dd12b=_0x4d9a0e[_0x2f0899(0xe6)](_0x5c2020[_0x2f0899(0x103)]);this[_0x2f0899(0xf3)](this[_0x2f0899(0xe5)][_0x2f0899(0x105)],()=>_0x6623c1['toDisposable'](_0x4dd12b[_0x2f0899(0xf0)][_0x2f0899(0xf4)](_0x9c45fd=>{const _0x3e5262=_0x2f0899;_0x9c45fd['type']===_0x5c2020[_0x3e5262(0xe0)][_0x3e5262(0x105)]&&this[_0x3e5262(0xf9)](this[_0x3e5262(0xe5)][_0x3e5262(0x105)],_0x9c45fd[_0x3e5262(0xfe)]);}))),this[_0x2f0899(0xf3)](this[_0x2f0899(0xe5)][_0x2f0899(0xfc)],()=>_0x6623c1[_0x2f0899(0xfb)](_0x4dd12b[_0x2f0899(0xf0)][_0x2f0899(0xf4)](_0x48c238=>{const _0x3834e3=_0x2f0899;_0x48c238[_0x3834e3(0xfd)]===_0x5c2020[_0x3834e3(0xe0)]['McpToolCallReceived']&&this[_0x3834e3(0xf9)](this[_0x3834e3(0xe5)][_0x3834e3(0xfc)],_0x48c238['data']);}))),this['registerEventHandler'](this[_0x2f0899(0xe5)][_0x2f0899(0xf2)],()=>_0x6623c1[_0x2f0899(0xfb)](_0x4dd12b[_0x2f0899(0xf0)][_0x2f0899(0xf4)](_0x557204=>{const _0xd06840=_0x2f0899;_0x557204[_0xd06840(0xfd)]===_0x5c2020[_0xd06840(0xe0)]['McpToolCallExecuted']&&this[_0xd06840(0xf9)](this['Event'][_0xd06840(0xf2)],_0x557204[_0xd06840(0xfe)]);}))),this['registerEventHandler'](this[_0x2f0899(0xe5)]['McpToolCallFailed'],()=>_0x6623c1[_0x2f0899(0xfb)](_0x4dd12b[_0x2f0899(0xf0)][_0x2f0899(0xf4)](_0x6a6fbd=>{const _0x50ba5e=_0x2f0899;_0x6a6fbd[_0x50ba5e(0xfd)]===_0x5c2020[_0x50ba5e(0xe0)][_0x50ba5e(0xed)]&&this['fireEvent'](this[_0x50ba5e(0xe5)]['McpToolCallFailed'],_0x6a6fbd[_0x50ba5e(0xfe)]);})));}['validateMCPToolCall'](_0x32b9fa,_0x36f7cd){const _0x5874e7=_0x441936;return this['_injector'][_0x5874e7(0xe6)](_0x5c2020[_0x5874e7(0xe2)])[_0x5874e7(0xf1)](_0x32b9fa,_0x36f7cd);}['getAllMCPTools'](){const _0x30e7cc=_0x441936;return this[_0x30e7cc(0xfa)][_0x30e7cc(0xe6)](_0x5c2020['IMCPToolRegistry'])[_0x30e7cc(0xe8)]();}[_0x441936(0xf7)](_0x57385e,_0x5882a4){const _0x62def8=_0x441936;return this[_0x62def8(0xfa)]['get'](_0x5c2020[_0x62def8(0xe2)])['executeTool'](_0x57385e,_0x5882a4);}['getMCPConnectionStatus'](){const _0x2ad6c2=_0x441936;return this[_0x2ad6c2(0xfa)]['get'](_0x5c2020['MCPConnectionController'])[_0x2ad6c2(0xe7)]();}['connectMCP'](){const _0x3f501d=_0x441936;this[_0x3f501d(0xfa)][_0x3f501d(0xe6)](_0x5c2020[_0x3f501d(0xff)])['connect']();}[_0x441936(0xec)](){const _0x3fb8ec=_0x441936;this[_0x3fb8ec(0xfa)][_0x3fb8ec(0xe6)](_0x5c2020[_0x3fb8ec(0xff)])[_0x3fb8ec(0x10b)]();}}_0x2d016d[_0x441936(0x109)][_0x441936(0x108)](_0x3da9aa);}));