@univerjs-pro/mcp 0.12.3-experimental.20251205-8c9a6bf → 0.12.3-nightly.202512060617

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 _0x2a5368=_0x3c1d;(function(_0x20532f,_0x2f97b0){const _0x1b3436=_0x3c1d,_0x30a1b0=_0x20532f();while(!![]){try{const _0x11b28f=-parseInt(_0x1b3436(0x161))/0x1*(parseInt(_0x1b3436(0x14d))/0x2)+parseInt(_0x1b3436(0x152))/0x3*(parseInt(_0x1b3436(0x143))/0x4)+-parseInt(_0x1b3436(0x155))/0x5*(-parseInt(_0x1b3436(0x146))/0x6)+parseInt(_0x1b3436(0x153))/0x7*(parseInt(_0x1b3436(0x148))/0x8)+parseInt(_0x1b3436(0x145))/0x9+parseInt(_0x1b3436(0x168))/0xa*(-parseInt(_0x1b3436(0x162))/0xb)+-parseInt(_0x1b3436(0x14c))/0xc*(parseInt(_0x1b3436(0x15f))/0xd);if(_0x11b28f===_0x2f97b0)break;else _0x30a1b0['push'](_0x30a1b0['shift']());}catch(_0x4af0d0){_0x30a1b0['push'](_0x30a1b0['shift']());}}}(_0x4c9d,0x2ae3b));function _0x4c9d(){const _0x1c2c7e=['IMCPToolRegistry','MCPEventId','getMCPConnectionStatus','_initialize','toDisposable','disconnectMCP','getAllMCPTools','MCPConnectionController','853385ZPIHFU','event$','19dpmMYi','18271HeCECn','_registerMCPFacadeEvents','Event','validateToolCall','fireEvent','MCPEventService','1030fjjJAO','data','subscribe','extend','McpToolCallExecuted','registerEventHandler','20aMdMWf','executeTool','730071OusDGo','6IaBVIz','McpToolCallFailed','555088IJEMaC','getAllTools','McpToolCallReceived','McpConnectionStatusChanged','24pcRAjt','23318ZosBTB','validateMCPToolCall','type','get','getConnectionStatus','192144ONNUJh','14pTHtIh','FUniver','797190NERKeo','_injector'];_0x4c9d=function(){return _0x1c2c7e;};return _0x4c9d();}const e=require('@univerjs-pro/mcp'),i=require('@univerjs/core/facade'),l=require('@univerjs/core');class r{get[_0x2a5368(0x14b)](){const _0x1edb8f=_0x2a5368;return e[_0x1edb8f(0x158)]['McpConnectionStatusChanged'];}get[_0x2a5368(0x14a)](){const _0x1fba48=_0x2a5368;return e[_0x1fba48(0x158)]['McpToolCallReceived'];}get[_0x2a5368(0x141)](){const _0x2aa533=_0x2a5368;return e['MCPEventId'][_0x2aa533(0x141)];}get[_0x2a5368(0x147)](){const _0x2addcb=_0x2a5368;return e[_0x2addcb(0x158)][_0x2addcb(0x147)];}}i['FEventName'][_0x2a5368(0x16b)](r);function _0x3c1d(_0x30d23e,_0x549055){_0x30d23e=_0x30d23e-0x141;const _0x4c9db0=_0x4c9d();let _0x3c1dca=_0x4c9db0[_0x30d23e];return _0x3c1dca;}class s extends i[_0x2a5368(0x154)]{[_0x2a5368(0x15a)](_0x269c45){const _0x5c9c8e=_0x2a5368;this[_0x5c9c8e(0x163)](_0x269c45);}[_0x2a5368(0x163)](_0xf806e1){const _0x1c97f2=_0x2a5368,_0x21a979=_0xf806e1[_0x1c97f2(0x150)](e[_0x1c97f2(0x167)]);this['registerEventHandler'](this[_0x1c97f2(0x164)][_0x1c97f2(0x14b)],()=>l[_0x1c97f2(0x15b)](_0x21a979['event$'][_0x1c97f2(0x16a)](_0xc7b64f=>{const _0x480ffd=_0x1c97f2;_0xc7b64f[_0x480ffd(0x14f)]===e[_0x480ffd(0x158)][_0x480ffd(0x14b)]&&this[_0x480ffd(0x166)](this[_0x480ffd(0x164)][_0x480ffd(0x14b)],_0xc7b64f['data']);}))),this[_0x1c97f2(0x142)](this[_0x1c97f2(0x164)][_0x1c97f2(0x14a)],()=>l['toDisposable'](_0x21a979[_0x1c97f2(0x160)][_0x1c97f2(0x16a)](_0x15aabe=>{const _0x4afc84=_0x1c97f2;_0x15aabe[_0x4afc84(0x14f)]===e[_0x4afc84(0x158)][_0x4afc84(0x14a)]&&this[_0x4afc84(0x166)](this[_0x4afc84(0x164)][_0x4afc84(0x14a)],_0x15aabe[_0x4afc84(0x169)]);}))),this['registerEventHandler'](this[_0x1c97f2(0x164)][_0x1c97f2(0x141)],()=>l[_0x1c97f2(0x15b)](_0x21a979[_0x1c97f2(0x160)][_0x1c97f2(0x16a)](_0x174ac5=>{const _0x37def7=_0x1c97f2;_0x174ac5['type']===e[_0x37def7(0x158)]['McpToolCallExecuted']&&this[_0x37def7(0x166)](this[_0x37def7(0x164)][_0x37def7(0x141)],_0x174ac5['data']);}))),this[_0x1c97f2(0x142)](this[_0x1c97f2(0x164)]['McpToolCallFailed'],()=>l[_0x1c97f2(0x15b)](_0x21a979[_0x1c97f2(0x160)]['subscribe'](_0x472207=>{const _0x3ffd97=_0x1c97f2;_0x472207['type']===e['MCPEventId']['McpToolCallFailed']&&this[_0x3ffd97(0x166)](this['Event'][_0x3ffd97(0x147)],_0x472207[_0x3ffd97(0x169)]);})));}[_0x2a5368(0x14e)](_0x3d3e55,_0x11df34){const _0x28cc2a=_0x2a5368;return this[_0x28cc2a(0x156)][_0x28cc2a(0x150)](e[_0x28cc2a(0x157)])[_0x28cc2a(0x165)](_0x3d3e55,_0x11df34);}[_0x2a5368(0x15d)](){const _0x4ac6e1=_0x2a5368;return this['_injector'][_0x4ac6e1(0x150)](e[_0x4ac6e1(0x157)])[_0x4ac6e1(0x149)]();}['callMCPTool'](_0x50c075,_0x1515d0){const _0x21bd8d=_0x2a5368;return this[_0x21bd8d(0x156)][_0x21bd8d(0x150)](e['IMCPToolRegistry'])[_0x21bd8d(0x144)](_0x50c075,_0x1515d0);}[_0x2a5368(0x159)](){const _0x315bd1=_0x2a5368;return this['_injector']['get'](e['MCPConnectionController'])[_0x315bd1(0x151)]();}['connectMCP'](){const _0x23e81a=_0x2a5368;this[_0x23e81a(0x156)][_0x23e81a(0x150)](e['MCPConnectionController'])['connect']();}[_0x2a5368(0x15c)](){const _0x3b5b59=_0x2a5368;this[_0x3b5b59(0x156)][_0x3b5b59(0x150)](e[_0x3b5b59(0x15e)])['disconnect']();}}i[_0x2a5368(0x154)]['extend'](s);
1
+ 'use strict';function _0xc8dc(_0x490f6f,_0x2360f1){_0x490f6f=_0x490f6f-0x1bd;const _0x14a6db=_0x14a6();let _0xc8dc35=_0x14a6db[_0x490f6f];return _0xc8dc35;}const _0x4ab902=_0xc8dc;(function(_0x1cd8fb,_0x2f91b8){const _0x4b65a9=_0xc8dc,_0x20e5f7=_0x1cd8fb();while(!![]){try{const _0x46e4fe=parseInt(_0x4b65a9(0x1d0))/0x1+-parseInt(_0x4b65a9(0x1c7))/0x2*(parseInt(_0x4b65a9(0x1d8))/0x3)+-parseInt(_0x4b65a9(0x1d9))/0x4*(parseInt(_0x4b65a9(0x1e6))/0x5)+parseInt(_0x4b65a9(0x1c1))/0x6*(parseInt(_0x4b65a9(0x1d5))/0x7)+-parseInt(_0x4b65a9(0x1e2))/0x8+parseInt(_0x4b65a9(0x1d1))/0x9+parseInt(_0x4b65a9(0x1dd))/0xa;if(_0x46e4fe===_0x2f91b8)break;else _0x20e5f7['push'](_0x20e5f7['shift']());}catch(_0x10272c){_0x20e5f7['push'](_0x20e5f7['shift']());}}}(_0x14a6,0x7e4a2));const e=require('@univerjs-pro/mcp'),i=require('@univerjs/core/facade'),l=require('@univerjs/core');function _0x14a6(){const _0x3964f8=['get','McpToolCallExecuted','405180sRuVWc','extend','connect','_initialize','FEventName','disconnectMCP','disconnect','getAllMCPTools','McpToolCallFailed','515476tpYoBR','4652397ZlinMQ','registerEventHandler','connectMCP','fireEvent','42tIFNyv','_registerMCPFacadeEvents','Event','9riFxlF','4PrUiFn','MCPConnectionController','MCPEventId','getAllTools','9321780hedmum','validateMCPToolCall','FUniver','data','IMCPToolRegistry','3476928mGaARo','MCPEventService','type','getMCPConnectionStatus','4835265nynBnl','_injector','McpConnectionStatusChanged','callMCPTool','subscribe','562134BlGMtz','toDisposable','McpToolCallReceived','event$'];_0x14a6=function(){return _0x3964f8;};return _0x14a6();}class r{get[_0x4ab902(0x1be)](){const _0x4ee4fb=_0x4ab902;return e['MCPEventId'][_0x4ee4fb(0x1be)];}get[_0x4ab902(0x1c3)](){return e['MCPEventId']['McpToolCallReceived'];}get[_0x4ab902(0x1c6)](){const _0x321dbb=_0x4ab902;return e[_0x321dbb(0x1db)][_0x321dbb(0x1c6)];}get['McpToolCallFailed'](){const _0xc58a45=_0x4ab902;return e[_0xc58a45(0x1db)][_0xc58a45(0x1cf)];}}i[_0x4ab902(0x1cb)][_0x4ab902(0x1c8)](r);class s extends i[_0x4ab902(0x1df)]{[_0x4ab902(0x1ca)](_0x409752){const _0x13f091=_0x4ab902;this[_0x13f091(0x1d6)](_0x409752);}[_0x4ab902(0x1d6)](_0x2714fe){const _0x130eb0=_0x4ab902,_0xddf1ae=_0x2714fe[_0x130eb0(0x1c5)](e[_0x130eb0(0x1e3)]);this[_0x130eb0(0x1d2)](this['Event'][_0x130eb0(0x1be)],()=>l[_0x130eb0(0x1c2)](_0xddf1ae[_0x130eb0(0x1c4)][_0x130eb0(0x1c0)](_0x34e902=>{const _0x3b3835=_0x130eb0;_0x34e902[_0x3b3835(0x1e4)]===e[_0x3b3835(0x1db)]['McpConnectionStatusChanged']&&this['fireEvent'](this['Event'][_0x3b3835(0x1be)],_0x34e902[_0x3b3835(0x1e0)]);}))),this[_0x130eb0(0x1d2)](this[_0x130eb0(0x1d7)][_0x130eb0(0x1c3)],()=>l[_0x130eb0(0x1c2)](_0xddf1ae[_0x130eb0(0x1c4)][_0x130eb0(0x1c0)](_0x37eba1=>{const _0x4c706d=_0x130eb0;_0x37eba1['type']===e[_0x4c706d(0x1db)][_0x4c706d(0x1c3)]&&this['fireEvent'](this[_0x4c706d(0x1d7)][_0x4c706d(0x1c3)],_0x37eba1[_0x4c706d(0x1e0)]);}))),this['registerEventHandler'](this[_0x130eb0(0x1d7)][_0x130eb0(0x1c6)],()=>l[_0x130eb0(0x1c2)](_0xddf1ae[_0x130eb0(0x1c4)][_0x130eb0(0x1c0)](_0x117565=>{const _0x363227=_0x130eb0;_0x117565[_0x363227(0x1e4)]===e[_0x363227(0x1db)][_0x363227(0x1c6)]&&this[_0x363227(0x1d4)](this[_0x363227(0x1d7)][_0x363227(0x1c6)],_0x117565[_0x363227(0x1e0)]);}))),this[_0x130eb0(0x1d2)](this[_0x130eb0(0x1d7)][_0x130eb0(0x1cf)],()=>l[_0x130eb0(0x1c2)](_0xddf1ae[_0x130eb0(0x1c4)][_0x130eb0(0x1c0)](_0x1b31fb=>{const _0x2fe9bd=_0x130eb0;_0x1b31fb['type']===e['MCPEventId'][_0x2fe9bd(0x1cf)]&&this['fireEvent'](this[_0x2fe9bd(0x1d7)][_0x2fe9bd(0x1cf)],_0x1b31fb[_0x2fe9bd(0x1e0)]);})));}[_0x4ab902(0x1de)](_0x704fb0,_0x58cc4f){const _0x26f6b2=_0x4ab902;return this[_0x26f6b2(0x1bd)][_0x26f6b2(0x1c5)](e[_0x26f6b2(0x1e1)])['validateToolCall'](_0x704fb0,_0x58cc4f);}[_0x4ab902(0x1ce)](){const _0x440b71=_0x4ab902;return this[_0x440b71(0x1bd)][_0x440b71(0x1c5)](e[_0x440b71(0x1e1)])[_0x440b71(0x1dc)]();}[_0x4ab902(0x1bf)](_0x2b59f3,_0x4b6b57){const _0xbee39a=_0x4ab902;return this[_0xbee39a(0x1bd)][_0xbee39a(0x1c5)](e['IMCPToolRegistry'])['executeTool'](_0x2b59f3,_0x4b6b57);}[_0x4ab902(0x1e5)](){const _0x3f0212=_0x4ab902;return this[_0x3f0212(0x1bd)][_0x3f0212(0x1c5)](e[_0x3f0212(0x1da)])['getConnectionStatus']();}[_0x4ab902(0x1d3)](){const _0x36cef8=_0x4ab902;this[_0x36cef8(0x1bd)][_0x36cef8(0x1c5)](e[_0x36cef8(0x1da)])[_0x36cef8(0x1c9)]();}[_0x4ab902(0x1cc)](){const _0x52f5ad=_0x4ab902;this[_0x52f5ad(0x1bd)][_0x52f5ad(0x1c5)](e[_0x52f5ad(0x1da)])[_0x52f5ad(0x1cd)]();}}i[_0x4ab902(0x1df)]['extend'](s);