@univerjs-pro/mcp 0.12.2-nightly.202511290905 → 0.12.3-experimental.20251204-1549a8e

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/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x58738e=_0x2d5b;(function(_0x35134a,_0x4cf5d9){const _0x488e46=_0x2d5b,_0xe73067=_0x35134a();while(!![]){try{const _0x10f0b7=parseInt(_0x488e46(0xb8))/0x1*(-parseInt(_0x488e46(0xaf))/0x2)+parseInt(_0x488e46(0xbd))/0x3*(parseInt(_0x488e46(0xc5))/0x4)+parseInt(_0x488e46(0xc9))/0x5*(parseInt(_0x488e46(0xb2))/0x6)+-parseInt(_0x488e46(0xb3))/0x7*(parseInt(_0x488e46(0xb6))/0x8)+parseInt(_0x488e46(0xb7))/0x9*(parseInt(_0x488e46(0xcb))/0xa)+-parseInt(_0x488e46(0xbc))/0xb*(parseInt(_0x488e46(0xc7))/0xc)+parseInt(_0x488e46(0xb0))/0xd*(parseInt(_0x488e46(0xad))/0xe);if(_0x10f0b7===_0x4cf5d9)break;else _0xe73067['push'](_0xe73067['shift']());}catch(_0x121a73){_0xe73067['push'](_0xe73067['shift']());}}}(_0x4dcc,0x39756));import{MCPEventId as _0x2750a0,MCPEventService as _0x14d6cd,IMCPToolRegistry as _0x1d1d16,MCPConnectionController as _0x5b7bfa}from'@univerjs-pro/mcp';import{FEventName as _0x13cc86,FUniver as _0x47eebe}from'@univerjs/core/facade';import{toDisposable as _0x3582be}from'@univerjs/core';function _0x4dcc(){const _0x3e38c6=['28VFhzqA','getAllTools','4174cxErMW','286611ZtvcTf','_registerMCPFacadeEvents','18Dopxsn','5089AcsOTM','event$','callMCPTool','2296FaqXTh','204993hrFpFx','118RlUJPg','getConnectionStatus','extend','Event','671oMmMPS','15dLeidE','McpToolCallFailed','McpToolCallExecuted','data','registerEventHandler','subscribe','executeTool','McpConnectionStatusChanged','72876zalTCQ','connectMCP','51276xTSIVr','validateToolCall','600315fDcSbG','fireEvent','200JYzCPb','McpToolCallReceived','get','type','disconnectMCP','getAllMCPTools','_injector','connect','validateMCPToolCall'];_0x4dcc=function(){return _0x3e38c6;};return _0x4dcc();}class d{get[_0x58738e(0xc4)](){const _0x3a522c=_0x58738e;return _0x2750a0[_0x3a522c(0xc4)];}get['McpToolCallReceived'](){return _0x2750a0['McpToolCallReceived'];}get[_0x58738e(0xbf)](){return _0x2750a0['McpToolCallExecuted'];}get[_0x58738e(0xbe)](){const _0x37f93b=_0x58738e;return _0x2750a0[_0x37f93b(0xbe)];}}function _0x2d5b(_0xcca4a9,_0x32148b){const _0x4dcc5e=_0x4dcc();return _0x2d5b=function(_0x2d5bba,_0x19572f){_0x2d5bba=_0x2d5bba-0xaa;let _0x3f04fd=_0x4dcc5e[_0x2d5bba];return _0x3f04fd;},_0x2d5b(_0xcca4a9,_0x32148b);}_0x13cc86[_0x58738e(0xba)](d);class M extends _0x47eebe{['_initialize'](_0x2a9f4d){const _0x345e53=_0x58738e;this[_0x345e53(0xb1)](_0x2a9f4d);}[_0x58738e(0xb1)](_0x394f1a){const _0x14ffb2=_0x58738e,_0x428a89=_0x394f1a[_0x14ffb2(0xcd)](_0x14d6cd);this[_0x14ffb2(0xc1)](this['Event'][_0x14ffb2(0xc4)],()=>_0x3582be(_0x428a89['event$']['subscribe'](_0x300f8b=>{const _0x2f1ee1=_0x14ffb2;_0x300f8b[_0x2f1ee1(0xce)]===_0x2750a0[_0x2f1ee1(0xc4)]&&this[_0x2f1ee1(0xca)](this['Event'][_0x2f1ee1(0xc4)],_0x300f8b[_0x2f1ee1(0xc0)]);}))),this[_0x14ffb2(0xc1)](this['Event'][_0x14ffb2(0xcc)],()=>_0x3582be(_0x428a89[_0x14ffb2(0xb4)][_0x14ffb2(0xc2)](_0x3fd2e1=>{const _0x5c9025=_0x14ffb2;_0x3fd2e1[_0x5c9025(0xce)]===_0x2750a0['McpToolCallReceived']&&this[_0x5c9025(0xca)](this[_0x5c9025(0xbb)][_0x5c9025(0xcc)],_0x3fd2e1[_0x5c9025(0xc0)]);}))),this[_0x14ffb2(0xc1)](this[_0x14ffb2(0xbb)]['McpToolCallExecuted'],()=>_0x3582be(_0x428a89['event$']['subscribe'](_0xeb85d7=>{const _0x3db908=_0x14ffb2;_0xeb85d7[_0x3db908(0xce)]===_0x2750a0[_0x3db908(0xbf)]&&this[_0x3db908(0xca)](this[_0x3db908(0xbb)][_0x3db908(0xbf)],_0xeb85d7[_0x3db908(0xc0)]);}))),this[_0x14ffb2(0xc1)](this[_0x14ffb2(0xbb)][_0x14ffb2(0xbe)],()=>_0x3582be(_0x428a89[_0x14ffb2(0xb4)]['subscribe'](_0x13e45d=>{const _0x54d10d=_0x14ffb2;_0x13e45d['type']===_0x2750a0['McpToolCallFailed']&&this[_0x54d10d(0xca)](this[_0x54d10d(0xbb)][_0x54d10d(0xbe)],_0x13e45d[_0x54d10d(0xc0)]);})));}[_0x58738e(0xac)](_0x5d353a,_0x11941d){const _0x4c72c8=_0x58738e;return this[_0x4c72c8(0xaa)][_0x4c72c8(0xcd)](_0x1d1d16)[_0x4c72c8(0xc8)](_0x5d353a,_0x11941d);}[_0x58738e(0xd0)](){const _0x10238d=_0x58738e;return this[_0x10238d(0xaa)][_0x10238d(0xcd)](_0x1d1d16)[_0x10238d(0xae)]();}[_0x58738e(0xb5)](_0x3f2999,_0x47a846){const _0x6365f5=_0x58738e;return this[_0x6365f5(0xaa)][_0x6365f5(0xcd)](_0x1d1d16)[_0x6365f5(0xc3)](_0x3f2999,_0x47a846);}['getMCPConnectionStatus'](){const _0xa88ae6=_0x58738e;return this[_0xa88ae6(0xaa)][_0xa88ae6(0xcd)](_0x5b7bfa)[_0xa88ae6(0xb9)]();}[_0x58738e(0xc6)](){const _0x288e20=_0x58738e;this[_0x288e20(0xaa)][_0x288e20(0xcd)](_0x5b7bfa)[_0x288e20(0xab)]();}[_0x58738e(0xcf)](){const _0x523054=_0x58738e;this[_0x523054(0xaa)]['get'](_0x5b7bfa)['disconnect']();}}_0x47eebe[_0x58738e(0xba)](M);
1
+ const _0x23fdb7=_0xbbde;(function(_0x197b9b,_0x7fd5b5){const _0x9a04ff=_0xbbde,_0x569ff5=_0x197b9b();while(!![]){try{const _0x502437=-parseInt(_0x9a04ff(0x121))/0x1+-parseInt(_0x9a04ff(0x127))/0x2*(parseInt(_0x9a04ff(0x11b))/0x3)+parseInt(_0x9a04ff(0x13d))/0x4*(-parseInt(_0x9a04ff(0x129))/0x5)+-parseInt(_0x9a04ff(0x13e))/0x6*(-parseInt(_0x9a04ff(0x126))/0x7)+parseInt(_0x9a04ff(0x12b))/0x8*(-parseInt(_0x9a04ff(0x125))/0x9)+-parseInt(_0x9a04ff(0x11d))/0xa+parseInt(_0x9a04ff(0x138))/0xb*(parseInt(_0x9a04ff(0x12f))/0xc);if(_0x502437===_0x7fd5b5)break;else _0x569ff5['push'](_0x569ff5['shift']());}catch(_0x47b98b){_0x569ff5['push'](_0x569ff5['shift']());}}}(_0x315b,0xe49ce));import{MCPEventId as _0x48ba99,MCPEventService as _0x359c4b,IMCPToolRegistry as _0x14d45a,MCPConnectionController as _0x21f0f4}from'@univerjs-pro/mcp';function _0xbbde(_0x469dc8,_0x87023e){_0x469dc8=_0x469dc8-0x119;const _0x315b61=_0x315b();let _0xbbde25=_0x315b61[_0x469dc8];return _0xbbde25;}import{FEventName as _0x550c9b,FUniver as _0x3002ac}from'@univerjs/core/facade';function _0x315b(){const _0x5bfaf7=['disconnect','44275TnQHIE','validateToolCall','callMCPTool','getAllTools','27POiJuh','12213670YMFgmC','1128588StZTjA','getConnectionStatus','5ytUNZG','registerEventHandler','4219800gKzMgI','get','_initialize','disconnectMCP','48EdgTuu','executeTool','McpToolCallExecuted','connect','_injector','getMCPConnectionStatus','extend','_registerMCPFacadeEvents','Event','8217176VxYyxJ','McpConnectionStatusChanged','getAllMCPTools','validateMCPToolCall','event$','3718460oBOnup','6aHcJna','subscribe','type','fireEvent','6NcznoM','data','1115730KoelKm','McpToolCallFailed','McpToolCallReceived'];_0x315b=function(){return _0x5bfaf7;};return _0x315b();}import{toDisposable as _0xae5d85}from'@univerjs/core';class d{get['McpConnectionStatusChanged'](){const _0x21eb05=_0xbbde;return _0x48ba99[_0x21eb05(0x139)];}get[_0x23fdb7(0x11f)](){const _0x36b1b2=_0x23fdb7;return _0x48ba99[_0x36b1b2(0x11f)];}get[_0x23fdb7(0x131)](){const _0x25e200=_0x23fdb7;return _0x48ba99[_0x25e200(0x131)];}get[_0x23fdb7(0x11e)](){const _0x5be9c0=_0x23fdb7;return _0x48ba99[_0x5be9c0(0x11e)];}}_0x550c9b[_0x23fdb7(0x135)](d);class M extends _0x3002ac{[_0x23fdb7(0x12d)](_0x3f26ef){const _0x473ead=_0x23fdb7;this[_0x473ead(0x136)](_0x3f26ef);}[_0x23fdb7(0x136)](_0x3ceeed){const _0x4cbd50=_0x23fdb7,_0x2bb8da=_0x3ceeed['get'](_0x359c4b);this[_0x4cbd50(0x12a)](this['Event']['McpConnectionStatusChanged'],()=>_0xae5d85(_0x2bb8da[_0x4cbd50(0x13c)][_0x4cbd50(0x13f)](_0x47a8ed=>{const _0x2699cc=_0x4cbd50;_0x47a8ed[_0x2699cc(0x119)]===_0x48ba99['McpConnectionStatusChanged']&&this[_0x2699cc(0x11a)](this[_0x2699cc(0x137)]['McpConnectionStatusChanged'],_0x47a8ed['data']);}))),this['registerEventHandler'](this[_0x4cbd50(0x137)][_0x4cbd50(0x11f)],()=>_0xae5d85(_0x2bb8da[_0x4cbd50(0x13c)]['subscribe'](_0x5a3afd=>{const _0x12412a=_0x4cbd50;_0x5a3afd['type']===_0x48ba99['McpToolCallReceived']&&this[_0x12412a(0x11a)](this['Event']['McpToolCallReceived'],_0x5a3afd[_0x12412a(0x11c)]);}))),this[_0x4cbd50(0x12a)](this[_0x4cbd50(0x137)][_0x4cbd50(0x131)],()=>_0xae5d85(_0x2bb8da[_0x4cbd50(0x13c)][_0x4cbd50(0x13f)](_0x342df4=>{const _0x44e7e0=_0x4cbd50;_0x342df4[_0x44e7e0(0x119)]===_0x48ba99[_0x44e7e0(0x131)]&&this[_0x44e7e0(0x11a)](this[_0x44e7e0(0x137)]['McpToolCallExecuted'],_0x342df4[_0x44e7e0(0x11c)]);}))),this[_0x4cbd50(0x12a)](this['Event']['McpToolCallFailed'],()=>_0xae5d85(_0x2bb8da[_0x4cbd50(0x13c)][_0x4cbd50(0x13f)](_0x721c90=>{const _0x34c7f9=_0x4cbd50;_0x721c90['type']===_0x48ba99[_0x34c7f9(0x11e)]&&this[_0x34c7f9(0x11a)](this[_0x34c7f9(0x137)][_0x34c7f9(0x11e)],_0x721c90[_0x34c7f9(0x11c)]);})));}[_0x23fdb7(0x13b)](_0x417090,_0x5eca90){const _0x3bbe9c=_0x23fdb7;return this[_0x3bbe9c(0x133)][_0x3bbe9c(0x12c)](_0x14d45a)[_0x3bbe9c(0x122)](_0x417090,_0x5eca90);}[_0x23fdb7(0x13a)](){const _0x25b914=_0x23fdb7;return this[_0x25b914(0x133)][_0x25b914(0x12c)](_0x14d45a)[_0x25b914(0x124)]();}[_0x23fdb7(0x123)](_0x352b66,_0x5aca7b){const _0x4fbf03=_0x23fdb7;return this['_injector'][_0x4fbf03(0x12c)](_0x14d45a)[_0x4fbf03(0x130)](_0x352b66,_0x5aca7b);}[_0x23fdb7(0x134)](){const _0x1016bd=_0x23fdb7;return this['_injector']['get'](_0x21f0f4)[_0x1016bd(0x128)]();}['connectMCP'](){const _0xcff9c7=_0x23fdb7;this[_0xcff9c7(0x133)][_0xcff9c7(0x12c)](_0x21f0f4)[_0xcff9c7(0x132)]();}[_0x23fdb7(0x12e)](){const _0x175b38=_0x23fdb7;this[_0x175b38(0x133)]['get'](_0x21f0f4)[_0x175b38(0x120)]();}}_0x3002ac[_0x23fdb7(0x135)](M);