@univerjs-pro/mcp 0.10.13 → 0.10.14

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/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x34dadb=_0x1453;(function(_0x408d74,_0x395562){const _0x4150fb=_0x1453,_0x497e8e=_0x408d74();while(!![]){try{const _0x427e7a=-parseInt(_0x4150fb(0xc4))/0x1*(parseInt(_0x4150fb(0xc8))/0x2)+-parseInt(_0x4150fb(0xce))/0x3*(parseInt(_0x4150fb(0xca))/0x4)+parseInt(_0x4150fb(0xdf))/0x5+-parseInt(_0x4150fb(0xd9))/0x6*(parseInt(_0x4150fb(0xcf))/0x7)+parseInt(_0x4150fb(0xbe))/0x8+parseInt(_0x4150fb(0xc9))/0x9+parseInt(_0x4150fb(0xdc))/0xa*(parseInt(_0x4150fb(0xe0))/0xb);if(_0x427e7a===_0x395562)break;else _0x497e8e['push'](_0x497e8e['shift']());}catch(_0x1d6592){_0x497e8e['push'](_0x497e8e['shift']());}}}(_0x44f6,0x1a3b7));const e=require('@univerjs-pro/mcp'),i=require('@univerjs/core/facade'),l=require('@univerjs/core');class r{get[_0x34dadb(0xc3)](){const _0x3ddd99=_0x34dadb;return e[_0x3ddd99(0xc2)][_0x3ddd99(0xc3)];}get[_0x34dadb(0xe3)](){const _0x48313b=_0x34dadb;return e['MCPEventId'][_0x48313b(0xe3)];}get[_0x34dadb(0xd6)](){const _0x22ebf3=_0x34dadb;return e[_0x22ebf3(0xc2)][_0x22ebf3(0xd6)];}get[_0x34dadb(0xd2)](){const _0x112076=_0x34dadb;return e[_0x112076(0xc2)][_0x112076(0xd2)];}}i[_0x34dadb(0xbb)][_0x34dadb(0xcd)](r);class s extends i[_0x34dadb(0xda)]{['_initialize'](_0x2c0d53){const _0x3c2a07=_0x34dadb;this[_0x3c2a07(0xbd)](_0x2c0d53);}[_0x34dadb(0xbd)](_0x1e78bd){const _0xca2f79=_0x34dadb,_0x4659c9=_0x1e78bd['get'](e[_0xca2f79(0xd1)]);this[_0xca2f79(0xcb)](this['Event'][_0xca2f79(0xc3)],()=>l[_0xca2f79(0xe1)](_0x4659c9['event$'][_0xca2f79(0xd4)](_0x9e25b6=>{const _0x13b971=_0xca2f79;_0x9e25b6[_0x13b971(0xd0)]===e[_0x13b971(0xc2)]['McpConnectionStatusChanged']&&this[_0x13b971(0xdb)](this[_0x13b971(0xe2)][_0x13b971(0xc3)],_0x9e25b6[_0x13b971(0xcc)]);}))),this[_0xca2f79(0xcb)](this[_0xca2f79(0xe2)][_0xca2f79(0xe3)],()=>l['toDisposable'](_0x4659c9[_0xca2f79(0xd7)][_0xca2f79(0xd4)](_0x12a9cb=>{const _0x2316fe=_0xca2f79;_0x12a9cb[_0x2316fe(0xd0)]===e['MCPEventId'][_0x2316fe(0xe3)]&&this[_0x2316fe(0xdb)](this[_0x2316fe(0xe2)][_0x2316fe(0xe3)],_0x12a9cb[_0x2316fe(0xcc)]);}))),this['registerEventHandler'](this[_0xca2f79(0xe2)][_0xca2f79(0xd6)],()=>l[_0xca2f79(0xe1)](_0x4659c9[_0xca2f79(0xd7)][_0xca2f79(0xd4)](_0x244068=>{const _0x5ba225=_0xca2f79;_0x244068[_0x5ba225(0xd0)]===e[_0x5ba225(0xc2)][_0x5ba225(0xd6)]&&this[_0x5ba225(0xdb)](this[_0x5ba225(0xe2)][_0x5ba225(0xd6)],_0x244068[_0x5ba225(0xcc)]);}))),this[_0xca2f79(0xcb)](this[_0xca2f79(0xe2)][_0xca2f79(0xd2)],()=>l[_0xca2f79(0xe1)](_0x4659c9[_0xca2f79(0xd7)][_0xca2f79(0xd4)](_0x2d502e=>{const _0x5a0f66=_0xca2f79;_0x2d502e[_0x5a0f66(0xd0)]===e[_0x5a0f66(0xc2)][_0x5a0f66(0xd2)]&&this['fireEvent'](this['Event'][_0x5a0f66(0xd2)],_0x2d502e[_0x5a0f66(0xcc)]);})));}[_0x34dadb(0xbf)](_0x35b8f3,_0x1ee907){const _0x3a54e7=_0x34dadb;return this[_0x3a54e7(0xd5)][_0x3a54e7(0xd3)](e['IMCPToolRegistry'])[_0x3a54e7(0xc1)](_0x35b8f3,_0x1ee907);}[_0x34dadb(0xc7)](){const _0xe0d47f=_0x34dadb;return this['_injector'][_0xe0d47f(0xd3)](e['IMCPToolRegistry'])[_0xe0d47f(0xd8)]();}[_0x34dadb(0xbc)](_0x43b4c6,_0x26ddf3){const _0x56d646=_0x34dadb;return this[_0x56d646(0xd5)][_0x56d646(0xd3)](e['IMCPToolRegistry'])['executeTool'](_0x43b4c6,_0x26ddf3);}['getMCPConnectionStatus'](){const _0x3ea5a1=_0x34dadb;return this[_0x3ea5a1(0xd5)]['get'](e[_0x3ea5a1(0xc0)])['getConnectionStatus']();}[_0x34dadb(0xc5)](){const _0x5808e6=_0x34dadb;this[_0x5808e6(0xd5)][_0x5808e6(0xd3)](e[_0x5808e6(0xc0)])[_0x5808e6(0xc6)]();}[_0x34dadb(0xdd)](){const _0x4dbb26=_0x34dadb;this[_0x4dbb26(0xd5)][_0x4dbb26(0xd3)](e[_0x4dbb26(0xc0)])[_0x4dbb26(0xde)]();}}function _0x1453(_0x2da9e5,_0x5c4efc){const _0x44f631=_0x44f6();return _0x1453=function(_0x14532c,_0x51812d){_0x14532c=_0x14532c-0xbb;let _0x34d6ff=_0x44f631[_0x14532c];return _0x34d6ff;},_0x1453(_0x2da9e5,_0x5c4efc);}function _0x44f6(){const _0x327325=['MCPEventService','McpToolCallFailed','get','subscribe','_injector','McpToolCallExecuted','event$','getAllTools','18Xtctnq','FUniver','fireEvent','127030vrqNxf','disconnectMCP','disconnect','640135hHIUSH','22cKiRdd','toDisposable','Event','McpToolCallReceived','FEventName','callMCPTool','_registerMCPFacadeEvents','843328KkvxZK','validateMCPToolCall','MCPConnectionController','validateToolCall','MCPEventId','McpConnectionStatusChanged','104561BygOeJ','connectMCP','connect','getAllMCPTools','2enDtag','1624545ApkSCz','380676JIdfqD','registerEventHandler','data','extend','3QVkZNI','308413MATgsw','type'];_0x44f6=function(){return _0x327325;};return _0x44f6();}i[_0x34dadb(0xda)][_0x34dadb(0xcd)](s);
1
+ 'use strict';const _0x489cc0=_0x5456;(function(_0x505f14,_0x550924){const _0xade61f=_0x5456,_0x6cb93c=_0x505f14();while(!![]){try{const _0x537eb6=parseInt(_0xade61f(0xea))/0x1*(parseInt(_0xade61f(0xe4))/0x2)+-parseInt(_0xade61f(0xd2))/0x3+-parseInt(_0xade61f(0xf6))/0x4*(-parseInt(_0xade61f(0xe7))/0x5)+parseInt(_0xade61f(0xf7))/0x6*(parseInt(_0xade61f(0xf4))/0x7)+parseInt(_0xade61f(0xe6))/0x8+parseInt(_0xade61f(0xd8))/0x9+-parseInt(_0xade61f(0xfc))/0xa*(parseInt(_0xade61f(0xdf))/0xb);if(_0x537eb6===_0x550924)break;else _0x6cb93c['push'](_0x6cb93c['shift']());}catch(_0x442481){_0x6cb93c['push'](_0x6cb93c['shift']());}}}(_0x3ec9,0x25490));const e=require('@univerjs-pro/mcp'),i=require('@univerjs/core/facade'),l=require('@univerjs/core');function _0x5456(_0x3a29fa,_0x240742){const _0x3ec9d1=_0x3ec9();return _0x5456=function(_0x545688,_0xa1b9dc){_0x545688=_0x545688-0xd2;let _0x2f20c1=_0x3ec9d1[_0x545688];return _0x2f20c1;},_0x5456(_0x3a29fa,_0x240742);}class r{get['McpConnectionStatusChanged'](){const _0x283c79=_0x5456;return e[_0x283c79(0xd6)][_0x283c79(0xf9)];}get['McpToolCallReceived'](){const _0x7ed590=_0x5456;return e[_0x7ed590(0xd6)][_0x7ed590(0xee)];}get[_0x489cc0(0xd5)](){const _0x54437d=_0x489cc0;return e['MCPEventId'][_0x54437d(0xd5)];}get['McpToolCallFailed'](){const _0x3d165e=_0x489cc0;return e[_0x3d165e(0xd6)][_0x3d165e(0xf8)];}}i[_0x489cc0(0xdc)][_0x489cc0(0xd3)](r);class s extends i[_0x489cc0(0xde)]{[_0x489cc0(0xe9)](_0x369374){const _0x34e0a7=_0x489cc0;this[_0x34e0a7(0xda)](_0x369374);}[_0x489cc0(0xda)](_0x2d394e){const _0xd1f67a=_0x489cc0,_0x5e2db0=_0x2d394e['get'](e[_0xd1f67a(0xe8)]);this[_0xd1f67a(0xdd)](this[_0xd1f67a(0xef)]['McpConnectionStatusChanged'],()=>l[_0xd1f67a(0xe2)](_0x5e2db0['event$'][_0xd1f67a(0xe5)](_0x408075=>{const _0x33ebb5=_0xd1f67a;_0x408075[_0x33ebb5(0xe1)]===e[_0x33ebb5(0xd6)]['McpConnectionStatusChanged']&&this[_0x33ebb5(0xf2)](this['Event']['McpConnectionStatusChanged'],_0x408075[_0x33ebb5(0xf1)]);}))),this[_0xd1f67a(0xdd)](this['Event'][_0xd1f67a(0xee)],()=>l['toDisposable'](_0x5e2db0['event$']['subscribe'](_0x1b434f=>{const _0x1be4a6=_0xd1f67a;_0x1b434f[_0x1be4a6(0xe1)]===e[_0x1be4a6(0xd6)][_0x1be4a6(0xee)]&&this[_0x1be4a6(0xf2)](this[_0x1be4a6(0xef)]['McpToolCallReceived'],_0x1b434f[_0x1be4a6(0xf1)]);}))),this['registerEventHandler'](this[_0xd1f67a(0xef)][_0xd1f67a(0xd5)],()=>l[_0xd1f67a(0xe2)](_0x5e2db0['event$'][_0xd1f67a(0xe5)](_0x1cd2b6=>{const _0xa457c8=_0xd1f67a;_0x1cd2b6[_0xa457c8(0xe1)]===e[_0xa457c8(0xd6)]['McpToolCallExecuted']&&this['fireEvent'](this[_0xa457c8(0xef)][_0xa457c8(0xd5)],_0x1cd2b6[_0xa457c8(0xf1)]);}))),this[_0xd1f67a(0xdd)](this[_0xd1f67a(0xef)]['McpToolCallFailed'],()=>l[_0xd1f67a(0xe2)](_0x5e2db0[_0xd1f67a(0xf0)][_0xd1f67a(0xe5)](_0x32187f=>{const _0x33e015=_0xd1f67a;_0x32187f[_0x33e015(0xe1)]===e[_0x33e015(0xd6)][_0x33e015(0xf8)]&&this[_0x33e015(0xf2)](this['Event']['McpToolCallFailed'],_0x32187f[_0x33e015(0xf1)]);})));}[_0x489cc0(0xe3)](_0x20a45a,_0x4a5a2f){const _0x35ba3e=_0x489cc0;return this[_0x35ba3e(0xf3)][_0x35ba3e(0xe0)](e['IMCPToolRegistry'])[_0x35ba3e(0xd4)](_0x20a45a,_0x4a5a2f);}[_0x489cc0(0xfb)](){const _0x2a26d3=_0x489cc0;return this[_0x2a26d3(0xf3)][_0x2a26d3(0xe0)](e[_0x2a26d3(0xf5)])['getAllTools']();}['callMCPTool'](_0x35d4f5,_0x57d9bd){const _0x11963d=_0x489cc0;return this[_0x11963d(0xf3)][_0x11963d(0xe0)](e[_0x11963d(0xf5)])[_0x11963d(0xec)](_0x35d4f5,_0x57d9bd);}[_0x489cc0(0xd7)](){const _0xb34a8c=_0x489cc0;return this[_0xb34a8c(0xf3)][_0xb34a8c(0xe0)](e[_0xb34a8c(0xed)])['getConnectionStatus']();}[_0x489cc0(0xeb)](){const _0x210ba9=_0x489cc0;this[_0x210ba9(0xf3)][_0x210ba9(0xe0)](e[_0x210ba9(0xed)])[_0x210ba9(0xfa)]();}[_0x489cc0(0xd9)](){const _0x949506=_0x489cc0;this[_0x949506(0xf3)]['get'](e[_0x949506(0xed)])[_0x949506(0xdb)]();}}function _0x3ec9(){const _0x2def6e=['data','fireEvent','_injector','35GyYyad','IMCPToolRegistry','1081956TlvxmP','205890MwtLDy','McpToolCallFailed','McpConnectionStatusChanged','connect','getAllMCPTools','402380RNcyLq','732672ouUBsP','extend','validateToolCall','McpToolCallExecuted','MCPEventId','getMCPConnectionStatus','672147ZuHWQm','disconnectMCP','_registerMCPFacadeEvents','disconnect','FEventName','registerEventHandler','FUniver','121UoPoDm','get','type','toDisposable','validateMCPToolCall','12lyoCUR','subscribe','453192TzZeCa','5pUaIFD','MCPEventService','_initialize','44361FWQSMV','connectMCP','executeTool','MCPConnectionController','McpToolCallReceived','Event','event$'];_0x3ec9=function(){return _0x2def6e;};return _0x3ec9();}i[_0x489cc0(0xde)][_0x489cc0(0xd3)](s);