@univerjs-pro/mcp 0.12.0-nightly.202511220628 → 0.12.1-nightly.202511221011

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/umd/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x4159(_0x10cc4b,_0x5e9fc2){const _0x1feef7=_0x1fee();return _0x4159=function(_0x4159c9,_0xacf0f){_0x4159c9=_0x4159c9-0x10b;let _0x4863ae=_0x1feef7[_0x4159c9];return _0x4863ae;},_0x4159(_0x10cc4b,_0x5e9fc2);}(function(_0x3ddfdb,_0x243ffe){const _0x3beea2=_0x4159,_0x33cbbf=_0x3ddfdb();while(!![]){try{const _0x4e4de7=parseInt(_0x3beea2(0x117))/0x1*(parseInt(_0x3beea2(0x134))/0x2)+parseInt(_0x3beea2(0x122))/0x3*(-parseInt(_0x3beea2(0x10d))/0x4)+parseInt(_0x3beea2(0x138))/0x5*(parseInt(_0x3beea2(0x118))/0x6)+-parseInt(_0x3beea2(0x130))/0x7+parseInt(_0x3beea2(0x12e))/0x8*(-parseInt(_0x3beea2(0x121))/0x9)+parseInt(_0x3beea2(0x110))/0xa*(parseInt(_0x3beea2(0x10c))/0xb)+parseInt(_0x3beea2(0x13c))/0xc;if(_0x4e4de7===_0x243ffe)break;else _0x33cbbf['push'](_0x33cbbf['shift']());}catch(_0x3e5964){_0x33cbbf['push'](_0x33cbbf['shift']());}}}(_0x1fee,0x85463),function(_0x868e14,_0x525901){const _0x5995ef=_0x4159;typeof exports=='object'&&typeof module<'u'?_0x525901(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x5995ef(0x131)&&define[_0x5995ef(0x135)]?define(['@univerjs-pro/mcp','@univerjs/core/facade',_0x5995ef(0x112)],_0x525901):(_0x868e14=typeof globalThis<'u'?globalThis:_0x868e14||self,_0x525901(_0x868e14[_0x5995ef(0x115)],_0x868e14[_0x5995ef(0x13a)],_0x868e14[_0x5995ef(0x133)]));}(this,function(_0x52e897,_0x38e749,_0x3e95a2){'use strict';const _0x28eab7=_0x4159;class _0x539867{get['McpConnectionStatusChanged'](){const _0x17e70d=_0x4159;return _0x52e897[_0x17e70d(0x12a)][_0x17e70d(0x113)];}get['McpToolCallReceived'](){const _0x7ff8d6=_0x4159;return _0x52e897[_0x7ff8d6(0x12a)][_0x7ff8d6(0x116)];}get['McpToolCallExecuted'](){const _0x53d25a=_0x4159;return _0x52e897[_0x53d25a(0x12a)]['McpToolCallExecuted'];}get['McpToolCallFailed'](){const _0x3ad32e=_0x4159;return _0x52e897['MCPEventId'][_0x3ad32e(0x11e)];}}_0x38e749[_0x28eab7(0x11c)]['extend'](_0x539867);class _0x5962ca extends _0x38e749[_0x28eab7(0x123)]{[_0x28eab7(0x11f)](_0x57ebe4){this['_registerMCPFacadeEvents'](_0x57ebe4);}['_registerMCPFacadeEvents'](_0x282673){const _0x1bb6b2=_0x28eab7,_0x29d84f=_0x282673[_0x1bb6b2(0x11d)](_0x52e897[_0x1bb6b2(0x114)]);this['registerEventHandler'](this[_0x1bb6b2(0x11b)]['McpConnectionStatusChanged'],()=>_0x3e95a2[_0x1bb6b2(0x12c)](_0x29d84f[_0x1bb6b2(0x13b)][_0x1bb6b2(0x12d)](_0x1c14fb=>{const _0xf8a597=_0x1bb6b2;_0x1c14fb['type']===_0x52e897[_0xf8a597(0x12a)]['McpConnectionStatusChanged']&&this['fireEvent'](this[_0xf8a597(0x11b)]['McpConnectionStatusChanged'],_0x1c14fb[_0xf8a597(0x111)]);}))),this['registerEventHandler'](this[_0x1bb6b2(0x11b)][_0x1bb6b2(0x116)],()=>_0x3e95a2['toDisposable'](_0x29d84f[_0x1bb6b2(0x13b)]['subscribe'](_0x5e7de4=>{const _0x4698a2=_0x1bb6b2;_0x5e7de4['type']===_0x52e897[_0x4698a2(0x12a)]['McpToolCallReceived']&&this['fireEvent'](this[_0x4698a2(0x11b)][_0x4698a2(0x116)],_0x5e7de4[_0x4698a2(0x111)]);}))),this[_0x1bb6b2(0x120)](this[_0x1bb6b2(0x11b)]['McpToolCallExecuted'],()=>_0x3e95a2[_0x1bb6b2(0x12c)](_0x29d84f['event$'][_0x1bb6b2(0x12d)](_0x515c00=>{const _0xf92d35=_0x1bb6b2;_0x515c00[_0xf92d35(0x12b)]===_0x52e897[_0xf92d35(0x12a)][_0xf92d35(0x119)]&&this[_0xf92d35(0x10e)](this['Event'][_0xf92d35(0x119)],_0x515c00[_0xf92d35(0x111)]);}))),this['registerEventHandler'](this['Event'][_0x1bb6b2(0x11e)],()=>_0x3e95a2[_0x1bb6b2(0x12c)](_0x29d84f['event$'][_0x1bb6b2(0x12d)](_0x4d1550=>{const _0x51832f=_0x1bb6b2;_0x4d1550[_0x51832f(0x12b)]===_0x52e897[_0x51832f(0x12a)][_0x51832f(0x11e)]&&this['fireEvent'](this[_0x51832f(0x11b)][_0x51832f(0x11e)],_0x4d1550[_0x51832f(0x111)]);})));}[_0x28eab7(0x11a)](_0x4b2aea,_0x5dd428){const _0x55700d=_0x28eab7;return this[_0x55700d(0x127)]['get'](_0x52e897['IMCPToolRegistry'])[_0x55700d(0x12f)](_0x4b2aea,_0x5dd428);}[_0x28eab7(0x128)](){const _0x2e9ed7=_0x28eab7;return this['_injector']['get'](_0x52e897[_0x2e9ed7(0x126)])[_0x2e9ed7(0x124)]();}[_0x28eab7(0x125)](_0x921fb7,_0x4c6f8a){const _0x3c5b0a=_0x28eab7;return this[_0x3c5b0a(0x127)][_0x3c5b0a(0x11d)](_0x52e897[_0x3c5b0a(0x126)])[_0x3c5b0a(0x132)](_0x921fb7,_0x4c6f8a);}[_0x28eab7(0x136)](){const _0x4c88e2=_0x28eab7;return this[_0x4c88e2(0x127)]['get'](_0x52e897[_0x4c88e2(0x10f)])[_0x4c88e2(0x10b)]();}['connectMCP'](){const _0x116855=_0x28eab7;this[_0x116855(0x127)][_0x116855(0x11d)](_0x52e897['MCPConnectionController'])[_0x116855(0x139)]();}[_0x28eab7(0x129)](){const _0x2d5299=_0x28eab7;this[_0x2d5299(0x127)][_0x2d5299(0x11d)](_0x52e897[_0x2d5299(0x10f)])['disconnect']();}}_0x38e749[_0x28eab7(0x123)][_0x28eab7(0x137)](_0x5962ca);}));function _0x1fee(){const _0x2d8ab5=['getAllTools','callMCPTool','IMCPToolRegistry','_injector','getAllMCPTools','disconnectMCP','MCPEventId','type','toDisposable','subscribe','4043752CYbkql','validateToolCall','5448296lIimdb','function','executeTool','UniverCore','105584qYHLvA','amd','getMCPConnectionStatus','extend','1730UOEsZW','connect','UniverCoreFacade','event$','5496888igMXVv','getConnectionStatus','180543GgHOwq','58732sAHaEN','fireEvent','MCPConnectionController','610WIyWqY','data','@univerjs/core','McpConnectionStatusChanged','MCPEventService','UniverProMcp','McpToolCallReceived','14pmQByj','5574AaeJLe','McpToolCallExecuted','validateMCPToolCall','Event','FEventName','get','McpToolCallFailed','_initialize','registerEventHandler','9YHJJqw','141guBBos','FUniver'];_0x1fee=function(){return _0x2d8ab5;};return _0x1fee();}
1
+ (function(_0x42eba9,_0x39c8c2){const _0x56e4f8=_0x34ed,_0x306da5=_0x42eba9();while(!![]){try{const _0x3e2de7=-parseInt(_0x56e4f8(0xa5))/0x1*(-parseInt(_0x56e4f8(0xb1))/0x2)+-parseInt(_0x56e4f8(0xa0))/0x3+-parseInt(_0x56e4f8(0xc8))/0x4*(parseInt(_0x56e4f8(0xc0))/0x5)+-parseInt(_0x56e4f8(0xa3))/0x6+parseInt(_0x56e4f8(0xbc))/0x7+-parseInt(_0x56e4f8(0xa1))/0x8+parseInt(_0x56e4f8(0xb8))/0x9*(parseInt(_0x56e4f8(0xad))/0xa);if(_0x3e2de7===_0x39c8c2)break;else _0x306da5['push'](_0x306da5['shift']());}catch(_0x509796){_0x306da5['push'](_0x306da5['shift']());}}}(_0x159c,0x5e71c),function(_0x3e97a4,_0x30744d){const _0x32c134=_0x34ed;typeof exports==_0x32c134(0xa6)&&typeof module<'u'?_0x30744d(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x32c134(0xc1)&&define['amd']?define([_0x32c134(0x9f),_0x32c134(0xb5),_0x32c134(0xb7)],_0x30744d):(_0x3e97a4=typeof globalThis<'u'?globalThis:_0x3e97a4||self,_0x30744d(_0x3e97a4[_0x32c134(0xb6)],_0x3e97a4[_0x32c134(0xcc)],_0x3e97a4['UniverCore']));}(this,function(_0x9ddb3b,_0x340c07,_0x3dc0de){'use strict';const _0x46acec=_0x34ed;class _0xa3d69b{get[_0x46acec(0xa2)](){return _0x9ddb3b['MCPEventId']['McpConnectionStatusChanged'];}get['McpToolCallReceived'](){const _0x3409d6=_0x46acec;return _0x9ddb3b[_0x3409d6(0xb4)]['McpToolCallReceived'];}get[_0x46acec(0xa4)](){const _0x387ab1=_0x46acec;return _0x9ddb3b['MCPEventId'][_0x387ab1(0xa4)];}get[_0x46acec(0xb9)](){const _0x5b42b7=_0x46acec;return _0x9ddb3b[_0x5b42b7(0xb4)]['McpToolCallFailed'];}}_0x340c07[_0x46acec(0xcd)][_0x46acec(0xca)](_0xa3d69b);class _0x568af5 extends _0x340c07['FUniver']{[_0x46acec(0xc3)](_0xcaae83){const _0x2a0137=_0x46acec;this[_0x2a0137(0xc6)](_0xcaae83);}[_0x46acec(0xc6)](_0x13b0ec){const _0x1fa117=_0x46acec,_0xa14f5=_0x13b0ec[_0x1fa117(0xcb)](_0x9ddb3b['MCPEventService']);this[_0x1fa117(0x9e)](this[_0x1fa117(0xb0)][_0x1fa117(0xa2)],()=>_0x3dc0de[_0x1fa117(0xbf)](_0xa14f5[_0x1fa117(0xaf)][_0x1fa117(0xb2)](_0x1e01d9=>{const _0x53ded4=_0x1fa117;_0x1e01d9[_0x53ded4(0xc5)]===_0x9ddb3b[_0x53ded4(0xb4)][_0x53ded4(0xa2)]&&this['fireEvent'](this[_0x53ded4(0xb0)][_0x53ded4(0xa2)],_0x1e01d9[_0x53ded4(0xbb)]);}))),this[_0x1fa117(0x9e)](this[_0x1fa117(0xb0)][_0x1fa117(0xa7)],()=>_0x3dc0de['toDisposable'](_0xa14f5[_0x1fa117(0xaf)][_0x1fa117(0xb2)](_0x2cc2e9=>{const _0x40eb1b=_0x1fa117;_0x2cc2e9[_0x40eb1b(0xc5)]===_0x9ddb3b[_0x40eb1b(0xb4)][_0x40eb1b(0xa7)]&&this['fireEvent'](this[_0x40eb1b(0xb0)][_0x40eb1b(0xa7)],_0x2cc2e9['data']);}))),this[_0x1fa117(0x9e)](this[_0x1fa117(0xb0)][_0x1fa117(0xa4)],()=>_0x3dc0de[_0x1fa117(0xbf)](_0xa14f5[_0x1fa117(0xaf)][_0x1fa117(0xb2)](_0x10269d=>{const _0x487f72=_0x1fa117;_0x10269d[_0x487f72(0xc5)]===_0x9ddb3b[_0x487f72(0xb4)][_0x487f72(0xa4)]&&this[_0x487f72(0xc2)](this['Event'][_0x487f72(0xa4)],_0x10269d[_0x487f72(0xbb)]);}))),this[_0x1fa117(0x9e)](this[_0x1fa117(0xb0)][_0x1fa117(0xb9)],()=>_0x3dc0de[_0x1fa117(0xbf)](_0xa14f5[_0x1fa117(0xaf)]['subscribe'](_0x337f72=>{const _0x484b57=_0x1fa117;_0x337f72['type']===_0x9ddb3b[_0x484b57(0xb4)][_0x484b57(0xb9)]&&this[_0x484b57(0xc2)](this[_0x484b57(0xb0)]['McpToolCallFailed'],_0x337f72[_0x484b57(0xbb)]);})));}[_0x46acec(0xba)](_0x53b1d8,_0x1c8467){const _0x42bbb6=_0x46acec;return this[_0x42bbb6(0xbe)][_0x42bbb6(0xcb)](_0x9ddb3b['IMCPToolRegistry'])[_0x42bbb6(0xc4)](_0x53b1d8,_0x1c8467);}[_0x46acec(0xc9)](){const _0x46eb91=_0x46acec;return this[_0x46eb91(0xbe)]['get'](_0x9ddb3b['IMCPToolRegistry'])[_0x46eb91(0xaa)]();}[_0x46acec(0xab)](_0x428913,_0x42cbe0){const _0x385d63=_0x46acec;return this[_0x385d63(0xbe)]['get'](_0x9ddb3b[_0x385d63(0xa9)])[_0x385d63(0xa8)](_0x428913,_0x42cbe0);}[_0x46acec(0xae)](){const _0x5186ad=_0x46acec;return this['_injector'][_0x5186ad(0xcb)](_0x9ddb3b['MCPConnectionController'])['getConnectionStatus']();}[_0x46acec(0xb3)](){const _0x2210b7=_0x46acec;this[_0x2210b7(0xbe)][_0x2210b7(0xcb)](_0x9ddb3b[_0x2210b7(0xac)])[_0x2210b7(0xbd)]();}[_0x46acec(0xc7)](){const _0x150baf=_0x46acec;this[_0x150baf(0xbe)][_0x150baf(0xcb)](_0x9ddb3b[_0x150baf(0xac)])['disconnect']();}}_0x340c07['FUniver'][_0x46acec(0xca)](_0x568af5);}));function _0x34ed(_0x461d65,_0x2214a6){const _0x159cd9=_0x159c();return _0x34ed=function(_0x34ed6f,_0x292c9c){_0x34ed6f=_0x34ed6f-0x9e;let _0x3b6d68=_0x159cd9[_0x34ed6f];return _0x3b6d68;},_0x34ed(_0x461d65,_0x2214a6);}function _0x159c(){const _0xf0a9ae=['MCPConnectionController','60XfMacD','getMCPConnectionStatus','event$','Event','10892vrPWrC','subscribe','connectMCP','MCPEventId','@univerjs/core/facade','UniverProMcp','@univerjs/core','862857hxvlJM','McpToolCallFailed','validateMCPToolCall','data','1883756UJqxcX','connect','_injector','toDisposable','415gSoXSm','function','fireEvent','_initialize','validateToolCall','type','_registerMCPFacadeEvents','disconnectMCP','7836HjDTDd','getAllMCPTools','extend','get','UniverCoreFacade','FEventName','registerEventHandler','@univerjs-pro/mcp','790089RCJjXa','3876528HxxIWO','McpConnectionStatusChanged','91992ADYPKL','McpToolCallExecuted','86FEmypL','object','McpToolCallReceived','executeTool','IMCPToolRegistry','getAllTools','callMCPTool'];_0x159c=function(){return _0xf0a9ae;};return _0x159c();}