@univerjs-pro/mcp 0.12.1-nightly.202511221011 → 0.12.2-experimental.20251129-0fa20cd

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 _0x5547(_0x2e8319,_0xa9789f){const _0xad2f89=_0xad2f();return _0x5547=function(_0x5547f0,_0x3428b4){_0x5547f0=_0x5547f0-0x136;let _0x49f88a=_0xad2f89[_0x5547f0];return _0x49f88a;},_0x5547(_0x2e8319,_0xa9789f);}function _0xad2f(){const _0x53a8b9=['event$','UniverCore','getConnectionStatus','extend','registerEventHandler','10xppDqR','Event','FEventName','McpToolCallReceived','disconnect','MCPConnectionController','subscribe','1320525wbanHc','executeTool','getMCPConnectionStatus','data','McpConnectionStatusChanged','validateMCPToolCall','UniverCoreFacade','FUniver','connectMCP','4278216wGnAaK','_initialize','10331ApbOaC','10543764CpGqHm','amd','get','type','toDisposable','8DOMdsW','_injector','1217288deylXn','IMCPToolRegistry','validateToolCall','MCPEventId','fireEvent','3546781NMYkJL','MCPEventService','_registerMCPFacadeEvents','McpToolCallFailed','McpToolCallExecuted','function','@univerjs/core/facade','10SpWDAg','object','2lghtFG','42504ompNfV'];_0xad2f=function(){return _0x53a8b9;};return _0xad2f();}(function(_0x355df3,_0x5149bf){const _0x52c665=_0x5547,_0x1264bb=_0x355df3();while(!![]){try{const _0x232c5c=parseInt(_0x52c665(0x138))/0x1*(parseInt(_0x52c665(0x14e))/0x2)+parseInt(_0x52c665(0x14f))/0x3+parseInt(_0x52c665(0x140))/0x4*(-parseInt(_0x52c665(0x155))/0x5)+parseInt(_0x52c665(0x136))/0x6+parseInt(_0x52c665(0x145))/0x7*(-parseInt(_0x52c665(0x13e))/0x8)+-parseInt(_0x52c665(0x15c))/0x9*(parseInt(_0x52c665(0x14c))/0xa)+parseInt(_0x52c665(0x139))/0xb;if(_0x232c5c===_0x5149bf)break;else _0x1264bb['push'](_0x1264bb['shift']());}catch(_0x5f3a01){_0x1264bb['push'](_0x1264bb['shift']());}}}(_0xad2f,0x69f57),function(_0x504f08,_0x56454e){const _0x391bb1=_0x5547;typeof exports==_0x391bb1(0x14d)&&typeof module<'u'?_0x56454e(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x391bb1(0x14a)&&define[_0x391bb1(0x13a)]?define(['@univerjs-pro/mcp',_0x391bb1(0x14b),'@univerjs/core'],_0x56454e):(_0x504f08=typeof globalThis<'u'?globalThis:_0x504f08||self,_0x56454e(_0x504f08['UniverProMcp'],_0x504f08[_0x391bb1(0x162)],_0x504f08[_0x391bb1(0x151)]));}(this,function(_0x1bc4b9,_0x21ee62,_0x16c653){'use strict';const _0x5e0e90=_0x5547;class _0x3a4b72{get[_0x5e0e90(0x160)](){const _0x48dafe=_0x5e0e90;return _0x1bc4b9['MCPEventId'][_0x48dafe(0x160)];}get[_0x5e0e90(0x158)](){const _0x774b2c=_0x5e0e90;return _0x1bc4b9[_0x774b2c(0x143)][_0x774b2c(0x158)];}get[_0x5e0e90(0x149)](){const _0x31ef09=_0x5e0e90;return _0x1bc4b9[_0x31ef09(0x143)][_0x31ef09(0x149)];}get[_0x5e0e90(0x148)](){const _0x4a2b5=_0x5e0e90;return _0x1bc4b9[_0x4a2b5(0x143)][_0x4a2b5(0x148)];}}_0x21ee62[_0x5e0e90(0x157)][_0x5e0e90(0x153)](_0x3a4b72);class _0x292959 extends _0x21ee62[_0x5e0e90(0x163)]{[_0x5e0e90(0x137)](_0x1a2fd2){const _0x288244=_0x5e0e90;this[_0x288244(0x147)](_0x1a2fd2);}['_registerMCPFacadeEvents'](_0x27d004){const _0x318590=_0x5e0e90,_0x16f04c=_0x27d004[_0x318590(0x13b)](_0x1bc4b9[_0x318590(0x146)]);this[_0x318590(0x154)](this[_0x318590(0x156)][_0x318590(0x160)],()=>_0x16c653[_0x318590(0x13d)](_0x16f04c[_0x318590(0x150)][_0x318590(0x15b)](_0x3760c2=>{const _0x5730d2=_0x318590;_0x3760c2[_0x5730d2(0x13c)]===_0x1bc4b9[_0x5730d2(0x143)][_0x5730d2(0x160)]&&this['fireEvent'](this['Event'][_0x5730d2(0x160)],_0x3760c2[_0x5730d2(0x15f)]);}))),this['registerEventHandler'](this[_0x318590(0x156)][_0x318590(0x158)],()=>_0x16c653['toDisposable'](_0x16f04c['event$'][_0x318590(0x15b)](_0x67ecf=>{const _0x539b03=_0x318590;_0x67ecf[_0x539b03(0x13c)]===_0x1bc4b9[_0x539b03(0x143)]['McpToolCallReceived']&&this[_0x539b03(0x144)](this[_0x539b03(0x156)][_0x539b03(0x158)],_0x67ecf[_0x539b03(0x15f)]);}))),this[_0x318590(0x154)](this[_0x318590(0x156)][_0x318590(0x149)],()=>_0x16c653[_0x318590(0x13d)](_0x16f04c[_0x318590(0x150)][_0x318590(0x15b)](_0x35f3ce=>{const _0x4eb623=_0x318590;_0x35f3ce[_0x4eb623(0x13c)]===_0x1bc4b9[_0x4eb623(0x143)]['McpToolCallExecuted']&&this['fireEvent'](this[_0x4eb623(0x156)][_0x4eb623(0x149)],_0x35f3ce['data']);}))),this[_0x318590(0x154)](this[_0x318590(0x156)][_0x318590(0x148)],()=>_0x16c653[_0x318590(0x13d)](_0x16f04c['event$']['subscribe'](_0x2d4f16=>{const _0x4a9d4d=_0x318590;_0x2d4f16[_0x4a9d4d(0x13c)]===_0x1bc4b9['MCPEventId'][_0x4a9d4d(0x148)]&&this[_0x4a9d4d(0x144)](this[_0x4a9d4d(0x156)][_0x4a9d4d(0x148)],_0x2d4f16[_0x4a9d4d(0x15f)]);})));}[_0x5e0e90(0x161)](_0x332035,_0x2460ba){const _0x46cc1d=_0x5e0e90;return this[_0x46cc1d(0x13f)]['get'](_0x1bc4b9[_0x46cc1d(0x141)])[_0x46cc1d(0x142)](_0x332035,_0x2460ba);}['getAllMCPTools'](){const _0x59c12c=_0x5e0e90;return this[_0x59c12c(0x13f)][_0x59c12c(0x13b)](_0x1bc4b9[_0x59c12c(0x141)])['getAllTools']();}['callMCPTool'](_0x16a128,_0xd185f3){const _0x53f517=_0x5e0e90;return this[_0x53f517(0x13f)]['get'](_0x1bc4b9[_0x53f517(0x141)])[_0x53f517(0x15d)](_0x16a128,_0xd185f3);}[_0x5e0e90(0x15e)](){const _0x3be4b8=_0x5e0e90;return this['_injector']['get'](_0x1bc4b9[_0x3be4b8(0x15a)])[_0x3be4b8(0x152)]();}[_0x5e0e90(0x164)](){const _0x21b340=_0x5e0e90;this[_0x21b340(0x13f)]['get'](_0x1bc4b9[_0x21b340(0x15a)])['connect']();}['disconnectMCP'](){const _0x484dc5=_0x5e0e90;this['_injector'][_0x484dc5(0x13b)](_0x1bc4b9[_0x484dc5(0x15a)])[_0x484dc5(0x159)]();}}_0x21ee62[_0x5e0e90(0x163)][_0x5e0e90(0x153)](_0x292959);}));