@univerjs-pro/mcp 0.13.0-insiders.20251215-64041bb → 0.13.0-insiders.20251216-1519cb7

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 _0x4aacba=_0x32f8;(function(_0x16d759,_0x7426e1){const _0x2075eb=_0x32f8,_0x541573=_0x16d759();while(!![]){try{const _0x48840f=parseInt(_0x2075eb(0xef))/0x1+-parseInt(_0x2075eb(0xf6))/0x2*(-parseInt(_0x2075eb(0x107))/0x3)+parseInt(_0x2075eb(0xea))/0x4*(-parseInt(_0x2075eb(0xfb))/0x5)+parseInt(_0x2075eb(0xf9))/0x6+parseInt(_0x2075eb(0xe7))/0x7+parseInt(_0x2075eb(0xe9))/0x8*(parseInt(_0x2075eb(0xf8))/0x9)+-parseInt(_0x2075eb(0xe4))/0xa;if(_0x48840f===_0x7426e1)break;else _0x541573['push'](_0x541573['shift']());}catch(_0x375933){_0x541573['push'](_0x541573['shift']());}}}(_0x41ea,0x744b3));function _0x41ea(){const _0x3b3ded=['getAllMCPTools','getConnectionStatus','extend','get','_initialize','disconnect','576DrUBOt','event$','10694480ftRemD','disconnectMCP','getAllTools','1236571OlLlcu','connect','184bpReeb','1635088oovWix','type','callMCPTool','executeTool','registerEventHandler','943328lJUmTG','McpToolCallFailed','validateToolCall','McpToolCallExecuted','_registerMCPFacadeEvents','connectMCP','_injector','7836oxTExt','Event','142353mrQVjW','763818RoSgKo','data','10MGzqkK','subscribe','fireEvent','McpToolCallReceived','validateMCPToolCall','McpConnectionStatusChanged'];_0x41ea=function(){return _0x3b3ded;};return _0x41ea();}import{MCPEventId as _0x403e3b,MCPEventService as _0x1ae106,IMCPToolRegistry as _0x535714,MCPConnectionController as _0x1834b8}from'@univerjs-pro/mcp';function _0x32f8(_0x2524c4,_0x215778){_0x2524c4=_0x2524c4-0xe4;const _0x41eadf=_0x41ea();let _0x32f873=_0x41eadf[_0x2524c4];return _0x32f873;}import{FEventName as _0x2b6e27,FUniver as _0x246595}from'@univerjs/core/facade';import{toDisposable as _0x2ce8ee}from'@univerjs/core';class d{get['McpConnectionStatusChanged'](){const _0x1fbaef=_0x32f8;return _0x403e3b[_0x1fbaef(0x100)];}get[_0x4aacba(0xfe)](){const _0x493323=_0x4aacba;return _0x403e3b[_0x493323(0xfe)];}get['McpToolCallExecuted'](){return _0x403e3b['McpToolCallExecuted'];}get[_0x4aacba(0xf0)](){const _0x2e588d=_0x4aacba;return _0x403e3b[_0x2e588d(0xf0)];}}_0x2b6e27['extend'](d);class M extends _0x246595{[_0x4aacba(0x105)](_0x2a9ff2){this['_registerMCPFacadeEvents'](_0x2a9ff2);}[_0x4aacba(0xf3)](_0x20905d){const _0x266774=_0x4aacba,_0x4834ac=_0x20905d[_0x266774(0x104)](_0x1ae106);this[_0x266774(0xee)](this[_0x266774(0xf7)][_0x266774(0x100)],()=>_0x2ce8ee(_0x4834ac['event$'][_0x266774(0xfc)](_0x4c28b1=>{const _0x269500=_0x266774;_0x4c28b1[_0x269500(0xeb)]===_0x403e3b[_0x269500(0x100)]&&this[_0x269500(0xfd)](this[_0x269500(0xf7)]['McpConnectionStatusChanged'],_0x4c28b1[_0x269500(0xfa)]);}))),this[_0x266774(0xee)](this[_0x266774(0xf7)][_0x266774(0xfe)],()=>_0x2ce8ee(_0x4834ac[_0x266774(0x108)][_0x266774(0xfc)](_0x289d7f=>{const _0x2d816f=_0x266774;_0x289d7f[_0x2d816f(0xeb)]===_0x403e3b[_0x2d816f(0xfe)]&&this[_0x2d816f(0xfd)](this['Event'][_0x2d816f(0xfe)],_0x289d7f['data']);}))),this['registerEventHandler'](this[_0x266774(0xf7)][_0x266774(0xf2)],()=>_0x2ce8ee(_0x4834ac[_0x266774(0x108)]['subscribe'](_0x11dd4e=>{const _0x4ec70b=_0x266774;_0x11dd4e[_0x4ec70b(0xeb)]===_0x403e3b[_0x4ec70b(0xf2)]&&this[_0x4ec70b(0xfd)](this['Event'][_0x4ec70b(0xf2)],_0x11dd4e[_0x4ec70b(0xfa)]);}))),this[_0x266774(0xee)](this[_0x266774(0xf7)][_0x266774(0xf0)],()=>_0x2ce8ee(_0x4834ac[_0x266774(0x108)][_0x266774(0xfc)](_0x59a233=>{const _0x7043d1=_0x266774;_0x59a233[_0x7043d1(0xeb)]===_0x403e3b['McpToolCallFailed']&&this['fireEvent'](this['Event'][_0x7043d1(0xf0)],_0x59a233[_0x7043d1(0xfa)]);})));}[_0x4aacba(0xff)](_0x150c4f,_0x25ba99){const _0x5249f6=_0x4aacba;return this[_0x5249f6(0xf5)]['get'](_0x535714)[_0x5249f6(0xf1)](_0x150c4f,_0x25ba99);}[_0x4aacba(0x101)](){const _0x29903a=_0x4aacba;return this[_0x29903a(0xf5)][_0x29903a(0x104)](_0x535714)[_0x29903a(0xe6)]();}[_0x4aacba(0xec)](_0x30dc84,_0x4b75a2){const _0x106709=_0x4aacba;return this[_0x106709(0xf5)][_0x106709(0x104)](_0x535714)[_0x106709(0xed)](_0x30dc84,_0x4b75a2);}['getMCPConnectionStatus'](){const _0x5865f8=_0x4aacba;return this[_0x5865f8(0xf5)][_0x5865f8(0x104)](_0x1834b8)[_0x5865f8(0x102)]();}[_0x4aacba(0xf4)](){const _0x1b9268=_0x4aacba;this['_injector'][_0x1b9268(0x104)](_0x1834b8)[_0x1b9268(0xe8)]();}[_0x4aacba(0xe5)](){const _0x2bec69=_0x4aacba;this[_0x2bec69(0xf5)]['get'](_0x1834b8)[_0x2bec69(0x106)]();}}_0x246595[_0x4aacba(0x103)](M);
1
+ const _0x16ed9f=_0x5233;(function(_0x4f2689,_0x1b7315){const _0x1d9c2b=_0x5233,_0x2c5169=_0x4f2689();while(!![]){try{const _0x1897bc=-parseInt(_0x1d9c2b(0xa7))/0x1+parseInt(_0x1d9c2b(0xbb))/0x2+-parseInt(_0x1d9c2b(0xbf))/0x3*(-parseInt(_0x1d9c2b(0xbc))/0x4)+-parseInt(_0x1d9c2b(0xa5))/0x5*(-parseInt(_0x1d9c2b(0xb8))/0x6)+parseInt(_0x1d9c2b(0xb0))/0x7+-parseInt(_0x1d9c2b(0xa9))/0x8+-parseInt(_0x1d9c2b(0xa2))/0x9;if(_0x1897bc===_0x1b7315)break;else _0x2c5169['push'](_0x2c5169['shift']());}catch(_0x224715){_0x2c5169['push'](_0x2c5169['shift']());}}}(_0x2973,0x5c4b9));function _0x5233(_0x18b287,_0x50d66c){_0x18b287=_0x18b287-0xa0;const _0x2973a6=_0x2973();let _0x523371=_0x2973a6[_0x18b287];return _0x523371;}import{MCPEventId as _0x1b373c,MCPEventService as _0x3ae5bc,IMCPToolRegistry as _0x388d86,MCPConnectionController as _0x5d1f06}from'@univerjs-pro/mcp';import{FEventName as _0x5afba6,FUniver as _0x50da96}from'@univerjs/core/facade';import{toDisposable as _0xf98d8d}from'@univerjs/core';class d{get[_0x16ed9f(0xc0)](){const _0x142121=_0x16ed9f;return _0x1b373c[_0x142121(0xc0)];}get[_0x16ed9f(0xa6)](){return _0x1b373c['McpToolCallReceived'];}get['McpToolCallExecuted'](){const _0x425d48=_0x16ed9f;return _0x1b373c[_0x425d48(0xbe)];}get['McpToolCallFailed'](){return _0x1b373c['McpToolCallFailed'];}}_0x5afba6[_0x16ed9f(0xaa)](d);class M extends _0x50da96{['_initialize'](_0x21d08a){const _0x4a1b82=_0x16ed9f;this[_0x4a1b82(0xab)](_0x21d08a);}[_0x16ed9f(0xab)](_0x497c9d){const _0x96d425=_0x16ed9f,_0x54a294=_0x497c9d[_0x96d425(0xa8)](_0x3ae5bc);this[_0x96d425(0xc1)](this[_0x96d425(0xb2)][_0x96d425(0xc0)],()=>_0xf98d8d(_0x54a294['event$'][_0x96d425(0xb6)](_0xe2c37c=>{const _0x1cb424=_0x96d425;_0xe2c37c['type']===_0x1b373c[_0x1cb424(0xc0)]&&this[_0x1cb424(0xae)](this[_0x1cb424(0xb2)]['McpConnectionStatusChanged'],_0xe2c37c[_0x1cb424(0xb9)]);}))),this[_0x96d425(0xc1)](this[_0x96d425(0xb2)]['McpToolCallReceived'],()=>_0xf98d8d(_0x54a294[_0x96d425(0xa0)][_0x96d425(0xb6)](_0x3890c5=>{const _0x3cffb8=_0x96d425;_0x3890c5[_0x3cffb8(0xb7)]===_0x1b373c[_0x3cffb8(0xa6)]&&this[_0x3cffb8(0xae)](this[_0x3cffb8(0xb2)][_0x3cffb8(0xa6)],_0x3890c5[_0x3cffb8(0xb9)]);}))),this['registerEventHandler'](this['Event']['McpToolCallExecuted'],()=>_0xf98d8d(_0x54a294[_0x96d425(0xa0)][_0x96d425(0xb6)](_0x265b2b=>{const _0x491f8f=_0x96d425;_0x265b2b[_0x491f8f(0xb7)]===_0x1b373c[_0x491f8f(0xbe)]&&this[_0x491f8f(0xae)](this[_0x491f8f(0xb2)][_0x491f8f(0xbe)],_0x265b2b[_0x491f8f(0xb9)]);}))),this[_0x96d425(0xc1)](this['Event'][_0x96d425(0xad)],()=>_0xf98d8d(_0x54a294[_0x96d425(0xa0)][_0x96d425(0xb6)](_0x4f1831=>{const _0xc94f43=_0x96d425;_0x4f1831['type']===_0x1b373c['McpToolCallFailed']&&this[_0xc94f43(0xae)](this[_0xc94f43(0xb2)][_0xc94f43(0xad)],_0x4f1831[_0xc94f43(0xb9)]);})));}[_0x16ed9f(0xaf)](_0x23a287,_0x4c4773){return this['_injector']['get'](_0x388d86)['validateToolCall'](_0x23a287,_0x4c4773);}[_0x16ed9f(0xb5)](){const _0x39a75f=_0x16ed9f;return this[_0x39a75f(0xac)][_0x39a75f(0xa8)](_0x388d86)[_0x39a75f(0xa3)]();}[_0x16ed9f(0xb4)](_0x1ba2fb,_0x2fab25){const _0xaf2896=_0x16ed9f;return this[_0xaf2896(0xac)][_0xaf2896(0xa8)](_0x388d86)[_0xaf2896(0xb3)](_0x1ba2fb,_0x2fab25);}[_0x16ed9f(0xbd)](){const _0x2a470e=_0x16ed9f;return this[_0x2a470e(0xac)][_0x2a470e(0xa8)](_0x5d1f06)[_0x2a470e(0xc2)]();}[_0x16ed9f(0xa1)](){const _0x5848a6=_0x16ed9f;this[_0x5848a6(0xac)][_0x5848a6(0xa8)](_0x5d1f06)[_0x5848a6(0xba)]();}[_0x16ed9f(0xa4)](){const _0x13d443=_0x16ed9f;this[_0x13d443(0xac)][_0x13d443(0xa8)](_0x5d1f06)[_0x13d443(0xb1)]();}}_0x50da96[_0x16ed9f(0xaa)](M);function _0x2973(){const _0xded548=['_registerMCPFacadeEvents','_injector','McpToolCallFailed','fireEvent','validateMCPToolCall','1233932izHMlz','disconnect','Event','executeTool','callMCPTool','getAllMCPTools','subscribe','type','3251322jtmFNR','data','connect','888694ORyvyb','16NGjHnn','getMCPConnectionStatus','McpToolCallExecuted','171102AerTxD','McpConnectionStatusChanged','registerEventHandler','getConnectionStatus','event$','connectMCP','412389hxabeP','getAllTools','disconnectMCP','5yLKmol','McpToolCallReceived','748889ptgJzg','get','1743160cLrXWR','extend'];_0x2973=function(){return _0xded548;};return _0x2973();}