@univerjs-pro/mcp 0.12.1-nightly.202511221011 → 0.12.2

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(_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();}
1
+ function _0x2179(_0xc2f658,_0x168e49){const _0x578501=_0x5785();return _0x2179=function(_0x21793b,_0x54a800){_0x21793b=_0x21793b-0x182;let _0x4b67d9=_0x578501[_0x21793b];return _0x4b67d9;},_0x2179(_0xc2f658,_0x168e49);}function _0x5785(){const _0x25e68b=['_registerMCPFacadeEvents','16zVJNsT','IMCPToolRegistry','event$','McpToolCallExecuted','5038080uLBYOd','connectMCP','getConnectionStatus','object','3916110huGzWH','MCPEventService','function','validateMCPToolCall','_initialize','UniverCoreFacade','1090892RerQjT','McpToolCallFailed','MCPConnectionController','type','amd','connect','586825UwMbYf','@univerjs/core/facade','fireEvent','disconnect','get','UniverProMcp','data','Event','_injector','6522MIfNOY','extend','McpToolCallReceived','FUniver','disconnectMCP','2430395GDmxnN','toDisposable','executeTool','3228071ARXahW','McpConnectionStatusChanged','registerEventHandler','@univerjs-pro/mcp','subscribe','getAllMCPTools','MCPEventId'];_0x5785=function(){return _0x25e68b;};return _0x5785();}(function(_0x2f9a15,_0x3e2e39){const _0x772411=_0x2179,_0x46a730=_0x2f9a15();while(!![]){try{const _0x35620c=parseInt(_0x772411(0x1a5))/0x1+parseInt(_0x772411(0x191))/0x2*(parseInt(_0x772411(0x1ae))/0x3)+-parseInt(_0x772411(0x19f))/0x4+parseInt(_0x772411(0x186))/0x5+parseInt(_0x772411(0x199))/0x6+-parseInt(_0x772411(0x189))/0x7+-parseInt(_0x772411(0x195))/0x8;if(_0x35620c===_0x3e2e39)break;else _0x46a730['push'](_0x46a730['shift']());}catch(_0x217abe){_0x46a730['push'](_0x46a730['shift']());}}}(_0x5785,0x5c9d1),function(_0x4bb818,_0x5c7902){const _0x32cade=_0x2179;typeof exports==_0x32cade(0x198)&&typeof module<'u'?_0x5c7902(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x32cade(0x19b)&&define[_0x32cade(0x1a3)]?define([_0x32cade(0x18c),_0x32cade(0x1a6),'@univerjs/core'],_0x5c7902):(_0x4bb818=typeof globalThis<'u'?globalThis:_0x4bb818||self,_0x5c7902(_0x4bb818[_0x32cade(0x1aa)],_0x4bb818[_0x32cade(0x19e)],_0x4bb818['UniverCore']));}(this,function(_0x394485,_0xe140da,_0x81c1d2){'use strict';const _0x8a84fc=_0x2179;class _0x190341{get[_0x8a84fc(0x18a)](){const _0x4635bd=_0x8a84fc;return _0x394485[_0x4635bd(0x18f)][_0x4635bd(0x18a)];}get[_0x8a84fc(0x183)](){const _0x19b7c5=_0x8a84fc;return _0x394485['MCPEventId'][_0x19b7c5(0x183)];}get[_0x8a84fc(0x194)](){return _0x394485['MCPEventId']['McpToolCallExecuted'];}get[_0x8a84fc(0x1a0)](){const _0x3624bc=_0x8a84fc;return _0x394485[_0x3624bc(0x18f)]['McpToolCallFailed'];}}_0xe140da['FEventName']['extend'](_0x190341);class _0xb900ac extends _0xe140da[_0x8a84fc(0x184)]{[_0x8a84fc(0x19d)](_0x3482ac){const _0xa92f78=_0x8a84fc;this[_0xa92f78(0x190)](_0x3482ac);}[_0x8a84fc(0x190)](_0x491d91){const _0x1bb4ef=_0x8a84fc,_0x43f1b5=_0x491d91['get'](_0x394485[_0x1bb4ef(0x19a)]);this[_0x1bb4ef(0x18b)](this[_0x1bb4ef(0x1ac)][_0x1bb4ef(0x18a)],()=>_0x81c1d2[_0x1bb4ef(0x187)](_0x43f1b5['event$'][_0x1bb4ef(0x18d)](_0x263958=>{const _0xd7db2a=_0x1bb4ef;_0x263958['type']===_0x394485[_0xd7db2a(0x18f)][_0xd7db2a(0x18a)]&&this[_0xd7db2a(0x1a7)](this['Event']['McpConnectionStatusChanged'],_0x263958[_0xd7db2a(0x1ab)]);}))),this[_0x1bb4ef(0x18b)](this[_0x1bb4ef(0x1ac)]['McpToolCallReceived'],()=>_0x81c1d2['toDisposable'](_0x43f1b5[_0x1bb4ef(0x193)][_0x1bb4ef(0x18d)](_0x58a1f3=>{const _0x311a1c=_0x1bb4ef;_0x58a1f3['type']===_0x394485[_0x311a1c(0x18f)]['McpToolCallReceived']&&this[_0x311a1c(0x1a7)](this[_0x311a1c(0x1ac)][_0x311a1c(0x183)],_0x58a1f3[_0x311a1c(0x1ab)]);}))),this[_0x1bb4ef(0x18b)](this[_0x1bb4ef(0x1ac)][_0x1bb4ef(0x194)],()=>_0x81c1d2['toDisposable'](_0x43f1b5[_0x1bb4ef(0x193)]['subscribe'](_0x3b0893=>{const _0x11abb0=_0x1bb4ef;_0x3b0893[_0x11abb0(0x1a2)]===_0x394485[_0x11abb0(0x18f)][_0x11abb0(0x194)]&&this['fireEvent'](this[_0x11abb0(0x1ac)]['McpToolCallExecuted'],_0x3b0893['data']);}))),this[_0x1bb4ef(0x18b)](this['Event'][_0x1bb4ef(0x1a0)],()=>_0x81c1d2[_0x1bb4ef(0x187)](_0x43f1b5[_0x1bb4ef(0x193)][_0x1bb4ef(0x18d)](_0x515bf1=>{const _0x274b6c=_0x1bb4ef;_0x515bf1[_0x274b6c(0x1a2)]===_0x394485['MCPEventId']['McpToolCallFailed']&&this[_0x274b6c(0x1a7)](this[_0x274b6c(0x1ac)]['McpToolCallFailed'],_0x515bf1[_0x274b6c(0x1ab)]);})));}[_0x8a84fc(0x19c)](_0x57fb79,_0x39458c){const _0x2797f2=_0x8a84fc;return this['_injector'][_0x2797f2(0x1a9)](_0x394485[_0x2797f2(0x192)])['validateToolCall'](_0x57fb79,_0x39458c);}[_0x8a84fc(0x18e)](){const _0x324354=_0x8a84fc;return this['_injector'][_0x324354(0x1a9)](_0x394485[_0x324354(0x192)])['getAllTools']();}['callMCPTool'](_0x1b9dd8,_0x44882c){const _0x10f911=_0x8a84fc;return this[_0x10f911(0x1ad)]['get'](_0x394485[_0x10f911(0x192)])[_0x10f911(0x188)](_0x1b9dd8,_0x44882c);}['getMCPConnectionStatus'](){const _0x46eda1=_0x8a84fc;return this[_0x46eda1(0x1ad)][_0x46eda1(0x1a9)](_0x394485[_0x46eda1(0x1a1)])[_0x46eda1(0x197)]();}[_0x8a84fc(0x196)](){const _0x26254e=_0x8a84fc;this[_0x26254e(0x1ad)]['get'](_0x394485['MCPConnectionController'])[_0x26254e(0x1a4)]();}[_0x8a84fc(0x185)](){const _0x4ff802=_0x8a84fc;this[_0x4ff802(0x1ad)][_0x4ff802(0x1a9)](_0x394485['MCPConnectionController'])[_0x4ff802(0x1a8)]();}}_0xe140da[_0x8a84fc(0x184)][_0x8a84fc(0x182)](_0xb900ac);}));