@univerjs-pro/mcp 0.10.10-experimental.20251010-3f807c5 → 0.10.10-nightly.202510170942

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 _0x3a57c2=_0x5473;(function(_0x287c2a,_0x667acf){const _0xb82151=_0x5473,_0x623c8d=_0x287c2a();while(!![]){try{const _0x1157e2=-parseInt(_0xb82151(0x1ca))/0x1+-parseInt(_0xb82151(0x1ba))/0x2+-parseInt(_0xb82151(0x1a9))/0x3+-parseInt(_0xb82151(0x1d1))/0x4+parseInt(_0xb82151(0x1c8))/0x5*(parseInt(_0xb82151(0x1c3))/0x6)+-parseInt(_0xb82151(0x1b5))/0x7+parseInt(_0xb82151(0x1cc))/0x8;if(_0x1157e2===_0x667acf)break;else _0x623c8d['push'](_0x623c8d['shift']());}catch(_0x2b9786){_0x623c8d['push'](_0x623c8d['shift']());}}}(_0x98b6,0x9c804));const e=require('@univerjs-pro/mcp'),i=require('@univerjs/core/facade'),l=require('@univerjs/core');function _0x5473(_0x213286,_0x3dbe50){const _0x98b68=_0x98b6();return _0x5473=function(_0x5473bc,_0x2cf1e0){_0x5473bc=_0x5473bc-0x1a9;let _0x143213=_0x98b68[_0x5473bc];return _0x143213;},_0x5473(_0x213286,_0x3dbe50);}class r{get[_0x3a57c2(0x1cf)](){const _0x4704f3=_0x3a57c2;return e[_0x4704f3(0x1ce)][_0x4704f3(0x1cf)];}get[_0x3a57c2(0x1b0)](){return e['MCPEventId']['McpToolCallReceived'];}get[_0x3a57c2(0x1d0)](){const _0x219f24=_0x3a57c2;return e['MCPEventId'][_0x219f24(0x1d0)];}get[_0x3a57c2(0x1bd)](){const _0x24e22e=_0x3a57c2;return e[_0x24e22e(0x1ce)][_0x24e22e(0x1bd)];}}function _0x98b6(){const _0x220119=['getConnectionStatus','toDisposable','FEventName','getAllTools','24aaisNr','connect','executeTool','getMCPConnectionStatus','IMCPToolRegistry','1531335Oagcaw','get','346243lQQZJm','_registerMCPFacadeEvents','19431728uJHugF','type','MCPEventId','McpConnectionStatusChanged','McpToolCallExecuted','5037312MzbUhG','1526988jRgyIV','event$','FUniver','fireEvent','extend','data','callMCPTool','McpToolCallReceived','subscribe','disconnectMCP','getAllMCPTools','_initialize','1724352jAeWgL','validateToolCall','registerEventHandler','disconnect','MCPConnectionController','1304206fBdlsN','Event','_injector','McpToolCallFailed','validateMCPToolCall'];_0x98b6=function(){return _0x220119;};return _0x98b6();}i[_0x3a57c2(0x1c1)][_0x3a57c2(0x1ad)](r);class s extends i['FUniver']{[_0x3a57c2(0x1b4)](_0x307ca4){const _0x383502=_0x3a57c2;this[_0x383502(0x1cb)](_0x307ca4);}[_0x3a57c2(0x1cb)](_0x3c7e97){const _0x563593=_0x3a57c2,_0x3c46d0=_0x3c7e97[_0x563593(0x1c9)](e['MCPEventService']);this['registerEventHandler'](this[_0x563593(0x1bb)][_0x563593(0x1cf)],()=>l[_0x563593(0x1c0)](_0x3c46d0[_0x563593(0x1aa)]['subscribe'](_0x3aad6a=>{const _0x14961d=_0x563593;_0x3aad6a[_0x14961d(0x1cd)]===e[_0x14961d(0x1ce)][_0x14961d(0x1cf)]&&this[_0x14961d(0x1ac)](this[_0x14961d(0x1bb)][_0x14961d(0x1cf)],_0x3aad6a[_0x14961d(0x1ae)]);}))),this[_0x563593(0x1b7)](this[_0x563593(0x1bb)]['McpToolCallReceived'],()=>l[_0x563593(0x1c0)](_0x3c46d0['event$'][_0x563593(0x1b1)](_0x33e632=>{const _0x534d60=_0x563593;_0x33e632[_0x534d60(0x1cd)]===e[_0x534d60(0x1ce)][_0x534d60(0x1b0)]&&this['fireEvent'](this['Event'][_0x534d60(0x1b0)],_0x33e632['data']);}))),this[_0x563593(0x1b7)](this[_0x563593(0x1bb)][_0x563593(0x1d0)],()=>l[_0x563593(0x1c0)](_0x3c46d0[_0x563593(0x1aa)][_0x563593(0x1b1)](_0x3d917a=>{const _0x2af158=_0x563593;_0x3d917a['type']===e[_0x2af158(0x1ce)][_0x2af158(0x1d0)]&&this[_0x2af158(0x1ac)](this[_0x2af158(0x1bb)][_0x2af158(0x1d0)],_0x3d917a[_0x2af158(0x1ae)]);}))),this[_0x563593(0x1b7)](this[_0x563593(0x1bb)][_0x563593(0x1bd)],()=>l[_0x563593(0x1c0)](_0x3c46d0[_0x563593(0x1aa)][_0x563593(0x1b1)](_0x32ca2e=>{const _0x540195=_0x563593;_0x32ca2e[_0x540195(0x1cd)]===e[_0x540195(0x1ce)]['McpToolCallFailed']&&this['fireEvent'](this[_0x540195(0x1bb)][_0x540195(0x1bd)],_0x32ca2e[_0x540195(0x1ae)]);})));}[_0x3a57c2(0x1be)](_0x4a3851,_0x177c08){const _0x370e4d=_0x3a57c2;return this['_injector'][_0x370e4d(0x1c9)](e[_0x370e4d(0x1c7)])[_0x370e4d(0x1b6)](_0x4a3851,_0x177c08);}[_0x3a57c2(0x1b3)](){const _0x4c74fd=_0x3a57c2;return this[_0x4c74fd(0x1bc)]['get'](e[_0x4c74fd(0x1c7)])[_0x4c74fd(0x1c2)]();}[_0x3a57c2(0x1af)](_0x41c2c2,_0x317f1e){const _0x30d6aa=_0x3a57c2;return this[_0x30d6aa(0x1bc)][_0x30d6aa(0x1c9)](e[_0x30d6aa(0x1c7)])[_0x30d6aa(0x1c5)](_0x41c2c2,_0x317f1e);}[_0x3a57c2(0x1c6)](){const _0xb55cd9=_0x3a57c2;return this[_0xb55cd9(0x1bc)][_0xb55cd9(0x1c9)](e['MCPConnectionController'])[_0xb55cd9(0x1bf)]();}['connectMCP'](){const _0x45dc79=_0x3a57c2;this[_0x45dc79(0x1bc)]['get'](e[_0x45dc79(0x1b9)])[_0x45dc79(0x1c4)]();}[_0x3a57c2(0x1b2)](){const _0x5630b8=_0x3a57c2;this[_0x5630b8(0x1bc)][_0x5630b8(0x1c9)](e[_0x5630b8(0x1b9)])[_0x5630b8(0x1b8)]();}}i[_0x3a57c2(0x1ab)][_0x3a57c2(0x1ad)](s);
1
+ 'use strict';const _0x100d76=_0xb7b6;(function(_0x5efae8,_0x4c1ad4){const _0xf8078d=_0xb7b6,_0x1420f5=_0x5efae8();while(!![]){try{const _0x38f2ce=parseInt(_0xf8078d(0x176))/0x1+parseInt(_0xf8078d(0x177))/0x2*(-parseInt(_0xf8078d(0x17e))/0x3)+-parseInt(_0xf8078d(0x181))/0x4*(parseInt(_0xf8078d(0x185))/0x5)+-parseInt(_0xf8078d(0x172))/0x6+parseInt(_0xf8078d(0x192))/0x7+parseInt(_0xf8078d(0x16c))/0x8+-parseInt(_0xf8078d(0x18f))/0x9*(-parseInt(_0xf8078d(0x18e))/0xa);if(_0x38f2ce===_0x4c1ad4)break;else _0x1420f5['push'](_0x1420f5['shift']());}catch(_0x10d665){_0x1420f5['push'](_0x1420f5['shift']());}}}(_0x27e6,0x56e52));const e=require('@univerjs-pro/mcp'),i=require('@univerjs/core/facade'),l=require('@univerjs/core');function _0x27e6(){const _0x2dd547=['getConnectionStatus','getAllTools','MCPEventId','connectMCP','McpToolCallFailed','2762892JxbcZc','McpToolCallExecuted','registerEventHandler','get','202801bOEYlA','213812nGkmic','FEventName','disconnectMCP','McpToolCallReceived','event$','_initialize','executeTool','3ckzURM','FUniver','getMCPConnectionStatus','198148OqRReX','_registerMCPFacadeEvents','fireEvent','connect','10XBvwcl','_injector','data','validateToolCall','disconnect','Event','extend','IMCPToolRegistry','toDisposable','397030ujiRdm','54DwTcMt','MCPConnectionController','type','343658zuAmrK','McpConnectionStatusChanged','subscribe','validateMCPToolCall','4258168plgCFf'];_0x27e6=function(){return _0x2dd547;};return _0x27e6();}function _0xb7b6(_0x34596d,_0x40785c){const _0x27e6de=_0x27e6();return _0xb7b6=function(_0xb7b6af,_0x3c5cb2){_0xb7b6af=_0xb7b6af-0x169;let _0x3bce5f=_0x27e6de[_0xb7b6af];return _0x3bce5f;},_0xb7b6(_0x34596d,_0x40785c);}class r{get[_0x100d76(0x169)](){const _0x1c86ba=_0x100d76;return e['MCPEventId'][_0x1c86ba(0x169)];}get[_0x100d76(0x17a)](){const _0x5a6870=_0x100d76;return e[_0x5a6870(0x16f)][_0x5a6870(0x17a)];}get[_0x100d76(0x173)](){const _0x563962=_0x100d76;return e[_0x563962(0x16f)][_0x563962(0x173)];}get['McpToolCallFailed'](){const _0x157c60=_0x100d76;return e[_0x157c60(0x16f)]['McpToolCallFailed'];}}i[_0x100d76(0x178)]['extend'](r);class s extends i['FUniver']{[_0x100d76(0x17c)](_0x33f903){const _0x3a8f1b=_0x100d76;this[_0x3a8f1b(0x182)](_0x33f903);}['_registerMCPFacadeEvents'](_0x566929){const _0x1b3970=_0x100d76,_0x304ab6=_0x566929[_0x1b3970(0x175)](e['MCPEventService']);this['registerEventHandler'](this[_0x1b3970(0x18a)][_0x1b3970(0x169)],()=>l[_0x1b3970(0x18d)](_0x304ab6[_0x1b3970(0x17b)][_0x1b3970(0x16a)](_0x337bb0=>{const _0x21f199=_0x1b3970;_0x337bb0[_0x21f199(0x191)]===e[_0x21f199(0x16f)][_0x21f199(0x169)]&&this[_0x21f199(0x183)](this[_0x21f199(0x18a)][_0x21f199(0x169)],_0x337bb0[_0x21f199(0x187)]);}))),this[_0x1b3970(0x174)](this['Event'][_0x1b3970(0x17a)],()=>l[_0x1b3970(0x18d)](_0x304ab6[_0x1b3970(0x17b)]['subscribe'](_0x1d9e1d=>{const _0x156490=_0x1b3970;_0x1d9e1d[_0x156490(0x191)]===e[_0x156490(0x16f)][_0x156490(0x17a)]&&this['fireEvent'](this['Event']['McpToolCallReceived'],_0x1d9e1d[_0x156490(0x187)]);}))),this[_0x1b3970(0x174)](this[_0x1b3970(0x18a)][_0x1b3970(0x173)],()=>l[_0x1b3970(0x18d)](_0x304ab6[_0x1b3970(0x17b)][_0x1b3970(0x16a)](_0x4b3fa7=>{const _0x370563=_0x1b3970;_0x4b3fa7[_0x370563(0x191)]===e[_0x370563(0x16f)][_0x370563(0x173)]&&this[_0x370563(0x183)](this[_0x370563(0x18a)][_0x370563(0x173)],_0x4b3fa7[_0x370563(0x187)]);}))),this[_0x1b3970(0x174)](this[_0x1b3970(0x18a)][_0x1b3970(0x171)],()=>l[_0x1b3970(0x18d)](_0x304ab6[_0x1b3970(0x17b)][_0x1b3970(0x16a)](_0x5549db=>{const _0x28d272=_0x1b3970;_0x5549db[_0x28d272(0x191)]===e['MCPEventId']['McpToolCallFailed']&&this[_0x28d272(0x183)](this[_0x28d272(0x18a)][_0x28d272(0x171)],_0x5549db[_0x28d272(0x187)]);})));}[_0x100d76(0x16b)](_0x23bcfb,_0x4089f9){const _0x9654a6=_0x100d76;return this[_0x9654a6(0x186)][_0x9654a6(0x175)](e[_0x9654a6(0x18c)])[_0x9654a6(0x188)](_0x23bcfb,_0x4089f9);}['getAllMCPTools'](){const _0x1df116=_0x100d76;return this[_0x1df116(0x186)][_0x1df116(0x175)](e[_0x1df116(0x18c)])[_0x1df116(0x16e)]();}['callMCPTool'](_0x319cbf,_0x468c28){const _0x213e41=_0x100d76;return this[_0x213e41(0x186)][_0x213e41(0x175)](e[_0x213e41(0x18c)])[_0x213e41(0x17d)](_0x319cbf,_0x468c28);}[_0x100d76(0x180)](){const _0x35c30e=_0x100d76;return this[_0x35c30e(0x186)][_0x35c30e(0x175)](e['MCPConnectionController'])[_0x35c30e(0x16d)]();}[_0x100d76(0x170)](){const _0x3e7886=_0x100d76;this['_injector'][_0x3e7886(0x175)](e[_0x3e7886(0x190)])[_0x3e7886(0x184)]();}[_0x100d76(0x179)](){const _0x431741=_0x100d76;this[_0x431741(0x186)]['get'](e[_0x431741(0x190)])[_0x431741(0x189)]();}}i[_0x100d76(0x17f)][_0x100d76(0x18b)](s);