@univerjs-pro/mcp 0.10.9-nightly.202509260614 → 0.10.10

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 _0x45d673=_0x3f74;function _0x3f74(_0x98a3a4,_0x1ba039){const _0x121716=_0x1217();return _0x3f74=function(_0x3f742d,_0x4268e4){_0x3f742d=_0x3f742d-0x133;let _0x125054=_0x121716[_0x3f742d];return _0x125054;},_0x3f74(_0x98a3a4,_0x1ba039);}(function(_0x51a6fe,_0x545839){const _0x3c807d=_0x3f74,_0x4540b0=_0x51a6fe();while(!![]){try{const _0x41d4b6=parseInt(_0x3c807d(0x13e))/0x1+parseInt(_0x3c807d(0x145))/0x2*(-parseInt(_0x3c807d(0x137))/0x3)+-parseInt(_0x3c807d(0x159))/0x4+parseInt(_0x3c807d(0x138))/0x5+parseInt(_0x3c807d(0x13c))/0x6*(parseInt(_0x3c807d(0x14f))/0x7)+parseInt(_0x3c807d(0x154))/0x8*(parseInt(_0x3c807d(0x150))/0x9)+-parseInt(_0x3c807d(0x158))/0xa*(parseInt(_0x3c807d(0x140))/0xb);if(_0x41d4b6===_0x545839)break;else _0x4540b0['push'](_0x4540b0['shift']());}catch(_0x161d5c){_0x4540b0['push'](_0x4540b0['shift']());}}}(_0x1217,0x7ddc9));function _0x1217(){const _0x30ca48=['IMCPToolRegistry','data','toDisposable','1256763RUrycn','3165110xpPWIt','subscribe','_registerMCPFacadeEvents','type','4398wEtwAz','McpToolCallFailed','560992tSHwUj','McpToolCallReceived','1573GlhEjS','McpToolCallExecuted','extend','event$','Event','2Utupst','executeTool','FEventName','FUniver','McpConnectionStatusChanged','MCPEventId','getAllTools','getConnectionStatus','MCPConnectionController','_injector','749yuyUdI','18qFTyUF','connectMCP','validateMCPToolCall','registerEventHandler','347848KkOccx','connect','disconnect','getMCPConnectionStatus','26510AXHIiL','183456gNQjBE','fireEvent','_initialize','get','validateToolCall'];_0x1217=function(){return _0x30ca48;};return _0x1217();}const e=require('@univerjs-pro/mcp'),i=require('@univerjs/core/facade'),l=require('@univerjs/core');class r{get[_0x45d673(0x149)](){const _0x176478=_0x45d673;return e[_0x176478(0x14a)][_0x176478(0x149)];}get[_0x45d673(0x13f)](){const _0x42d1df=_0x45d673;return e['MCPEventId'][_0x42d1df(0x13f)];}get['McpToolCallExecuted'](){const _0x3e15b6=_0x45d673;return e[_0x3e15b6(0x14a)][_0x3e15b6(0x141)];}get[_0x45d673(0x13d)](){const _0x13463e=_0x45d673;return e[_0x13463e(0x14a)]['McpToolCallFailed'];}}i[_0x45d673(0x147)][_0x45d673(0x142)](r);class s extends i[_0x45d673(0x148)]{[_0x45d673(0x15b)](_0x35ef37){const _0x5f515f=_0x45d673;this[_0x5f515f(0x13a)](_0x35ef37);}['_registerMCPFacadeEvents'](_0x413595){const _0x531666=_0x45d673,_0x8b2791=_0x413595[_0x531666(0x15c)](e['MCPEventService']);this['registerEventHandler'](this['Event'][_0x531666(0x149)],()=>l['toDisposable'](_0x8b2791[_0x531666(0x143)][_0x531666(0x139)](_0x48fe24=>{const _0x48e0b1=_0x531666;_0x48fe24[_0x48e0b1(0x13b)]===e['MCPEventId'][_0x48e0b1(0x149)]&&this[_0x48e0b1(0x15a)](this['Event'][_0x48e0b1(0x149)],_0x48fe24[_0x48e0b1(0x135)]);}))),this['registerEventHandler'](this['Event'][_0x531666(0x13f)],()=>l[_0x531666(0x136)](_0x8b2791[_0x531666(0x143)][_0x531666(0x139)](_0x4e6701=>{const _0x12a548=_0x531666;_0x4e6701[_0x12a548(0x13b)]===e['MCPEventId'][_0x12a548(0x13f)]&&this[_0x12a548(0x15a)](this[_0x12a548(0x144)][_0x12a548(0x13f)],_0x4e6701[_0x12a548(0x135)]);}))),this[_0x531666(0x153)](this[_0x531666(0x144)][_0x531666(0x141)],()=>l[_0x531666(0x136)](_0x8b2791[_0x531666(0x143)][_0x531666(0x139)](_0x14b702=>{const _0x56a9ca=_0x531666;_0x14b702[_0x56a9ca(0x13b)]===e[_0x56a9ca(0x14a)]['McpToolCallExecuted']&&this[_0x56a9ca(0x15a)](this[_0x56a9ca(0x144)][_0x56a9ca(0x141)],_0x14b702['data']);}))),this[_0x531666(0x153)](this[_0x531666(0x144)][_0x531666(0x13d)],()=>l[_0x531666(0x136)](_0x8b2791[_0x531666(0x143)][_0x531666(0x139)](_0xa3a182=>{const _0x4d9388=_0x531666;_0xa3a182['type']===e[_0x4d9388(0x14a)]['McpToolCallFailed']&&this[_0x4d9388(0x15a)](this[_0x4d9388(0x144)]['McpToolCallFailed'],_0xa3a182[_0x4d9388(0x135)]);})));}[_0x45d673(0x152)](_0x116112,_0x4e6a7e){const _0x2b95ed=_0x45d673;return this[_0x2b95ed(0x14e)][_0x2b95ed(0x15c)](e[_0x2b95ed(0x134)])[_0x2b95ed(0x133)](_0x116112,_0x4e6a7e);}['getAllMCPTools'](){const _0x307a88=_0x45d673;return this[_0x307a88(0x14e)][_0x307a88(0x15c)](e[_0x307a88(0x134)])[_0x307a88(0x14b)]();}['callMCPTool'](_0x40cacb,_0x48c714){const _0x580b96=_0x45d673;return this['_injector'][_0x580b96(0x15c)](e[_0x580b96(0x134)])[_0x580b96(0x146)](_0x40cacb,_0x48c714);}[_0x45d673(0x157)](){const _0x5aa265=_0x45d673;return this[_0x5aa265(0x14e)][_0x5aa265(0x15c)](e[_0x5aa265(0x14d)])[_0x5aa265(0x14c)]();}[_0x45d673(0x151)](){const _0x23acc7=_0x45d673;this[_0x23acc7(0x14e)][_0x23acc7(0x15c)](e['MCPConnectionController'])[_0x23acc7(0x155)]();}['disconnectMCP'](){const _0x42e860=_0x45d673;this[_0x42e860(0x14e)][_0x42e860(0x15c)](e[_0x42e860(0x14d)])[_0x42e860(0x156)]();}}i['FUniver'][_0x45d673(0x142)](s);
1
+ 'use strict';const _0x1e6d1d=_0xb135;function _0xb135(_0x19db74,_0x15a076){const _0x5d6418=_0x5d64();return _0xb135=function(_0xb135ec,_0x557e29){_0xb135ec=_0xb135ec-0xf6;let _0x14478c=_0x5d6418[_0xb135ec];return _0x14478c;},_0xb135(_0x19db74,_0x15a076);}(function(_0x35c983,_0x2b4c4d){const _0x5979f3=_0xb135,_0x5652c2=_0x35c983();while(!![]){try{const _0x1069e9=-parseInt(_0x5979f3(0xfa))/0x1*(-parseInt(_0x5979f3(0x113))/0x2)+-parseInt(_0x5979f3(0x10d))/0x3*(parseInt(_0x5979f3(0x102))/0x4)+-parseInt(_0x5979f3(0x106))/0x5+parseInt(_0x5979f3(0x101))/0x6+-parseInt(_0x5979f3(0xff))/0x7*(parseInt(_0x5979f3(0xfe))/0x8)+parseInt(_0x5979f3(0x10f))/0x9*(parseInt(_0x5979f3(0x115))/0xa)+parseInt(_0x5979f3(0x104))/0xb*(parseInt(_0x5979f3(0xf8))/0xc);if(_0x1069e9===_0x2b4c4d)break;else _0x5652c2['push'](_0x5652c2['shift']());}catch(_0x363a65){_0x5652c2['push'](_0x5652c2['shift']());}}}(_0x5d64,0x39c69));function _0x5d64(){const _0x3e620d=['111448YiZPln','21PjaADQ','disconnectMCP','1025880zgriDh','4iqUAFj','MCPConnectionController','32252OUgofd','connectMCP','640995bkjgTT','data','type','McpToolCallExecuted','executeTool','disconnect','fireEvent','1313991LlObnc','McpToolCallReceived','22644bVbfDO','McpConnectionStatusChanged','subscribe','FUniver','1076zFdFzB','get','1640dPZEXy','MCPEventService','toDisposable','_registerMCPFacadeEvents','_injector','getAllMCPTools','extend','Event','FEventName','getConnectionStatus','connect','getMCPConnectionStatus','getAllTools','registerEventHandler','432VXCdTG','MCPEventId','289UOFAZz','IMCPToolRegistry','McpToolCallFailed','event$'];_0x5d64=function(){return _0x3e620d;};return _0x5d64();}const e=require('@univerjs-pro/mcp'),i=require('@univerjs/core/facade'),l=require('@univerjs/core');class r{get[_0x1e6d1d(0x110)](){const _0x1a5ad8=_0x1e6d1d;return e['MCPEventId'][_0x1a5ad8(0x110)];}get[_0x1e6d1d(0x10e)](){return e['MCPEventId']['McpToolCallReceived'];}get['McpToolCallExecuted'](){const _0x3a5b74=_0x1e6d1d;return e['MCPEventId'][_0x3a5b74(0x109)];}get[_0x1e6d1d(0xfc)](){const _0x40c6be=_0x1e6d1d;return e[_0x40c6be(0xf9)]['McpToolCallFailed'];}}i[_0x1e6d1d(0x11d)][_0x1e6d1d(0x11b)](r);class s extends i[_0x1e6d1d(0x112)]{['_initialize'](_0x555ba0){this['_registerMCPFacadeEvents'](_0x555ba0);}[_0x1e6d1d(0x118)](_0x214d5f){const _0x34daa9=_0x1e6d1d,_0x3446b9=_0x214d5f['get'](e[_0x34daa9(0x116)]);this[_0x34daa9(0xf7)](this[_0x34daa9(0x11c)][_0x34daa9(0x110)],()=>l['toDisposable'](_0x3446b9[_0x34daa9(0xfd)]['subscribe'](_0x3e1ff4=>{const _0x2f12c6=_0x34daa9;_0x3e1ff4[_0x2f12c6(0x108)]===e[_0x2f12c6(0xf9)][_0x2f12c6(0x110)]&&this[_0x2f12c6(0x10c)](this['Event'][_0x2f12c6(0x110)],_0x3e1ff4[_0x2f12c6(0x107)]);}))),this[_0x34daa9(0xf7)](this[_0x34daa9(0x11c)][_0x34daa9(0x10e)],()=>l[_0x34daa9(0x117)](_0x3446b9[_0x34daa9(0xfd)][_0x34daa9(0x111)](_0xef92a9=>{const _0x5d1226=_0x34daa9;_0xef92a9[_0x5d1226(0x108)]===e[_0x5d1226(0xf9)][_0x5d1226(0x10e)]&&this[_0x5d1226(0x10c)](this[_0x5d1226(0x11c)][_0x5d1226(0x10e)],_0xef92a9['data']);}))),this['registerEventHandler'](this[_0x34daa9(0x11c)][_0x34daa9(0x109)],()=>l[_0x34daa9(0x117)](_0x3446b9[_0x34daa9(0xfd)][_0x34daa9(0x111)](_0x54af97=>{const _0x1ae354=_0x34daa9;_0x54af97['type']===e[_0x1ae354(0xf9)][_0x1ae354(0x109)]&&this['fireEvent'](this[_0x1ae354(0x11c)][_0x1ae354(0x109)],_0x54af97[_0x1ae354(0x107)]);}))),this[_0x34daa9(0xf7)](this[_0x34daa9(0x11c)][_0x34daa9(0xfc)],()=>l['toDisposable'](_0x3446b9['event$'][_0x34daa9(0x111)](_0x5e43b4=>{const _0x43599e=_0x34daa9;_0x5e43b4['type']===e[_0x43599e(0xf9)][_0x43599e(0xfc)]&&this[_0x43599e(0x10c)](this['Event']['McpToolCallFailed'],_0x5e43b4['data']);})));}['validateMCPToolCall'](_0x436644,_0x23f4f9){const _0x6d217e=_0x1e6d1d;return this['_injector'][_0x6d217e(0x114)](e['IMCPToolRegistry'])['validateToolCall'](_0x436644,_0x23f4f9);}[_0x1e6d1d(0x11a)](){const _0xcfb778=_0x1e6d1d;return this[_0xcfb778(0x119)][_0xcfb778(0x114)](e[_0xcfb778(0xfb)])[_0xcfb778(0xf6)]();}['callMCPTool'](_0x51fa6c,_0x1ac016){const _0x288b64=_0x1e6d1d;return this[_0x288b64(0x119)][_0x288b64(0x114)](e[_0x288b64(0xfb)])[_0x288b64(0x10a)](_0x51fa6c,_0x1ac016);}[_0x1e6d1d(0x120)](){const _0x24ba29=_0x1e6d1d;return this[_0x24ba29(0x119)][_0x24ba29(0x114)](e[_0x24ba29(0x103)])[_0x24ba29(0x11e)]();}[_0x1e6d1d(0x105)](){const _0x1c6e11=_0x1e6d1d;this['_injector']['get'](e[_0x1c6e11(0x103)])[_0x1c6e11(0x11f)]();}[_0x1e6d1d(0x100)](){const _0x12d01c=_0x1e6d1d;this[_0x12d01c(0x119)][_0x12d01c(0x114)](e[_0x12d01c(0x103)])[_0x12d01c(0x10b)]();}}i['FUniver'][_0x1e6d1d(0x11b)](s);