@univerjs-pro/mcp 0.10.10 → 0.10.11

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 _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);
1
+ 'use strict';const _0x1ebed6=_0x115e;function _0x115e(_0xfd2802,_0xaf76a9){const _0x13ba2a=_0x13ba();return _0x115e=function(_0x115e24,_0x26e841){_0x115e24=_0x115e24-0xc6;let _0x398848=_0x13ba2a[_0x115e24];return _0x398848;},_0x115e(_0xfd2802,_0xaf76a9);}function _0x13ba(){const _0x1aaf34=['getAllMCPTools','disconnect','type','5316462oAePKj','event$','getAllTools','325017Pyryys','McpToolCallExecuted','MCPEventId','707550FwyOSL','119sVLLrc','134106csjmxm','3JcsmSD','validateToolCall','357915bIlWqM','488086vKjydj','executeTool','callMCPTool','McpToolCallReceived','Event','_injector','McpToolCallFailed','McpConnectionStatusChanged','MCPEventService','subscribe','_registerMCPFacadeEvents','get','extend','fireEvent','toDisposable','validateMCPToolCall','registerEventHandler','FUniver','getMCPConnectionStatus','data','getConnectionStatus','12paiZPp','IMCPToolRegistry','6031192oLuGyk','disconnectMCP','MCPConnectionController'];_0x13ba=function(){return _0x1aaf34;};return _0x13ba();}(function(_0x5086d0,_0x3080c2){const _0x485f86=_0x115e,_0x856a94=_0x5086d0();while(!![]){try{const _0x584ada=-parseInt(_0x485f86(0xd9))/0x1*(-parseInt(_0x485f86(0xdc))/0x2)+parseInt(_0x485f86(0xd3))/0x3+parseInt(_0x485f86(0xc8))/0x4*(parseInt(_0x485f86(0xdb))/0x5)+parseInt(_0x485f86(0xd8))/0x6*(-parseInt(_0x485f86(0xd7))/0x7)+-parseInt(_0x485f86(0xca))/0x8+parseInt(_0x485f86(0xd0))/0x9+-parseInt(_0x485f86(0xd6))/0xa;if(_0x584ada===_0x3080c2)break;else _0x856a94['push'](_0x856a94['shift']());}catch(_0x5112fb){_0x856a94['push'](_0x856a94['shift']());}}}(_0x13ba,0x6bbe2));const e=require('@univerjs-pro/mcp'),i=require('@univerjs/core/facade'),l=require('@univerjs/core');class r{get[_0x1ebed6(0xe3)](){const _0x5f5328=_0x1ebed6;return e[_0x5f5328(0xd5)]['McpConnectionStatusChanged'];}get[_0x1ebed6(0xdf)](){const _0x5dff77=_0x1ebed6;return e[_0x5dff77(0xd5)][_0x5dff77(0xdf)];}get['McpToolCallExecuted'](){const _0x572f05=_0x1ebed6;return e['MCPEventId'][_0x572f05(0xd4)];}get[_0x1ebed6(0xe2)](){const _0x460476=_0x1ebed6;return e[_0x460476(0xd5)]['McpToolCallFailed'];}}i['FEventName'][_0x1ebed6(0xe8)](r);class s extends i[_0x1ebed6(0xed)]{['_initialize'](_0x199dde){const _0x564180=_0x1ebed6;this[_0x564180(0xe6)](_0x199dde);}[_0x1ebed6(0xe6)](_0x11fd60){const _0x4916a9=_0x1ebed6,_0x5f2ee5=_0x11fd60[_0x4916a9(0xe7)](e[_0x4916a9(0xe4)]);this[_0x4916a9(0xec)](this[_0x4916a9(0xe0)][_0x4916a9(0xe3)],()=>l[_0x4916a9(0xea)](_0x5f2ee5[_0x4916a9(0xd1)]['subscribe'](_0xe4aba8=>{const _0x5ad030=_0x4916a9;_0xe4aba8['type']===e[_0x5ad030(0xd5)][_0x5ad030(0xe3)]&&this[_0x5ad030(0xe9)](this[_0x5ad030(0xe0)]['McpConnectionStatusChanged'],_0xe4aba8[_0x5ad030(0xc6)]);}))),this[_0x4916a9(0xec)](this[_0x4916a9(0xe0)]['McpToolCallReceived'],()=>l[_0x4916a9(0xea)](_0x5f2ee5[_0x4916a9(0xd1)][_0x4916a9(0xe5)](_0x4b91f3=>{const _0x206a3b=_0x4916a9;_0x4b91f3[_0x206a3b(0xcf)]===e[_0x206a3b(0xd5)][_0x206a3b(0xdf)]&&this[_0x206a3b(0xe9)](this[_0x206a3b(0xe0)][_0x206a3b(0xdf)],_0x4b91f3['data']);}))),this['registerEventHandler'](this['Event'][_0x4916a9(0xd4)],()=>l[_0x4916a9(0xea)](_0x5f2ee5[_0x4916a9(0xd1)][_0x4916a9(0xe5)](_0x76bdf5=>{const _0x16e0bd=_0x4916a9;_0x76bdf5[_0x16e0bd(0xcf)]===e[_0x16e0bd(0xd5)][_0x16e0bd(0xd4)]&&this['fireEvent'](this[_0x16e0bd(0xe0)][_0x16e0bd(0xd4)],_0x76bdf5[_0x16e0bd(0xc6)]);}))),this[_0x4916a9(0xec)](this[_0x4916a9(0xe0)][_0x4916a9(0xe2)],()=>l[_0x4916a9(0xea)](_0x5f2ee5['event$'][_0x4916a9(0xe5)](_0x330655=>{const _0x495f02=_0x4916a9;_0x330655[_0x495f02(0xcf)]===e['MCPEventId'][_0x495f02(0xe2)]&&this[_0x495f02(0xe9)](this[_0x495f02(0xe0)]['McpToolCallFailed'],_0x330655[_0x495f02(0xc6)]);})));}[_0x1ebed6(0xeb)](_0x81ba48,_0x5d0039){const _0x11836f=_0x1ebed6;return this['_injector'][_0x11836f(0xe7)](e[_0x11836f(0xc9)])[_0x11836f(0xda)](_0x81ba48,_0x5d0039);}[_0x1ebed6(0xcd)](){const _0xb51973=_0x1ebed6;return this[_0xb51973(0xe1)][_0xb51973(0xe7)](e[_0xb51973(0xc9)])[_0xb51973(0xd2)]();}[_0x1ebed6(0xde)](_0x2822c9,_0x738a02){const _0x38557b=_0x1ebed6;return this[_0x38557b(0xe1)][_0x38557b(0xe7)](e['IMCPToolRegistry'])[_0x38557b(0xdd)](_0x2822c9,_0x738a02);}[_0x1ebed6(0xee)](){const _0x5c4ad5=_0x1ebed6;return this[_0x5c4ad5(0xe1)][_0x5c4ad5(0xe7)](e[_0x5c4ad5(0xcc)])[_0x5c4ad5(0xc7)]();}['connectMCP'](){const _0x22036e=_0x1ebed6;this[_0x22036e(0xe1)][_0x22036e(0xe7)](e[_0x22036e(0xcc)])['connect']();}[_0x1ebed6(0xcb)](){const _0x3c307d=_0x1ebed6;this[_0x3c307d(0xe1)]['get'](e[_0x3c307d(0xcc)])[_0x3c307d(0xce)]();}}i[_0x1ebed6(0xed)][_0x1ebed6(0xe8)](s);