@univerjs-pro/mcp 0.12.0 → 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 _0x5e82(){const _0x588367=['McpToolCallReceived','event$','38166WUbdNT','executeTool','33HQQeuE','connect','Event','disconnect','UniverCore','getAllTools','_initialize','object','McpToolCallFailed','type','IMCPToolRegistry','MCPEventId','toDisposable','McpToolCallExecuted','7440lpLDYW','14499lodTRS','getMCPConnectionStatus','data','_injector','1506083fpMZZA','2649468HrPleG','subscribe','6zVYlso','MCPEventService','connectMCP','McpConnectionStatusChanged','registerEventHandler','@univerjs/core/facade','function','FEventName','FUniver','_registerMCPFacadeEvents','@univerjs-pro/mcp','6524tuBqHZ','extend','120ilBfIP','get','amd','695912nRQfXE','4370BNLEvG','fireEvent','getConnectionStatus','disconnectMCP','MCPConnectionController','38594UIRNUy'];_0x5e82=function(){return _0x588367;};return _0x5e82();}function _0x5dad(_0x591f1a,_0x2b5487){const _0x5e8243=_0x5e82();return _0x5dad=function(_0x5dad60,_0xfd06d1){_0x5dad60=_0x5dad60-0xf2;let _0x35abe3=_0x5e8243[_0x5dad60];return _0x35abe3;},_0x5dad(_0x591f1a,_0x2b5487);}(function(_0x4dce37,_0x27f534){const _0x1da5ae=_0x5dad,_0x15079c=_0x4dce37();while(!![]){try{const _0x103561=parseInt(_0x1da5ae(0x11a))/0x1+parseInt(_0x1da5ae(0x102))/0x2*(-parseInt(_0x1da5ae(0x11d))/0x3)+-parseInt(_0x1da5ae(0xfc))/0x4+parseInt(_0x1da5ae(0xf9))/0x5*(parseInt(_0x1da5ae(0x105))/0x6)+-parseInt(_0x1da5ae(0xf7))/0x7*(-parseInt(_0x1da5ae(0x115))/0x8)+parseInt(_0x1da5ae(0x116))/0x9*(-parseInt(_0x1da5ae(0xfd))/0xa)+parseInt(_0x1da5ae(0x107))/0xb*(-parseInt(_0x1da5ae(0x11b))/0xc);if(_0x103561===_0x27f534)break;else _0x15079c['push'](_0x15079c['shift']());}catch(_0x3e9aa1){_0x15079c['push'](_0x15079c['shift']());}}}(_0x5e82,0xe7181),function(_0x4770e2,_0x112130){const _0x188a14=_0x5dad;typeof exports==_0x188a14(0x10e)&&typeof module<'u'?_0x112130(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x188a14(0xf2)&&define[_0x188a14(0xfb)]?define([_0x188a14(0xf6),_0x188a14(0x122),'@univerjs/core'],_0x112130):(_0x4770e2=typeof globalThis<'u'?globalThis:_0x4770e2||self,_0x112130(_0x4770e2['UniverProMcp'],_0x4770e2['UniverCoreFacade'],_0x4770e2[_0x188a14(0x10b)]));}(this,function(_0x16c739,_0x21b17a,_0x180ed9){'use strict';const _0x28ebe3=_0x5dad;class _0x53f3f2{get[_0x28ebe3(0x120)](){const _0x4796b5=_0x28ebe3;return _0x16c739[_0x4796b5(0x112)][_0x4796b5(0x120)];}get[_0x28ebe3(0x103)](){const _0x11f1e4=_0x28ebe3;return _0x16c739['MCPEventId'][_0x11f1e4(0x103)];}get[_0x28ebe3(0x114)](){const _0x2882cc=_0x28ebe3;return _0x16c739[_0x2882cc(0x112)][_0x2882cc(0x114)];}get['McpToolCallFailed'](){const _0x956c93=_0x28ebe3;return _0x16c739[_0x956c93(0x112)][_0x956c93(0x10f)];}}_0x21b17a[_0x28ebe3(0xf3)][_0x28ebe3(0xf8)](_0x53f3f2);class _0x4d3c79 extends _0x21b17a[_0x28ebe3(0xf4)]{[_0x28ebe3(0x10d)](_0x3f347d){const _0x211a40=_0x28ebe3;this[_0x211a40(0xf5)](_0x3f347d);}[_0x28ebe3(0xf5)](_0x16f1e9){const _0x4d8140=_0x28ebe3,_0x554a40=_0x16f1e9[_0x4d8140(0xfa)](_0x16c739[_0x4d8140(0x11e)]);this['registerEventHandler'](this[_0x4d8140(0x109)][_0x4d8140(0x120)],()=>_0x180ed9['toDisposable'](_0x554a40[_0x4d8140(0x104)]['subscribe'](_0x482b44=>{const _0x3bf878=_0x4d8140;_0x482b44['type']===_0x16c739['MCPEventId'][_0x3bf878(0x120)]&&this[_0x3bf878(0xfe)](this['Event'][_0x3bf878(0x120)],_0x482b44[_0x3bf878(0x118)]);}))),this[_0x4d8140(0x121)](this[_0x4d8140(0x109)][_0x4d8140(0x103)],()=>_0x180ed9[_0x4d8140(0x113)](_0x554a40[_0x4d8140(0x104)]['subscribe'](_0x543d73=>{const _0x1728fc=_0x4d8140;_0x543d73[_0x1728fc(0x110)]===_0x16c739[_0x1728fc(0x112)]['McpToolCallReceived']&&this[_0x1728fc(0xfe)](this[_0x1728fc(0x109)][_0x1728fc(0x103)],_0x543d73[_0x1728fc(0x118)]);}))),this[_0x4d8140(0x121)](this['Event'][_0x4d8140(0x114)],()=>_0x180ed9[_0x4d8140(0x113)](_0x554a40['event$'][_0x4d8140(0x11c)](_0xe41f08=>{const _0x27c9fc=_0x4d8140;_0xe41f08[_0x27c9fc(0x110)]===_0x16c739[_0x27c9fc(0x112)]['McpToolCallExecuted']&&this[_0x27c9fc(0xfe)](this['Event'][_0x27c9fc(0x114)],_0xe41f08[_0x27c9fc(0x118)]);}))),this[_0x4d8140(0x121)](this[_0x4d8140(0x109)][_0x4d8140(0x10f)],()=>_0x180ed9[_0x4d8140(0x113)](_0x554a40[_0x4d8140(0x104)]['subscribe'](_0x257143=>{const _0x41e9e3=_0x4d8140;_0x257143[_0x41e9e3(0x110)]===_0x16c739[_0x41e9e3(0x112)][_0x41e9e3(0x10f)]&&this['fireEvent'](this[_0x41e9e3(0x109)][_0x41e9e3(0x10f)],_0x257143['data']);})));}['validateMCPToolCall'](_0x3e2144,_0xf9ac7b){const _0xf6f402=_0x28ebe3;return this[_0xf6f402(0x119)][_0xf6f402(0xfa)](_0x16c739[_0xf6f402(0x111)])['validateToolCall'](_0x3e2144,_0xf9ac7b);}['getAllMCPTools'](){const _0x4228d8=_0x28ebe3;return this[_0x4228d8(0x119)][_0x4228d8(0xfa)](_0x16c739[_0x4228d8(0x111)])[_0x4228d8(0x10c)]();}['callMCPTool'](_0xc58080,_0x3a46b5){const _0x2b7ae7=_0x28ebe3;return this['_injector'][_0x2b7ae7(0xfa)](_0x16c739[_0x2b7ae7(0x111)])[_0x2b7ae7(0x106)](_0xc58080,_0x3a46b5);}[_0x28ebe3(0x117)](){const _0x54bd3c=_0x28ebe3;return this[_0x54bd3c(0x119)][_0x54bd3c(0xfa)](_0x16c739[_0x54bd3c(0x101)])[_0x54bd3c(0xff)]();}[_0x28ebe3(0x11f)](){const _0x2c1fb9=_0x28ebe3;this[_0x2c1fb9(0x119)][_0x2c1fb9(0xfa)](_0x16c739['MCPConnectionController'])[_0x2c1fb9(0x108)]();}[_0x28ebe3(0x100)](){const _0x1057f1=_0x28ebe3;this[_0x1057f1(0x119)][_0x1057f1(0xfa)](_0x16c739[_0x1057f1(0x101)])[_0x1057f1(0x10a)]();}}_0x21b17a[_0x28ebe3(0xf4)]['extend'](_0x4d3c79);}));
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();}