@univerjs-pro/mcp 0.15.0-insiders.20260106-79b11f9 → 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 _0x4fdb95=_0x5c10;(function(_0x1dfcd1,_0x2250fc){const _0x3f3a6f=_0x5c10,_0x288135=_0x1dfcd1();while(!![]){try{const _0xea03a1=parseInt(_0x3f3a6f(0x10b))/0x1*(-parseInt(_0x3f3a6f(0xf0))/0x2)+parseInt(_0x3f3a6f(0x107))/0x3+-parseInt(_0x3f3a6f(0x104))/0x4+parseInt(_0x3f3a6f(0xef))/0x5*(-parseInt(_0x3f3a6f(0xf1))/0x6)+-parseInt(_0x3f3a6f(0xfc))/0x7*(-parseInt(_0x3f3a6f(0xfd))/0x8)+-parseInt(_0x3f3a6f(0xfe))/0x9*(-parseInt(_0x3f3a6f(0x105))/0xa)+parseInt(_0x3f3a6f(0x10a))/0xb;if(_0xea03a1===_0x2250fc)break;else _0x288135['push'](_0x288135['shift']());}catch(_0xff8936){_0x288135['push'](_0x288135['shift']());}}}(_0x5b20,0x48bc3));import{MCPEventId as _0x560e5b,MCPEventService as _0x221519,IMCPToolRegistry as _0x35c3a7,MCPConnectionController as _0x3925ec}from'@univerjs-pro/mcp';import{FEventName as _0x3419d9,FUniver as _0x449221}from'@univerjs/core/facade';import{toDisposable as _0x60c165}from'@univerjs/core';class d{get['McpConnectionStatusChanged'](){return _0x560e5b['McpConnectionStatusChanged'];}get[_0x4fdb95(0xf9)](){const _0x2f5f7f=_0x4fdb95;return _0x560e5b[_0x2f5f7f(0xf9)];}get[_0x4fdb95(0xf5)](){const _0x510f68=_0x4fdb95;return _0x560e5b[_0x510f68(0xf5)];}get[_0x4fdb95(0x109)](){return _0x560e5b['McpToolCallFailed'];}}_0x3419d9[_0x4fdb95(0x100)](d);class M extends _0x449221{[_0x4fdb95(0xf7)](_0x51ce29){this['_registerMCPFacadeEvents'](_0x51ce29);}['_registerMCPFacadeEvents'](_0x32818c){const _0x14dd5f=_0x4fdb95,_0x3ff3b3=_0x32818c[_0x14dd5f(0xfa)](_0x221519);this[_0x14dd5f(0xf2)](this[_0x14dd5f(0x101)][_0x14dd5f(0xed)],()=>_0x60c165(_0x3ff3b3[_0x14dd5f(0xfb)][_0x14dd5f(0xf6)](_0x43d30f=>{const _0x28cb73=_0x14dd5f;_0x43d30f[_0x28cb73(0xf8)]===_0x560e5b[_0x28cb73(0xed)]&&this[_0x28cb73(0x103)](this[_0x28cb73(0x101)][_0x28cb73(0xed)],_0x43d30f['data']);}))),this[_0x14dd5f(0xf2)](this[_0x14dd5f(0x101)][_0x14dd5f(0xf9)],()=>_0x60c165(_0x3ff3b3[_0x14dd5f(0xfb)][_0x14dd5f(0xf6)](_0x4183d2=>{const _0x5cd972=_0x14dd5f;_0x4183d2[_0x5cd972(0xf8)]===_0x560e5b[_0x5cd972(0xf9)]&&this[_0x5cd972(0x103)](this[_0x5cd972(0x101)][_0x5cd972(0xf9)],_0x4183d2[_0x5cd972(0xf3)]);}))),this[_0x14dd5f(0xf2)](this[_0x14dd5f(0x101)]['McpToolCallExecuted'],()=>_0x60c165(_0x3ff3b3[_0x14dd5f(0xfb)][_0x14dd5f(0xf6)](_0x4fe346=>{const _0x1d5cfe=_0x14dd5f;_0x4fe346[_0x1d5cfe(0xf8)]===_0x560e5b[_0x1d5cfe(0xf5)]&&this[_0x1d5cfe(0x103)](this[_0x1d5cfe(0x101)][_0x1d5cfe(0xf5)],_0x4fe346[_0x1d5cfe(0xf3)]);}))),this[_0x14dd5f(0xf2)](this[_0x14dd5f(0x101)][_0x14dd5f(0x109)],()=>_0x60c165(_0x3ff3b3[_0x14dd5f(0xfb)][_0x14dd5f(0xf6)](_0x5d739a=>{const _0x32e25e=_0x14dd5f;_0x5d739a['type']===_0x560e5b[_0x32e25e(0x109)]&&this[_0x32e25e(0x103)](this[_0x32e25e(0x101)]['McpToolCallFailed'],_0x5d739a[_0x32e25e(0xf3)]);})));}['validateMCPToolCall'](_0x47554d,_0x5b6cde){const _0x1f751c=_0x4fdb95;return this[_0x1f751c(0xf4)]['get'](_0x35c3a7)[_0x1f751c(0x106)](_0x47554d,_0x5b6cde);}[_0x4fdb95(0xec)](){const _0x10c890=_0x4fdb95;return this[_0x10c890(0xf4)]['get'](_0x35c3a7)['getAllTools']();}['callMCPTool'](_0x2d4bd4,_0x3ab9c8){const _0x3b44e0=_0x4fdb95;return this[_0x3b44e0(0xf4)][_0x3b44e0(0xfa)](_0x35c3a7)['executeTool'](_0x2d4bd4,_0x3ab9c8);}[_0x4fdb95(0xee)](){const _0x14fb3d=_0x4fdb95;return this[_0x14fb3d(0xf4)]['get'](_0x3925ec)['getConnectionStatus']();}[_0x4fdb95(0xff)](){const _0x656376=_0x4fdb95;this[_0x656376(0xf4)]['get'](_0x3925ec)['connect']();}[_0x4fdb95(0x102)](){const _0x1793fa=_0x4fdb95;this[_0x1793fa(0xf4)]['get'](_0x3925ec)[_0x1793fa(0x108)]();}}_0x449221[_0x4fdb95(0x100)](M);function _0x5c10(_0x274293,_0x244ca6){_0x274293=_0x274293-0xec;const _0x5b20a4=_0x5b20();let _0x5c10d9=_0x5b20a4[_0x274293];return _0x5c10d9;}function _0x5b20(){const _0x347767=['connectMCP','extend','Event','disconnectMCP','fireEvent','862008ajsIoE','18230mQervm','validateToolCall','16518QDUkVz','disconnect','McpToolCallFailed','6342138VFHZRR','3KmgXxd','getAllMCPTools','McpConnectionStatusChanged','getMCPConnectionStatus','95VrvuRl','174096uypVpz','158034Jdivry','registerEventHandler','data','_injector','McpToolCallExecuted','subscribe','_initialize','type','McpToolCallReceived','get','event$','1001xKUpRJ','11128lBWBbQ','2439EYGCYh'];_0x5b20=function(){return _0x347767;};return _0x5b20();}
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);