@univerjs-pro/mcp 0.12.3-experimental.20251204-1549a8e → 0.12.3-experimental.20251205-e439e48

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 _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);
1
+ function _0x15b8(){const _0x1baa16=['_injector','McpConnectionStatusChanged','6311781KOhpvN','data','subscribe','639955ogjjvZ','46473SwbLGF','validateToolCall','getConnectionStatus','validateMCPToolCall','connectMCP','event$','5985546uXksSh','fireEvent','registerEventHandler','executeTool','Event','_registerMCPFacadeEvents','get','McpToolCallFailed','5240GhUkfe','42xAvQEf','5843488fAPVyn','extend','McpToolCallReceived','type','10177100OighGO','_initialize','40nTggvY','McpToolCallExecuted','getMCPConnectionStatus','disconnectMCP','disconnect','154QqyvEK'];_0x15b8=function(){return _0x1baa16;};return _0x15b8();}const _0x10f4de=_0x22c1;(function(_0x1e8b89,_0x2246fb){const _0x7512f7=_0x22c1,_0x4ff383=_0x1e8b89();while(!![]){try{const _0xaf3bec=-parseInt(_0x7512f7(0xbf))/0x1*(parseInt(_0x7512f7(0xb2))/0x2)+parseInt(_0x7512f7(0xc6))/0x3*(-parseInt(_0x7512f7(0xba))/0x4)+-parseInt(_0x7512f7(0xc5))/0x5*(-parseInt(_0x7512f7(0xb3))/0x6)+-parseInt(_0x7512f7(0xaa))/0x7+-parseInt(_0x7512f7(0xb4))/0x8+parseInt(_0x7512f7(0xc2))/0x9+parseInt(_0x7512f7(0xb8))/0xa;if(_0xaf3bec===_0x2246fb)break;else _0x4ff383['push'](_0x4ff383['shift']());}catch(_0x186ea6){_0x4ff383['push'](_0x4ff383['shift']());}}}(_0x15b8,0x7300c));import{MCPEventId as _0xf2bc6d,MCPEventService as _0x3b91d9,IMCPToolRegistry as _0x4b5cb9,MCPConnectionController as _0x25baaf}from'@univerjs-pro/mcp';import{FEventName as _0x5d03f8,FUniver as _0x103a8d}from'@univerjs/core/facade';import{toDisposable as _0x3f3bcc}from'@univerjs/core';class d{get['McpConnectionStatusChanged'](){const _0x4a83c1=_0x22c1;return _0xf2bc6d[_0x4a83c1(0xc1)];}get['McpToolCallReceived'](){const _0x419b1c=_0x22c1;return _0xf2bc6d[_0x419b1c(0xb6)];}get[_0x10f4de(0xbb)](){const _0x385ecc=_0x10f4de;return _0xf2bc6d[_0x385ecc(0xbb)];}get['McpToolCallFailed'](){const _0x864503=_0x10f4de;return _0xf2bc6d[_0x864503(0xb1)];}}_0x5d03f8[_0x10f4de(0xb5)](d);function _0x22c1(_0x397d1f,_0x589349){_0x397d1f=_0x397d1f-0xa6;const _0x15b82b=_0x15b8();let _0x22c15b=_0x15b82b[_0x397d1f];return _0x22c15b;}class M extends _0x103a8d{[_0x10f4de(0xb9)](_0x3fa9e8){this['_registerMCPFacadeEvents'](_0x3fa9e8);}[_0x10f4de(0xaf)](_0x1ba1eb){const _0x5e6959=_0x10f4de,_0x46f158=_0x1ba1eb[_0x5e6959(0xb0)](_0x3b91d9);this['registerEventHandler'](this['Event']['McpConnectionStatusChanged'],()=>_0x3f3bcc(_0x46f158[_0x5e6959(0xa9)][_0x5e6959(0xc4)](_0x43453c=>{const _0x66b7da=_0x5e6959;_0x43453c[_0x66b7da(0xb7)]===_0xf2bc6d[_0x66b7da(0xc1)]&&this[_0x66b7da(0xab)](this[_0x66b7da(0xae)][_0x66b7da(0xc1)],_0x43453c[_0x66b7da(0xc3)]);}))),this[_0x5e6959(0xac)](this[_0x5e6959(0xae)]['McpToolCallReceived'],()=>_0x3f3bcc(_0x46f158[_0x5e6959(0xa9)][_0x5e6959(0xc4)](_0x2532a4=>{const _0x1ab1bf=_0x5e6959;_0x2532a4[_0x1ab1bf(0xb7)]===_0xf2bc6d[_0x1ab1bf(0xb6)]&&this['fireEvent'](this[_0x1ab1bf(0xae)][_0x1ab1bf(0xb6)],_0x2532a4[_0x1ab1bf(0xc3)]);}))),this[_0x5e6959(0xac)](this[_0x5e6959(0xae)][_0x5e6959(0xbb)],()=>_0x3f3bcc(_0x46f158[_0x5e6959(0xa9)][_0x5e6959(0xc4)](_0x350b6b=>{const _0x9b6c1d=_0x5e6959;_0x350b6b[_0x9b6c1d(0xb7)]===_0xf2bc6d[_0x9b6c1d(0xbb)]&&this[_0x9b6c1d(0xab)](this['Event']['McpToolCallExecuted'],_0x350b6b[_0x9b6c1d(0xc3)]);}))),this[_0x5e6959(0xac)](this[_0x5e6959(0xae)][_0x5e6959(0xb1)],()=>_0x3f3bcc(_0x46f158[_0x5e6959(0xa9)][_0x5e6959(0xc4)](_0x2602e4=>{const _0x1c852f=_0x5e6959;_0x2602e4[_0x1c852f(0xb7)]===_0xf2bc6d[_0x1c852f(0xb1)]&&this['fireEvent'](this[_0x1c852f(0xae)]['McpToolCallFailed'],_0x2602e4[_0x1c852f(0xc3)]);})));}[_0x10f4de(0xa7)](_0x8c1061,_0x3cecb6){const _0x5c4295=_0x10f4de;return this[_0x5c4295(0xc0)][_0x5c4295(0xb0)](_0x4b5cb9)[_0x5c4295(0xc7)](_0x8c1061,_0x3cecb6);}['getAllMCPTools'](){return this['_injector']['get'](_0x4b5cb9)['getAllTools']();}['callMCPTool'](_0xcff2c9,_0x3d754f){const _0x5e66f9=_0x10f4de;return this[_0x5e66f9(0xc0)][_0x5e66f9(0xb0)](_0x4b5cb9)[_0x5e66f9(0xad)](_0xcff2c9,_0x3d754f);}[_0x10f4de(0xbc)](){const _0x37b185=_0x10f4de;return this[_0x37b185(0xc0)][_0x37b185(0xb0)](_0x25baaf)[_0x37b185(0xa6)]();}[_0x10f4de(0xa8)](){const _0x376e42=_0x10f4de;this[_0x376e42(0xc0)][_0x376e42(0xb0)](_0x25baaf)['connect']();}[_0x10f4de(0xbd)](){const _0x40c61d=_0x10f4de;this[_0x40c61d(0xc0)][_0x40c61d(0xb0)](_0x25baaf)[_0x40c61d(0xbe)]();}}_0x103a8d[_0x10f4de(0xb5)](M);