@univerjs-pro/mcp 0.12.3-experimental.20251205-71d07c3 → 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';function _0x2772(_0x43e136,_0x4b30ef){_0x43e136=_0x43e136-0x124;const _0x398ec9=_0x398e();let _0x2772e9=_0x398ec9[_0x43e136];return _0x2772e9;}const _0x16b65e=_0x2772;(function(_0xd1746c,_0x2e6f33){const _0xdfcc7f=_0x2772,_0x3aa1b7=_0xd1746c();while(!![]){try{const _0x1e2d35=parseInt(_0xdfcc7f(0x13c))/0x1*(-parseInt(_0xdfcc7f(0x13d))/0x2)+parseInt(_0xdfcc7f(0x140))/0x3*(-parseInt(_0xdfcc7f(0x127))/0x4)+-parseInt(_0xdfcc7f(0x13e))/0x5+parseInt(_0xdfcc7f(0x141))/0x6*(-parseInt(_0xdfcc7f(0x134))/0x7)+-parseInt(_0xdfcc7f(0x129))/0x8*(-parseInt(_0xdfcc7f(0x136))/0x9)+-parseInt(_0xdfcc7f(0x144))/0xa+parseInt(_0xdfcc7f(0x147))/0xb;if(_0x1e2d35===_0x2e6f33)break;else _0x3aa1b7['push'](_0x3aa1b7['shift']());}catch(_0x8f1399){_0x3aa1b7['push'](_0x3aa1b7['shift']());}}}(_0x398e,0xc6095));const e=require('@univerjs-pro/mcp'),i=require('@univerjs/core/facade'),l=require('@univerjs/core');class r{get[_0x16b65e(0x142)](){const _0x507d7f=_0x16b65e;return e[_0x507d7f(0x13a)][_0x507d7f(0x142)];}get[_0x16b65e(0x137)](){const _0x318941=_0x16b65e;return e[_0x318941(0x13a)][_0x318941(0x137)];}get[_0x16b65e(0x12f)](){const _0x58a142=_0x16b65e;return e[_0x58a142(0x13a)][_0x58a142(0x12f)];}get[_0x16b65e(0x13f)](){const _0xb79f91=_0x16b65e;return e['MCPEventId'][_0xb79f91(0x13f)];}}i[_0x16b65e(0x126)][_0x16b65e(0x12e)](r);function _0x398e(){const _0x4174d3=['getConnectionStatus','getMCPConnectionStatus','MCPEventId','subscribe','51NncoQP','12522AskKUu','1786465yTNPoG','McpToolCallFailed','3adcNlU','6yVGoEC','McpConnectionStatusChanged','_injector','16154660LvwueQ','toDisposable','executeTool','45637790XgLIXr','connectMCP','validateToolCall','connect','data','Event','MCPConnectionController','_registerMCPFacadeEvents','disconnect','FEventName','3629640ITEUFg','getAllTools','2589584ZVHFGh','FUniver','registerEventHandler','_initialize','event$','extend','McpToolCallExecuted','get','type','fireEvent','validateMCPToolCall','7765429qXtucB','IMCPToolRegistry','27BjsprM','McpToolCallReceived'];_0x398e=function(){return _0x4174d3;};return _0x398e();}class s extends i[_0x16b65e(0x12a)]{[_0x16b65e(0x12c)](_0x2513a0){const _0x5384d0=_0x16b65e;this[_0x5384d0(0x124)](_0x2513a0);}[_0x16b65e(0x124)](_0x113cb3){const _0x8bf600=_0x16b65e,_0x5e0573=_0x113cb3[_0x8bf600(0x130)](e['MCPEventService']);this['registerEventHandler'](this[_0x8bf600(0x14c)]['McpConnectionStatusChanged'],()=>l[_0x8bf600(0x145)](_0x5e0573[_0x8bf600(0x12d)][_0x8bf600(0x13b)](_0x503ae6=>{const _0x3b2485=_0x8bf600;_0x503ae6[_0x3b2485(0x131)]===e['MCPEventId'][_0x3b2485(0x142)]&&this[_0x3b2485(0x132)](this['Event'][_0x3b2485(0x142)],_0x503ae6[_0x3b2485(0x14b)]);}))),this['registerEventHandler'](this[_0x8bf600(0x14c)][_0x8bf600(0x137)],()=>l[_0x8bf600(0x145)](_0x5e0573[_0x8bf600(0x12d)][_0x8bf600(0x13b)](_0x2c5110=>{const _0x5c1970=_0x8bf600;_0x2c5110['type']===e['MCPEventId'][_0x5c1970(0x137)]&&this[_0x5c1970(0x132)](this[_0x5c1970(0x14c)][_0x5c1970(0x137)],_0x2c5110[_0x5c1970(0x14b)]);}))),this['registerEventHandler'](this[_0x8bf600(0x14c)][_0x8bf600(0x12f)],()=>l[_0x8bf600(0x145)](_0x5e0573[_0x8bf600(0x12d)][_0x8bf600(0x13b)](_0x182025=>{const _0x568612=_0x8bf600;_0x182025[_0x568612(0x131)]===e[_0x568612(0x13a)][_0x568612(0x12f)]&&this[_0x568612(0x132)](this[_0x568612(0x14c)][_0x568612(0x12f)],_0x182025[_0x568612(0x14b)]);}))),this[_0x8bf600(0x12b)](this[_0x8bf600(0x14c)][_0x8bf600(0x13f)],()=>l[_0x8bf600(0x145)](_0x5e0573[_0x8bf600(0x12d)]['subscribe'](_0x24d8d4=>{const _0x2eca14=_0x8bf600;_0x24d8d4[_0x2eca14(0x131)]===e[_0x2eca14(0x13a)]['McpToolCallFailed']&&this[_0x2eca14(0x132)](this[_0x2eca14(0x14c)]['McpToolCallFailed'],_0x24d8d4['data']);})));}[_0x16b65e(0x133)](_0x4c58f5,_0x34f2ff){const _0x8e4130=_0x16b65e;return this[_0x8e4130(0x143)]['get'](e['IMCPToolRegistry'])[_0x8e4130(0x149)](_0x4c58f5,_0x34f2ff);}['getAllMCPTools'](){const _0x24fe61=_0x16b65e;return this['_injector'][_0x24fe61(0x130)](e['IMCPToolRegistry'])[_0x24fe61(0x128)]();}['callMCPTool'](_0x5c9f05,_0x3be37a){const _0x50efcb=_0x16b65e;return this[_0x50efcb(0x143)][_0x50efcb(0x130)](e[_0x50efcb(0x135)])[_0x50efcb(0x146)](_0x5c9f05,_0x3be37a);}[_0x16b65e(0x139)](){const _0x577f62=_0x16b65e;return this[_0x577f62(0x143)][_0x577f62(0x130)](e[_0x577f62(0x14d)])[_0x577f62(0x138)]();}[_0x16b65e(0x148)](){const _0x516d13=_0x16b65e;this[_0x516d13(0x143)][_0x516d13(0x130)](e['MCPConnectionController'])[_0x516d13(0x14a)]();}['disconnectMCP'](){const _0x207b7f=_0x16b65e;this[_0x207b7f(0x143)][_0x207b7f(0x130)](e[_0x207b7f(0x14d)])[_0x207b7f(0x125)]();}}i['FUniver'][_0x16b65e(0x12e)](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);