@univerjs-pro/mcp 0.10.10-nightly.202510170942 → 0.10.10-nightly.202510180256

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 _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);
1
+ 'use strict';const _0x4737bc=_0x3f18;(function(_0x5e4187,_0xc80155){const _0x494a8d=_0x3f18,_0x2e005d=_0x5e4187();while(!![]){try{const _0x35124c=parseInt(_0x494a8d(0x18e))/0x1+-parseInt(_0x494a8d(0x173))/0x2+-parseInt(_0x494a8d(0x17a))/0x3+parseInt(_0x494a8d(0x178))/0x4*(parseInt(_0x494a8d(0x16f))/0x5)+parseInt(_0x494a8d(0x184))/0x6*(parseInt(_0x494a8d(0x176))/0x7)+-parseInt(_0x494a8d(0x16c))/0x8*(parseInt(_0x494a8d(0x18b))/0x9)+-parseInt(_0x494a8d(0x190))/0xa*(-parseInt(_0x494a8d(0x17f))/0xb);if(_0x35124c===_0xc80155)break;else _0x2e005d['push'](_0x2e005d['shift']());}catch(_0x25b9cf){_0x2e005d['push'](_0x2e005d['shift']());}}}(_0x3ec4,0x29ebb));const e=require('@univerjs-pro/mcp'),i=require('@univerjs/core/facade'),l=require('@univerjs/core');function _0x3ec4(){const _0x1a0798=['_initialize','426152WLDOms','getConnectionStatus','extend','7615VlzpWm','type','MCPEventService','FEventName','544192VYWCPH','McpToolCallFailed','McpToolCallReceived','864451JHBGLD','getMCPConnectionStatus','72dqptIv','validateMCPToolCall','585603bicLHo','fireEvent','data','McpConnectionStatusChanged','executeTool','1199pKUPkq','McpToolCallExecuted','getAllTools','Event','FUniver','6ZWbNIQ','MCPEventId','validateToolCall','_injector','registerEventHandler','toDisposable','connect','36JFfmcl','subscribe','disconnect','9132iFQkTe','event$','63490cQxkwV','_registerMCPFacadeEvents','get','callMCPTool','MCPConnectionController','connectMCP','disconnectMCP'];_0x3ec4=function(){return _0x1a0798;};return _0x3ec4();}class r{get[_0x4737bc(0x17d)](){const _0x4c86ff=_0x4737bc;return e['MCPEventId'][_0x4c86ff(0x17d)];}get[_0x4737bc(0x175)](){const _0x6f8774=_0x4737bc;return e[_0x6f8774(0x185)]['McpToolCallReceived'];}get['McpToolCallExecuted'](){const _0x56803b=_0x4737bc;return e[_0x56803b(0x185)][_0x56803b(0x180)];}get[_0x4737bc(0x174)](){const _0x4b693e=_0x4737bc;return e[_0x4b693e(0x185)][_0x4b693e(0x174)];}}i[_0x4737bc(0x172)][_0x4737bc(0x16e)](r);function _0x3f18(_0x52dc71,_0x3eb278){const _0x3ec45f=_0x3ec4();return _0x3f18=function(_0x3f1827,_0x5d32f4){_0x3f1827=_0x3f1827-0x16b;let _0x3b7ab0=_0x3ec45f[_0x3f1827];return _0x3b7ab0;},_0x3f18(_0x52dc71,_0x3eb278);}class s extends i[_0x4737bc(0x183)]{[_0x4737bc(0x16b)](_0x554aa0){const _0x58d436=_0x4737bc;this[_0x58d436(0x191)](_0x554aa0);}[_0x4737bc(0x191)](_0x5d745e){const _0x329b21=_0x4737bc,_0x191b6c=_0x5d745e[_0x329b21(0x192)](e[_0x329b21(0x171)]);this['registerEventHandler'](this[_0x329b21(0x182)][_0x329b21(0x17d)],()=>l[_0x329b21(0x189)](_0x191b6c[_0x329b21(0x18f)][_0x329b21(0x18c)](_0xd40668=>{const _0x15bcc2=_0x329b21;_0xd40668[_0x15bcc2(0x170)]===e['MCPEventId'][_0x15bcc2(0x17d)]&&this[_0x15bcc2(0x17b)](this[_0x15bcc2(0x182)][_0x15bcc2(0x17d)],_0xd40668[_0x15bcc2(0x17c)]);}))),this[_0x329b21(0x188)](this[_0x329b21(0x182)][_0x329b21(0x175)],()=>l[_0x329b21(0x189)](_0x191b6c[_0x329b21(0x18f)][_0x329b21(0x18c)](_0x4d992e=>{const _0x2db009=_0x329b21;_0x4d992e[_0x2db009(0x170)]===e[_0x2db009(0x185)][_0x2db009(0x175)]&&this['fireEvent'](this['Event'][_0x2db009(0x175)],_0x4d992e[_0x2db009(0x17c)]);}))),this[_0x329b21(0x188)](this[_0x329b21(0x182)]['McpToolCallExecuted'],()=>l['toDisposable'](_0x191b6c['event$'][_0x329b21(0x18c)](_0x48934d=>{const _0x598e0e=_0x329b21;_0x48934d[_0x598e0e(0x170)]===e[_0x598e0e(0x185)][_0x598e0e(0x180)]&&this[_0x598e0e(0x17b)](this[_0x598e0e(0x182)][_0x598e0e(0x180)],_0x48934d[_0x598e0e(0x17c)]);}))),this[_0x329b21(0x188)](this['Event'][_0x329b21(0x174)],()=>l['toDisposable'](_0x191b6c[_0x329b21(0x18f)][_0x329b21(0x18c)](_0x1b878d=>{const _0xde20b7=_0x329b21;_0x1b878d[_0xde20b7(0x170)]===e[_0xde20b7(0x185)][_0xde20b7(0x174)]&&this[_0xde20b7(0x17b)](this['Event'][_0xde20b7(0x174)],_0x1b878d[_0xde20b7(0x17c)]);})));}[_0x4737bc(0x179)](_0x179e56,_0x2f341c){const _0x4d0943=_0x4737bc;return this[_0x4d0943(0x187)]['get'](e['IMCPToolRegistry'])[_0x4d0943(0x186)](_0x179e56,_0x2f341c);}['getAllMCPTools'](){const _0x4811c4=_0x4737bc;return this[_0x4811c4(0x187)][_0x4811c4(0x192)](e['IMCPToolRegistry'])[_0x4811c4(0x181)]();}[_0x4737bc(0x193)](_0x567a7c,_0x357ca8){const _0xf371a8=_0x4737bc;return this[_0xf371a8(0x187)][_0xf371a8(0x192)](e['IMCPToolRegistry'])[_0xf371a8(0x17e)](_0x567a7c,_0x357ca8);}[_0x4737bc(0x177)](){const _0x9ac95a=_0x4737bc;return this[_0x9ac95a(0x187)][_0x9ac95a(0x192)](e['MCPConnectionController'])[_0x9ac95a(0x16d)]();}[_0x4737bc(0x195)](){const _0x372993=_0x4737bc;this[_0x372993(0x187)][_0x372993(0x192)](e[_0x372993(0x194)])[_0x372993(0x18a)]();}[_0x4737bc(0x196)](){const _0x14dd61=_0x4737bc;this[_0x14dd61(0x187)][_0x14dd61(0x192)](e[_0x14dd61(0x194)])[_0x14dd61(0x18d)]();}}i[_0x4737bc(0x183)][_0x4737bc(0x16e)](s);