@univerjs-pro/mcp 0.10.12 → 0.10.13-nightly.202510290902

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 _0x1f6f58=_0x2025;function _0x2025(_0x397c35,_0x339e0c){const _0x38fb08=_0x38fb();return _0x2025=function(_0x202516,_0x44bbd1){_0x202516=_0x202516-0x120;let _0x5cfaf5=_0x38fb08[_0x202516];return _0x5cfaf5;},_0x2025(_0x397c35,_0x339e0c);}(function(_0x5c8f06,_0x3b5a72){const _0x4cc6d4=_0x2025,_0x12352e=_0x5c8f06();while(!![]){try{const _0x350920=-parseInt(_0x4cc6d4(0x123))/0x1*(-parseInt(_0x4cc6d4(0x142))/0x2)+-parseInt(_0x4cc6d4(0x138))/0x3+-parseInt(_0x4cc6d4(0x13c))/0x4*(parseInt(_0x4cc6d4(0x130))/0x5)+parseInt(_0x4cc6d4(0x13d))/0x6+-parseInt(_0x4cc6d4(0x141))/0x7*(-parseInt(_0x4cc6d4(0x128))/0x8)+parseInt(_0x4cc6d4(0x12e))/0x9*(-parseInt(_0x4cc6d4(0x125))/0xa)+parseInt(_0x4cc6d4(0x132))/0xb*(-parseInt(_0x4cc6d4(0x13a))/0xc);if(_0x350920===_0x3b5a72)break;else _0x12352e['push'](_0x12352e['shift']());}catch(_0x4be386){_0x12352e['push'](_0x12352e['shift']());}}}(_0x38fb,0x82bab));import{MCPEventId as _0x4f59ce,MCPEventService as _0x44ade1,IMCPToolRegistry as _0x4b5d8e,MCPConnectionController as _0xddefc2}from'@univerjs-pro/mcp';import{FEventName as _0x386de6,FUniver as _0x2f4cb4}from'@univerjs/core/facade';import{toDisposable as _0x238951}from'@univerjs/core';class d{get[_0x1f6f58(0x134)](){const _0x3c87a9=_0x1f6f58;return _0x4f59ce[_0x3c87a9(0x134)];}get['McpToolCallReceived'](){const _0x23d12e=_0x1f6f58;return _0x4f59ce[_0x23d12e(0x137)];}get['McpToolCallExecuted'](){return _0x4f59ce['McpToolCallExecuted'];}get[_0x1f6f58(0x122)](){const _0x47cf0a=_0x1f6f58;return _0x4f59ce[_0x47cf0a(0x122)];}}_0x386de6[_0x1f6f58(0x136)](d);class M extends _0x2f4cb4{['_initialize'](_0x541d20){const _0x88202c=_0x1f6f58;this[_0x88202c(0x129)](_0x541d20);}['_registerMCPFacadeEvents'](_0x2c21f5){const _0x42ed59=_0x1f6f58,_0x51b57c=_0x2c21f5[_0x42ed59(0x12d)](_0x44ade1);this['registerEventHandler'](this[_0x42ed59(0x12c)][_0x42ed59(0x134)],()=>_0x238951(_0x51b57c[_0x42ed59(0x126)][_0x42ed59(0x131)](_0x4c8cba=>{const _0x1f0254=_0x42ed59;_0x4c8cba[_0x1f0254(0x12f)]===_0x4f59ce[_0x1f0254(0x134)]&&this[_0x1f0254(0x140)](this['Event']['McpConnectionStatusChanged'],_0x4c8cba[_0x1f0254(0x13f)]);}))),this[_0x42ed59(0x139)](this['Event'][_0x42ed59(0x137)],()=>_0x238951(_0x51b57c[_0x42ed59(0x126)]['subscribe'](_0x39342f=>{const _0x22621d=_0x42ed59;_0x39342f['type']===_0x4f59ce[_0x22621d(0x137)]&&this[_0x22621d(0x140)](this[_0x22621d(0x12c)][_0x22621d(0x137)],_0x39342f[_0x22621d(0x13f)]);}))),this[_0x42ed59(0x139)](this['Event'][_0x42ed59(0x133)],()=>_0x238951(_0x51b57c['event$'][_0x42ed59(0x131)](_0x549d89=>{const _0x34a540=_0x42ed59;_0x549d89[_0x34a540(0x12f)]===_0x4f59ce['McpToolCallExecuted']&&this[_0x34a540(0x140)](this[_0x34a540(0x12c)][_0x34a540(0x133)],_0x549d89[_0x34a540(0x13f)]);}))),this[_0x42ed59(0x139)](this[_0x42ed59(0x12c)][_0x42ed59(0x122)],()=>_0x238951(_0x51b57c[_0x42ed59(0x126)][_0x42ed59(0x131)](_0x356aa7=>{const _0x5506b3=_0x42ed59;_0x356aa7[_0x5506b3(0x12f)]===_0x4f59ce[_0x5506b3(0x122)]&&this[_0x5506b3(0x140)](this['Event'][_0x5506b3(0x122)],_0x356aa7[_0x5506b3(0x13f)]);})));}[_0x1f6f58(0x143)](_0x49fb90,_0x49d911){const _0x1d7f3a=_0x1f6f58;return this[_0x1d7f3a(0x120)][_0x1d7f3a(0x12d)](_0x4b5d8e)[_0x1d7f3a(0x124)](_0x49fb90,_0x49d911);}[_0x1f6f58(0x127)](){const _0x34fb5f=_0x1f6f58;return this[_0x34fb5f(0x120)][_0x34fb5f(0x12d)](_0x4b5d8e)[_0x34fb5f(0x13b)]();}[_0x1f6f58(0x13e)](_0xbdabb,_0x262333){const _0x527043=_0x1f6f58;return this[_0x527043(0x120)][_0x527043(0x12d)](_0x4b5d8e)[_0x527043(0x121)](_0xbdabb,_0x262333);}[_0x1f6f58(0x12a)](){const _0x5e4d6a=_0x1f6f58;return this[_0x5e4d6a(0x120)][_0x5e4d6a(0x12d)](_0xddefc2)[_0x5e4d6a(0x135)]();}['connectMCP'](){const _0x374151=_0x1f6f58;this[_0x374151(0x120)]['get'](_0xddefc2)['connect']();}[_0x1f6f58(0x12b)](){const _0x103e74=_0x1f6f58;this['_injector'][_0x103e74(0x12d)](_0xddefc2)['disconnect']();}}function _0x38fb(){const _0x5b3bae=['3533319TYKram','type','105PEYGOB','subscribe','51491GdVAga','McpToolCallExecuted','McpConnectionStatusChanged','getConnectionStatus','extend','McpToolCallReceived','886785WiaMll','registerEventHandler','612TFZFkO','getAllTools','140236oyealw','6106710hHyfcA','callMCPTool','data','fireEvent','3458819kmfxVw','26ytGMxH','validateMCPToolCall','_injector','executeTool','McpToolCallFailed','45015PeZdeh','validateToolCall','20jgqGvF','event$','getAllMCPTools','16mVhTUw','_registerMCPFacadeEvents','getMCPConnectionStatus','disconnectMCP','Event','get'];_0x38fb=function(){return _0x5b3bae;};return _0x38fb();}_0x2f4cb4['extend'](M);
1
+ const _0x4bae94=_0x5aae;function _0x5aae(_0xb50227,_0x1962b5){const _0x3be4c9=_0x3be4();return _0x5aae=function(_0x5aae13,_0x29df63){_0x5aae13=_0x5aae13-0xc6;let _0x31cb1b=_0x3be4c9[_0x5aae13];return _0x31cb1b;},_0x5aae(_0xb50227,_0x1962b5);}(function(_0x49b779,_0x2396ca){const _0x320ce1=_0x5aae,_0xc34c9e=_0x49b779();while(!![]){try{const _0x2a3968=-parseInt(_0x320ce1(0xea))/0x1*(parseInt(_0x320ce1(0xc7))/0x2)+parseInt(_0x320ce1(0xda))/0x3+-parseInt(_0x320ce1(0xe2))/0x4*(parseInt(_0x320ce1(0xe5))/0x5)+-parseInt(_0x320ce1(0xd8))/0x6*(parseInt(_0x320ce1(0xd9))/0x7)+parseInt(_0x320ce1(0xcd))/0x8*(-parseInt(_0x320ce1(0xd4))/0x9)+-parseInt(_0x320ce1(0xe4))/0xa*(parseInt(_0x320ce1(0xdb))/0xb)+-parseInt(_0x320ce1(0xcc))/0xc*(-parseInt(_0x320ce1(0xca))/0xd);if(_0x2a3968===_0x2396ca)break;else _0xc34c9e['push'](_0xc34c9e['shift']());}catch(_0x13d96f){_0xc34c9e['push'](_0xc34c9e['shift']());}}}(_0x3be4,0x8fbc2));import{MCPEventId as _0x207b93,MCPEventService as _0x5980fd,IMCPToolRegistry as _0x35e315,MCPConnectionController as _0x4487e3}from'@univerjs-pro/mcp';function _0x3be4(){const _0x55f71e=['fireEvent','96308gzYxfy','type','McpConnectionStatusChanged','13sLoevX','_initialize','28870584cZVBIu','279248YenrHE','data','getConnectionStatus','validateToolCall','McpToolCallExecuted','extend','subscribe','36uPSHBz','connect','_registerMCPFacadeEvents','executeTool','12ERrJmT','3271646pHOMNh','2533083EEuDBD','11MLapez','disconnect','event$','callMCPTool','_injector','get','getMCPConnectionStatus','8OUVijx','registerEventHandler','5110330OMTWkb','884455qbDdQN','Event','connectMCP','McpToolCallReceived','McpToolCallFailed','15xoOLXn','getAllMCPTools'];_0x3be4=function(){return _0x55f71e;};return _0x3be4();}import{FEventName as _0x4103aa,FUniver as _0x57cee6}from'@univerjs/core/facade';import{toDisposable as _0x379412}from'@univerjs/core';class d{get[_0x4bae94(0xc9)](){return _0x207b93['McpConnectionStatusChanged'];}get[_0x4bae94(0xe8)](){const _0x459810=_0x4bae94;return _0x207b93[_0x459810(0xe8)];}get[_0x4bae94(0xd1)](){const _0x2e9f1b=_0x4bae94;return _0x207b93[_0x2e9f1b(0xd1)];}get[_0x4bae94(0xe9)](){const _0x391976=_0x4bae94;return _0x207b93[_0x391976(0xe9)];}}_0x4103aa[_0x4bae94(0xd2)](d);class M extends _0x57cee6{[_0x4bae94(0xcb)](_0xe01086){const _0x4c3ce3=_0x4bae94;this[_0x4c3ce3(0xd6)](_0xe01086);}[_0x4bae94(0xd6)](_0x6ad772){const _0x413344=_0x4bae94,_0x57b1bc=_0x6ad772['get'](_0x5980fd);this[_0x413344(0xe3)](this[_0x413344(0xe6)][_0x413344(0xc9)],()=>_0x379412(_0x57b1bc[_0x413344(0xdd)][_0x413344(0xd3)](_0x5e222b=>{const _0x17466b=_0x413344;_0x5e222b[_0x17466b(0xc8)]===_0x207b93[_0x17466b(0xc9)]&&this['fireEvent'](this['Event'][_0x17466b(0xc9)],_0x5e222b['data']);}))),this[_0x413344(0xe3)](this['Event'][_0x413344(0xe8)],()=>_0x379412(_0x57b1bc['event$'][_0x413344(0xd3)](_0x32fce2=>{const _0x211300=_0x413344;_0x32fce2[_0x211300(0xc8)]===_0x207b93['McpToolCallReceived']&&this[_0x211300(0xc6)](this[_0x211300(0xe6)][_0x211300(0xe8)],_0x32fce2[_0x211300(0xce)]);}))),this[_0x413344(0xe3)](this[_0x413344(0xe6)][_0x413344(0xd1)],()=>_0x379412(_0x57b1bc[_0x413344(0xdd)]['subscribe'](_0x311dc6=>{const _0x4bb580=_0x413344;_0x311dc6['type']===_0x207b93['McpToolCallExecuted']&&this['fireEvent'](this['Event'][_0x4bb580(0xd1)],_0x311dc6['data']);}))),this[_0x413344(0xe3)](this[_0x413344(0xe6)][_0x413344(0xe9)],()=>_0x379412(_0x57b1bc[_0x413344(0xdd)]['subscribe'](_0x199dbd=>{const _0x4178de=_0x413344;_0x199dbd[_0x4178de(0xc8)]===_0x207b93[_0x4178de(0xe9)]&&this[_0x4178de(0xc6)](this[_0x4178de(0xe6)][_0x4178de(0xe9)],_0x199dbd['data']);})));}['validateMCPToolCall'](_0x89093d,_0x5ec206){const _0x1f1863=_0x4bae94;return this[_0x1f1863(0xdf)][_0x1f1863(0xe0)](_0x35e315)[_0x1f1863(0xd0)](_0x89093d,_0x5ec206);}[_0x4bae94(0xeb)](){const _0x9ae248=_0x4bae94;return this[_0x9ae248(0xdf)][_0x9ae248(0xe0)](_0x35e315)['getAllTools']();}[_0x4bae94(0xde)](_0x50c0df,_0x59e90e){const _0x4ac2d9=_0x4bae94;return this[_0x4ac2d9(0xdf)][_0x4ac2d9(0xe0)](_0x35e315)[_0x4ac2d9(0xd7)](_0x50c0df,_0x59e90e);}[_0x4bae94(0xe1)](){const _0x4303a2=_0x4bae94;return this[_0x4303a2(0xdf)][_0x4303a2(0xe0)](_0x4487e3)[_0x4303a2(0xcf)]();}[_0x4bae94(0xe7)](){const _0x29e0a9=_0x4bae94;this['_injector'][_0x29e0a9(0xe0)](_0x4487e3)[_0x29e0a9(0xd5)]();}['disconnectMCP'](){const _0x478b57=_0x4bae94;this[_0x478b57(0xdf)]['get'](_0x4487e3)[_0x478b57(0xdc)]();}}_0x57cee6[_0x4bae94(0xd2)](M);