@univerjs-pro/mcp 0.15.0-insiders.20260107-3441c7a → 0.15.0-insiders.20260107-3d1cfdf

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/es/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x199941=_0x4e20;(function(_0xbb6487,_0x5043a7){const _0x271d26=_0x4e20,_0x511fc8=_0xbb6487();while(!![]){try{const _0x1ba4c7=-parseInt(_0x271d26(0xe3))/0x1*(parseInt(_0x271d26(0xed))/0x2)+parseInt(_0x271d26(0xf9))/0x3*(-parseInt(_0x271d26(0xe7))/0x4)+parseInt(_0x271d26(0xf3))/0x5*(-parseInt(_0x271d26(0xf5))/0x6)+parseInt(_0x271d26(0xf8))/0x7*(-parseInt(_0x271d26(0xd6))/0x8)+-parseInt(_0x271d26(0xd4))/0x9*(parseInt(_0x271d26(0xf4))/0xa)+parseInt(_0x271d26(0xdb))/0xb+parseInt(_0x271d26(0xe0))/0xc*(parseInt(_0x271d26(0xf1))/0xd);if(_0x1ba4c7===_0x5043a7)break;else _0x511fc8['push'](_0x511fc8['shift']());}catch(_0x1782c8){_0x511fc8['push'](_0x511fc8['shift']());}}}(_0x2dee,0x42f73));import{MCPEventId as _0x34b74e,MCPEventService as _0x9ef800,IMCPToolRegistry as _0xa86b73,MCPConnectionController as _0x255e54}from'@univerjs-pro/mcp';import{FEventName as _0x37f0f5,FUniver as _0x55c864}from'@univerjs/core/facade';import{toDisposable as _0x551f70}from'@univerjs/core';class d{get['McpConnectionStatusChanged'](){const _0xf198ec=_0x4e20;return _0x34b74e[_0xf198ec(0xf2)];}get['McpToolCallReceived'](){return _0x34b74e['McpToolCallReceived'];}get[_0x199941(0xe2)](){const _0x235dc3=_0x199941;return _0x34b74e[_0x235dc3(0xe2)];}get[_0x199941(0xea)](){return _0x34b74e['McpToolCallFailed'];}}_0x37f0f5[_0x199941(0xd5)](d);function _0x4e20(_0x26a130,_0x21b1f7){_0x26a130=_0x26a130-0xd4;const _0x2dee60=_0x2dee();let _0x4e2037=_0x2dee60[_0x26a130];return _0x4e2037;}class M extends _0x55c864{[_0x199941(0xf0)](_0x504f76){const _0xcf9339=_0x199941;this[_0xcf9339(0xd9)](_0x504f76);}[_0x199941(0xd9)](_0x2c6ee7){const _0x17417e=_0x199941,_0x2ee7d2=_0x2c6ee7[_0x17417e(0xe5)](_0x9ef800);this['registerEventHandler'](this[_0x17417e(0xeb)]['McpConnectionStatusChanged'],()=>_0x551f70(_0x2ee7d2[_0x17417e(0xe6)][_0x17417e(0xec)](_0x464f01=>{const _0x2e4fd9=_0x17417e;_0x464f01[_0x2e4fd9(0xef)]===_0x34b74e[_0x2e4fd9(0xf2)]&&this['fireEvent'](this[_0x2e4fd9(0xeb)][_0x2e4fd9(0xf2)],_0x464f01[_0x2e4fd9(0xf7)]);}))),this[_0x17417e(0xd8)](this[_0x17417e(0xeb)][_0x17417e(0xdc)],()=>_0x551f70(_0x2ee7d2[_0x17417e(0xe6)]['subscribe'](_0x401d0b=>{const _0x286afd=_0x17417e;_0x401d0b['type']===_0x34b74e[_0x286afd(0xdc)]&&this[_0x286afd(0xe8)](this[_0x286afd(0xeb)][_0x286afd(0xdc)],_0x401d0b[_0x286afd(0xf7)]);}))),this[_0x17417e(0xd8)](this['Event'][_0x17417e(0xe2)],()=>_0x551f70(_0x2ee7d2['event$'][_0x17417e(0xec)](_0x521ba9=>{const _0x3974a4=_0x17417e;_0x521ba9['type']===_0x34b74e[_0x3974a4(0xe2)]&&this[_0x3974a4(0xe8)](this[_0x3974a4(0xeb)]['McpToolCallExecuted'],_0x521ba9['data']);}))),this[_0x17417e(0xd8)](this[_0x17417e(0xeb)][_0x17417e(0xea)],()=>_0x551f70(_0x2ee7d2['event$'][_0x17417e(0xec)](_0x1e2cbf=>{const _0x30739d=_0x17417e;_0x1e2cbf[_0x30739d(0xef)]===_0x34b74e['McpToolCallFailed']&&this[_0x30739d(0xe8)](this[_0x30739d(0xeb)][_0x30739d(0xea)],_0x1e2cbf[_0x30739d(0xf7)]);})));}[_0x199941(0xe1)](_0x52ebcd,_0x242326){const _0x3e9292=_0x199941;return this[_0x3e9292(0xf6)][_0x3e9292(0xe5)](_0xa86b73)[_0x3e9292(0xd7)](_0x52ebcd,_0x242326);}[_0x199941(0xdd)](){const _0x1858e1=_0x199941;return this[_0x1858e1(0xf6)][_0x1858e1(0xe5)](_0xa86b73)[_0x1858e1(0xdf)]();}[_0x199941(0xe9)](_0x37971c,_0x442b7b){const _0x40e252=_0x199941;return this[_0x40e252(0xf6)][_0x40e252(0xe5)](_0xa86b73)['executeTool'](_0x37971c,_0x442b7b);}[_0x199941(0xee)](){const _0x1375a9=_0x199941;return this[_0x1375a9(0xf6)]['get'](_0x255e54)['getConnectionStatus']();}[_0x199941(0xde)](){const _0x2d46f6=_0x199941;this['_injector'][_0x2d46f6(0xe5)](_0x255e54)[_0x2d46f6(0xda)]();}[_0x199941(0xe4)](){const _0x29d01c=_0x199941;this['_injector'][_0x29d01c(0xe5)](_0x255e54)[_0x29d01c(0xfa)]();}}_0x55c864[_0x199941(0xd5)](M);function _0x2dee(){const _0x280943=['disconnectMCP','get','event$','24QYeeZR','fireEvent','callMCPTool','McpToolCallFailed','Event','subscribe','9664ALhLup','getMCPConnectionStatus','type','_initialize','2217540XWbuUM','McpConnectionStatusChanged','30RdOZgu','1780670geGrhz','327408EkEdoa','_injector','data','77cTAlhI','85191YApzoj','disconnect','18JiuaUA','extend','281096BtEyOy','validateToolCall','registerEventHandler','_registerMCPFacadeEvents','connect','4856082WrAvEc','McpToolCallReceived','getAllMCPTools','connectMCP','getAllTools','84KqrJlW','validateMCPToolCall','McpToolCallExecuted','25aXSnFy'];_0x2dee=function(){return _0x280943;};return _0x2dee();}
1
+ function _0x1533(){const _0x391af3=['disconnect','1052EYgZVX','getMCPConnectionStatus','275KhhgzO','267134RgkYrW','subscribe','_injector','type','3222SAazIh','executeTool','getAllMCPTools','2145378RSDpdm','callMCPTool','validateToolCall','get','data','McpConnectionStatusChanged','117HTeMUl','_registerMCPFacadeEvents','24ypilxn','event$','Event','McpToolCallFailed','53598zmiifl','connectMCP','fireEvent','494570OUwdXm','connect','extend','registerEventHandler','getConnectionStatus','12104301axlyFM','McpToolCallExecuted','65936KCtZhE','329oCOjJN','McpToolCallReceived','disconnectMCP','_initialize'];_0x1533=function(){return _0x391af3;};return _0x1533();}const _0x384e25=_0x5f1a;(function(_0x269c1b,_0x362c83){const _0x2def04=_0x5f1a,_0x51a989=_0x269c1b();while(!![]){try{const _0x417049=-parseInt(_0x2def04(0xbf))/0x1+-parseInt(_0x2def04(0xc6))/0x2+-parseInt(_0x2def04(0xc3))/0x3*(-parseInt(_0x2def04(0xbc))/0x4)+parseInt(_0x2def04(0xbe))/0x5*(parseInt(_0x2def04(0xd2))/0x6)+-parseInt(_0x2def04(0xb7))/0x7*(parseInt(_0x2def04(0xb6))/0x8)+-parseInt(_0x2def04(0xcc))/0x9*(parseInt(_0x2def04(0xaf))/0xa)+-parseInt(_0x2def04(0xb4))/0xb*(-parseInt(_0x2def04(0xce))/0xc);if(_0x417049===_0x362c83)break;else _0x51a989['push'](_0x51a989['shift']());}catch(_0x12e76a){_0x51a989['push'](_0x51a989['shift']());}}}(_0x1533,0x93905));import{MCPEventId as _0x2d6811,MCPEventService as _0x295880,IMCPToolRegistry as _0xe5ef74,MCPConnectionController as _0x6829f1}from'@univerjs-pro/mcp';function _0x5f1a(_0x54be75,_0x14e07c){_0x54be75=_0x54be75-0xaf;const _0x15339c=_0x1533();let _0x5f1a49=_0x15339c[_0x54be75];return _0x5f1a49;}import{FEventName as _0x4427eb,FUniver as _0x33dac9}from'@univerjs/core/facade';import{toDisposable as _0x2d43cd}from'@univerjs/core';class d{get[_0x384e25(0xcb)](){return _0x2d6811['McpConnectionStatusChanged'];}get[_0x384e25(0xb8)](){const _0x4d2473=_0x384e25;return _0x2d6811[_0x4d2473(0xb8)];}get[_0x384e25(0xb5)](){return _0x2d6811['McpToolCallExecuted'];}get[_0x384e25(0xd1)](){const _0x2b4721=_0x384e25;return _0x2d6811[_0x2b4721(0xd1)];}}_0x4427eb[_0x384e25(0xb1)](d);class M extends _0x33dac9{[_0x384e25(0xba)](_0x53d480){const _0x305ace=_0x384e25;this[_0x305ace(0xcd)](_0x53d480);}[_0x384e25(0xcd)](_0x3372e0){const _0x5ead13=_0x384e25,_0x13e26d=_0x3372e0[_0x5ead13(0xc9)](_0x295880);this['registerEventHandler'](this[_0x5ead13(0xd0)][_0x5ead13(0xcb)],()=>_0x2d43cd(_0x13e26d[_0x5ead13(0xcf)][_0x5ead13(0xc0)](_0x358707=>{const _0x3d9fcd=_0x5ead13;_0x358707[_0x3d9fcd(0xc2)]===_0x2d6811['McpConnectionStatusChanged']&&this[_0x3d9fcd(0xd4)](this[_0x3d9fcd(0xd0)][_0x3d9fcd(0xcb)],_0x358707[_0x3d9fcd(0xca)]);}))),this[_0x5ead13(0xb2)](this[_0x5ead13(0xd0)]['McpToolCallReceived'],()=>_0x2d43cd(_0x13e26d[_0x5ead13(0xcf)]['subscribe'](_0x5425d5=>{const _0x322259=_0x5ead13;_0x5425d5['type']===_0x2d6811[_0x322259(0xb8)]&&this[_0x322259(0xd4)](this[_0x322259(0xd0)][_0x322259(0xb8)],_0x5425d5['data']);}))),this[_0x5ead13(0xb2)](this[_0x5ead13(0xd0)][_0x5ead13(0xb5)],()=>_0x2d43cd(_0x13e26d[_0x5ead13(0xcf)][_0x5ead13(0xc0)](_0x42a7ae=>{const _0x298c87=_0x5ead13;_0x42a7ae[_0x298c87(0xc2)]===_0x2d6811['McpToolCallExecuted']&&this[_0x298c87(0xd4)](this[_0x298c87(0xd0)][_0x298c87(0xb5)],_0x42a7ae[_0x298c87(0xca)]);}))),this[_0x5ead13(0xb2)](this[_0x5ead13(0xd0)]['McpToolCallFailed'],()=>_0x2d43cd(_0x13e26d[_0x5ead13(0xcf)]['subscribe'](_0x362a81=>{const _0xe2bb31=_0x5ead13;_0x362a81['type']===_0x2d6811[_0xe2bb31(0xd1)]&&this['fireEvent'](this[_0xe2bb31(0xd0)][_0xe2bb31(0xd1)],_0x362a81['data']);})));}['validateMCPToolCall'](_0x12747f,_0x3da2f5){const _0x18cd43=_0x384e25;return this['_injector'][_0x18cd43(0xc9)](_0xe5ef74)[_0x18cd43(0xc8)](_0x12747f,_0x3da2f5);}[_0x384e25(0xc5)](){const _0x5c9e54=_0x384e25;return this[_0x5c9e54(0xc1)][_0x5c9e54(0xc9)](_0xe5ef74)['getAllTools']();}[_0x384e25(0xc7)](_0x5192ed,_0x31b625){const _0x586f37=_0x384e25;return this[_0x586f37(0xc1)][_0x586f37(0xc9)](_0xe5ef74)[_0x586f37(0xc4)](_0x5192ed,_0x31b625);}[_0x384e25(0xbd)](){const _0x188deb=_0x384e25;return this[_0x188deb(0xc1)][_0x188deb(0xc9)](_0x6829f1)[_0x188deb(0xb3)]();}[_0x384e25(0xd3)](){const _0x5093a0=_0x384e25;this[_0x5093a0(0xc1)][_0x5093a0(0xc9)](_0x6829f1)[_0x5093a0(0xb0)]();}[_0x384e25(0xb9)](){const _0x2204bf=_0x384e25;this[_0x2204bf(0xc1)][_0x2204bf(0xc9)](_0x6829f1)[_0x2204bf(0xbb)]();}}_0x33dac9[_0x384e25(0xb1)](M);