@univerjs-pro/mcp 0.10.14-nightly.202511070628 → 0.10.14-nightly.202511070640

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/umd/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x5ab3(){const _0x35a26f=['UniverProMcp','function','FEventName','21mZyXhf','object','executeTool','validateMCPToolCall','McpToolCallExecuted','toDisposable','MCPEventId','McpToolCallFailed','2BgwNSA','Event','UniverCoreFacade','MCPConnectionController','FUniver','_registerMCPFacadeEvents','extend','847254WTimDo','amd','716604SAIcQL','callMCPTool','@univerjs/core/facade','connectMCP','722986iwZXES','IMCPToolRegistry','get','64TqJRMf','event$','fireEvent','1873566lZlhdF','2232656cPnKza','@univerjs-pro/mcp','53215qfNznU','type','McpConnectionStatusChanged','30EOCVSO','registerEventHandler','2643784LPuogL','getAllMCPTools','getConnectionStatus','McpToolCallReceived','subscribe','_injector','getMCPConnectionStatus','data'];_0x5ab3=function(){return _0x35a26f;};return _0x5ab3();}function _0x14d5(_0x5674c3,_0x10b730){const _0x5ab367=_0x5ab3();return _0x14d5=function(_0x14d5d1,_0x2dc885){_0x14d5d1=_0x14d5d1-0xbd;let _0x1b0112=_0x5ab367[_0x14d5d1];return _0x1b0112;},_0x14d5(_0x5674c3,_0x10b730);}(function(_0x31214f,_0x156abe){const _0x2a7cbe=_0x14d5,_0x452172=_0x31214f();while(!![]){try{const _0x33e5bd=parseInt(_0x2a7cbe(0xd2))/0x1*(parseInt(_0x2a7cbe(0xc5))/0x2)+-parseInt(_0x2a7cbe(0xce))/0x3+parseInt(_0x2a7cbe(0xd5))/0x4*(-parseInt(_0x2a7cbe(0xdb))/0x5)+parseInt(_0x2a7cbe(0xcc))/0x6*(-parseInt(_0x2a7cbe(0xbd))/0x7)+-parseInt(_0x2a7cbe(0xd9))/0x8+parseInt(_0x2a7cbe(0xd8))/0x9*(parseInt(_0x2a7cbe(0xde))/0xa)+parseInt(_0x2a7cbe(0xe0))/0xb;if(_0x33e5bd===_0x156abe)break;else _0x452172['push'](_0x452172['shift']());}catch(_0x1f7634){_0x452172['push'](_0x452172['shift']());}}}(_0x5ab3,0x74353),function(_0x5c107d,_0x40cef6){const _0x5b0f9e=_0x14d5;typeof exports==_0x5b0f9e(0xbe)&&typeof module<'u'?_0x40cef6(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x5b0f9e(0xe9)&&define[_0x5b0f9e(0xcd)]?define([_0x5b0f9e(0xda),_0x5b0f9e(0xd0),'@univerjs/core'],_0x40cef6):(_0x5c107d=typeof globalThis<'u'?globalThis:_0x5c107d||self,_0x40cef6(_0x5c107d[_0x5b0f9e(0xe8)],_0x5c107d[_0x5b0f9e(0xc7)],_0x5c107d['UniverCore']));}(this,function(_0x42e00f,_0x145ad9,_0x33074f){'use strict';const _0x3d3a40=_0x14d5;class _0x5b933d{get[_0x3d3a40(0xdd)](){const _0x5e2761=_0x3d3a40;return _0x42e00f[_0x5e2761(0xc3)][_0x5e2761(0xdd)];}get[_0x3d3a40(0xe3)](){const _0x5a5089=_0x3d3a40;return _0x42e00f[_0x5a5089(0xc3)]['McpToolCallReceived'];}get[_0x3d3a40(0xc1)](){const _0x40b90c=_0x3d3a40;return _0x42e00f['MCPEventId'][_0x40b90c(0xc1)];}get['McpToolCallFailed'](){return _0x42e00f['MCPEventId']['McpToolCallFailed'];}}_0x145ad9[_0x3d3a40(0xea)][_0x3d3a40(0xcb)](_0x5b933d);class _0x516095 extends _0x145ad9[_0x3d3a40(0xc9)]{['_initialize'](_0x26f562){const _0x529d10=_0x3d3a40;this[_0x529d10(0xca)](_0x26f562);}[_0x3d3a40(0xca)](_0x2dae0d){const _0x44ac81=_0x3d3a40,_0x3cd2e0=_0x2dae0d[_0x44ac81(0xd4)](_0x42e00f['MCPEventService']);this['registerEventHandler'](this[_0x44ac81(0xc6)][_0x44ac81(0xdd)],()=>_0x33074f['toDisposable'](_0x3cd2e0[_0x44ac81(0xd6)]['subscribe'](_0x256f64=>{const _0x378de6=_0x44ac81;_0x256f64[_0x378de6(0xdc)]===_0x42e00f[_0x378de6(0xc3)]['McpConnectionStatusChanged']&&this[_0x378de6(0xd7)](this['Event'][_0x378de6(0xdd)],_0x256f64['data']);}))),this[_0x44ac81(0xdf)](this['Event'][_0x44ac81(0xe3)],()=>_0x33074f[_0x44ac81(0xc2)](_0x3cd2e0[_0x44ac81(0xd6)]['subscribe'](_0x5f09af=>{const _0x16deba=_0x44ac81;_0x5f09af[_0x16deba(0xdc)]===_0x42e00f['MCPEventId']['McpToolCallReceived']&&this[_0x16deba(0xd7)](this[_0x16deba(0xc6)]['McpToolCallReceived'],_0x5f09af[_0x16deba(0xe7)]);}))),this[_0x44ac81(0xdf)](this[_0x44ac81(0xc6)]['McpToolCallExecuted'],()=>_0x33074f[_0x44ac81(0xc2)](_0x3cd2e0[_0x44ac81(0xd6)][_0x44ac81(0xe4)](_0x3f60dd=>{const _0x2dfbf3=_0x44ac81;_0x3f60dd[_0x2dfbf3(0xdc)]===_0x42e00f[_0x2dfbf3(0xc3)][_0x2dfbf3(0xc1)]&&this[_0x2dfbf3(0xd7)](this[_0x2dfbf3(0xc6)]['McpToolCallExecuted'],_0x3f60dd[_0x2dfbf3(0xe7)]);}))),this['registerEventHandler'](this[_0x44ac81(0xc6)]['McpToolCallFailed'],()=>_0x33074f[_0x44ac81(0xc2)](_0x3cd2e0[_0x44ac81(0xd6)][_0x44ac81(0xe4)](_0x25ba16=>{const _0x99a0e8=_0x44ac81;_0x25ba16[_0x99a0e8(0xdc)]===_0x42e00f['MCPEventId']['McpToolCallFailed']&&this['fireEvent'](this[_0x99a0e8(0xc6)][_0x99a0e8(0xc4)],_0x25ba16[_0x99a0e8(0xe7)]);})));}[_0x3d3a40(0xc0)](_0x47c71e,_0x2dc600){const _0x3fe14a=_0x3d3a40;return this[_0x3fe14a(0xe5)]['get'](_0x42e00f[_0x3fe14a(0xd3)])['validateToolCall'](_0x47c71e,_0x2dc600);}[_0x3d3a40(0xe1)](){const _0x55fe90=_0x3d3a40;return this[_0x55fe90(0xe5)][_0x55fe90(0xd4)](_0x42e00f[_0x55fe90(0xd3)])['getAllTools']();}[_0x3d3a40(0xcf)](_0x479c58,_0x4abedf){const _0x844492=_0x3d3a40;return this['_injector'][_0x844492(0xd4)](_0x42e00f[_0x844492(0xd3)])[_0x844492(0xbf)](_0x479c58,_0x4abedf);}[_0x3d3a40(0xe6)](){const _0x1a5abf=_0x3d3a40;return this['_injector']['get'](_0x42e00f[_0x1a5abf(0xc8)])[_0x1a5abf(0xe2)]();}[_0x3d3a40(0xd1)](){const _0x6b1c84=_0x3d3a40;this[_0x6b1c84(0xe5)][_0x6b1c84(0xd4)](_0x42e00f[_0x6b1c84(0xc8)])['connect']();}['disconnectMCP'](){const _0xa3c4f6=_0x3d3a40;this['_injector'][_0xa3c4f6(0xd4)](_0x42e00f[_0xa3c4f6(0xc8)])['disconnect']();}}_0x145ad9['FUniver'][_0x3d3a40(0xcb)](_0x516095);}));
1
+ (function(_0x284b6b,_0xe14262){const _0x4f01d6=_0x2f2d,_0x13b77d=_0x284b6b();while(!![]){try{const _0x4959fa=-parseInt(_0x4f01d6(0xd7))/0x1*(-parseInt(_0x4f01d6(0xe4))/0x2)+parseInt(_0x4f01d6(0xbe))/0x3+-parseInt(_0x4f01d6(0xea))/0x4*(parseInt(_0x4f01d6(0xd1))/0x5)+-parseInt(_0x4f01d6(0xca))/0x6+parseInt(_0x4f01d6(0xce))/0x7*(parseInt(_0x4f01d6(0xdf))/0x8)+-parseInt(_0x4f01d6(0xc9))/0x9+-parseInt(_0x4f01d6(0xe9))/0xa;if(_0x4959fa===_0xe14262)break;else _0x13b77d['push'](_0x13b77d['shift']());}catch(_0x961577){_0x13b77d['push'](_0x13b77d['shift']());}}}(_0x55d7,0x6d6ee),function(_0x3bcf40,_0x32fb29){const _0x5c8469=_0x2f2d;typeof exports=='object'&&typeof module<'u'?_0x32fb29(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x5c8469(0xd9)&&define[_0x5c8469(0xd2)]?define([_0x5c8469(0xd8),_0x5c8469(0xe2),'@univerjs/core'],_0x32fb29):(_0x3bcf40=typeof globalThis<'u'?globalThis:_0x3bcf40||self,_0x32fb29(_0x3bcf40['UniverProMcp'],_0x3bcf40[_0x5c8469(0xd0)],_0x3bcf40['UniverCore']));}(this,function(_0x127e3f,_0x551d16,_0x23851d){'use strict';const _0xa76343=_0x2f2d;class _0x419408{get[_0xa76343(0xde)](){const _0x1cba5b=_0xa76343;return _0x127e3f['MCPEventId'][_0x1cba5b(0xde)];}get['McpToolCallReceived'](){const _0xebe28c=_0xa76343;return _0x127e3f[_0xebe28c(0xc6)][_0xebe28c(0xcd)];}get[_0xa76343(0xbf)](){const _0x530cab=_0xa76343;return _0x127e3f[_0x530cab(0xc6)][_0x530cab(0xbf)];}get[_0xa76343(0xe0)](){const _0xb2bb31=_0xa76343;return _0x127e3f[_0xb2bb31(0xc6)][_0xb2bb31(0xe0)];}}_0x551d16[_0xa76343(0xec)][_0xa76343(0xe6)](_0x419408);class _0x41963a extends _0x551d16[_0xa76343(0xe3)]{[_0xa76343(0xbd)](_0x5ded4b){const _0xe40fd3=_0xa76343;this[_0xe40fd3(0xcf)](_0x5ded4b);}[_0xa76343(0xcf)](_0x3482ca){const _0x3aa0dd=_0xa76343,_0x5e3af7=_0x3482ca[_0x3aa0dd(0xe8)](_0x127e3f[_0x3aa0dd(0xc1)]);this[_0x3aa0dd(0xc4)](this['Event']['McpConnectionStatusChanged'],()=>_0x23851d[_0x3aa0dd(0xd4)](_0x5e3af7[_0x3aa0dd(0xdb)][_0x3aa0dd(0xc5)](_0x5ca9e3=>{const _0x2f6839=_0x3aa0dd;_0x5ca9e3[_0x2f6839(0xcb)]===_0x127e3f[_0x2f6839(0xc6)][_0x2f6839(0xde)]&&this['fireEvent'](this[_0x2f6839(0xc7)][_0x2f6839(0xde)],_0x5ca9e3[_0x2f6839(0xdd)]);}))),this[_0x3aa0dd(0xc4)](this[_0x3aa0dd(0xc7)]['McpToolCallReceived'],()=>_0x23851d['toDisposable'](_0x5e3af7['event$'][_0x3aa0dd(0xc5)](_0x2daf03=>{const _0x54d2af=_0x3aa0dd;_0x2daf03[_0x54d2af(0xcb)]===_0x127e3f[_0x54d2af(0xc6)][_0x54d2af(0xcd)]&&this[_0x54d2af(0xe7)](this[_0x54d2af(0xc7)][_0x54d2af(0xcd)],_0x2daf03[_0x54d2af(0xdd)]);}))),this['registerEventHandler'](this[_0x3aa0dd(0xc7)]['McpToolCallExecuted'],()=>_0x23851d[_0x3aa0dd(0xd4)](_0x5e3af7[_0x3aa0dd(0xdb)][_0x3aa0dd(0xc5)](_0x1e4b53=>{const _0x327346=_0x3aa0dd;_0x1e4b53[_0x327346(0xcb)]===_0x127e3f[_0x327346(0xc6)]['McpToolCallExecuted']&&this[_0x327346(0xe7)](this[_0x327346(0xc7)][_0x327346(0xbf)],_0x1e4b53[_0x327346(0xdd)]);}))),this['registerEventHandler'](this[_0x3aa0dd(0xc7)][_0x3aa0dd(0xe0)],()=>_0x23851d[_0x3aa0dd(0xd4)](_0x5e3af7['event$'][_0x3aa0dd(0xc5)](_0x40f78c=>{const _0x7a0665=_0x3aa0dd;_0x40f78c[_0x7a0665(0xcb)]===_0x127e3f['MCPEventId']['McpToolCallFailed']&&this['fireEvent'](this[_0x7a0665(0xc7)][_0x7a0665(0xe0)],_0x40f78c['data']);})));}[_0xa76343(0xda)](_0x192ba8,_0x24b1e7){const _0x46ed09=_0xa76343;return this[_0x46ed09(0xc2)][_0x46ed09(0xe8)](_0x127e3f[_0x46ed09(0xe5)])['validateToolCall'](_0x192ba8,_0x24b1e7);}[_0xa76343(0xc0)](){const _0xec933c=_0xa76343;return this[_0xec933c(0xc2)][_0xec933c(0xe8)](_0x127e3f[_0xec933c(0xe5)])[_0xec933c(0xbc)]();}[_0xa76343(0xc3)](_0x53b296,_0xa1928b){const _0x5d7cfe=_0xa76343;return this[_0x5d7cfe(0xc2)][_0x5d7cfe(0xe8)](_0x127e3f[_0x5d7cfe(0xe5)])[_0x5d7cfe(0xd6)](_0x53b296,_0xa1928b);}[_0xa76343(0xcc)](){const _0x4a2549=_0xa76343;return this[_0x4a2549(0xc2)][_0x4a2549(0xe8)](_0x127e3f[_0x4a2549(0xdc)])[_0x4a2549(0xd3)]();}[_0xa76343(0xeb)](){const _0x3dbe10=_0xa76343;this['_injector']['get'](_0x127e3f[_0x3dbe10(0xdc)])[_0x3dbe10(0xe1)]();}[_0xa76343(0xd5)](){const _0x32b2a5=_0xa76343;this[_0x32b2a5(0xc2)][_0x32b2a5(0xe8)](_0x127e3f[_0x32b2a5(0xdc)])[_0x32b2a5(0xc8)]();}}_0x551d16[_0xa76343(0xe3)][_0xa76343(0xe6)](_0x41963a);}));function _0x2f2d(_0x4718ac,_0x4d8bb0){const _0x55d75e=_0x55d7();return _0x2f2d=function(_0x2f2d6e,_0x2ce1c2){_0x2f2d6e=_0x2f2d6e-0xbc;let _0x13303e=_0x55d75e[_0x2f2d6e];return _0x13303e;},_0x2f2d(_0x4718ac,_0x4d8bb0);}function _0x55d7(){const _0x16b409=['extend','fireEvent','get','4504130MqXyHD','4OcnIVt','connectMCP','FEventName','getAllTools','_initialize','82185tNRzxV','McpToolCallExecuted','getAllMCPTools','MCPEventService','_injector','callMCPTool','registerEventHandler','subscribe','MCPEventId','Event','disconnect','4507407lZLXiN','612528yCQlgG','type','getMCPConnectionStatus','McpToolCallReceived','3045kAZSGJ','_registerMCPFacadeEvents','UniverCoreFacade','594340jKhDta','amd','getConnectionStatus','toDisposable','disconnectMCP','executeTool','160093dcspCv','@univerjs-pro/mcp','function','validateMCPToolCall','event$','MCPConnectionController','data','McpConnectionStatusChanged','14576LjtAIe','McpToolCallFailed','connect','@univerjs/core/facade','FUniver','10MOuExj','IMCPToolRegistry'];_0x55d7=function(){return _0x16b409;};return _0x55d7();}