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

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 _0x4d63(_0x5d3806,_0x26ff2f){const _0x720a84=_0x720a();return _0x4d63=function(_0x4d631a,_0x37afa4){_0x4d631a=_0x4d631a-0xd1;let _0x294907=_0x720a84[_0x4d631a];return _0x294907;},_0x4d63(_0x5d3806,_0x26ff2f);}function _0x720a(){const _0x2d8897=['McpToolCallReceived','McpToolCallExecuted','13058kJUaxd','209Ntbjpw','validateMCPToolCall','extend','1364484kyHmUt','284NGRUlv','getAllTools','5698338EUwrtQ','7HGizZe','Event','object','UniverProMcp','disconnectMCP','callMCPTool','@univerjs/core/facade','1295224nkzEBO','MCPEventService','2873055sqyCfZ','_registerMCPFacadeEvents','25524zhGKFm','405378ELhhwF','FUniver','@univerjs-pro/mcp','57sSHVgE','toDisposable','_initialize','_injector','registerEventHandler','connect','connectMCP','fireEvent','data','disconnect','McpToolCallFailed','MCPEventId','function','MCPConnectionController','subscribe','110crvryi','IMCPToolRegistry','event$','McpConnectionStatusChanged','getMCPConnectionStatus','type','get'];_0x720a=function(){return _0x2d8897;};return _0x720a();}(function(_0x4e756d,_0x2f6806){const _0x2f8d10=_0x4d63,_0x78bc92=_0x4e756d();while(!![]){try{const _0x39ee41=-parseInt(_0x2f8d10(0xf3))/0x1*(parseInt(_0x2f8d10(0xdc))/0x2)+parseInt(_0x2f8d10(0xef))/0x3*(-parseInt(_0x2f8d10(0xe1))/0x4)+parseInt(_0x2f8d10(0xed))/0x5+parseInt(_0x2f8d10(0xe3))/0x6*(-parseInt(_0x2f8d10(0xe4))/0x7)+parseInt(_0x2f8d10(0xeb))/0x8+-parseInt(_0x2f8d10(0xf0))/0x9*(parseInt(_0x2f8d10(0xd3))/0xa)+parseInt(_0x2f8d10(0xdd))/0xb*(parseInt(_0x2f8d10(0xe0))/0xc);if(_0x39ee41===_0x2f6806)break;else _0x78bc92['push'](_0x78bc92['shift']());}catch(_0x466d82){_0x78bc92['push'](_0x78bc92['shift']());}}}(_0x720a,0x74195),function(_0x584250,_0x5c1a7c){const _0x15eba3=_0x4d63;typeof exports==_0x15eba3(0xe6)&&typeof module<'u'?_0x5c1a7c(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x15eba3(0xff)&&define['amd']?define([_0x15eba3(0xf2),_0x15eba3(0xea),'@univerjs/core'],_0x5c1a7c):(_0x584250=typeof globalThis<'u'?globalThis:_0x584250||self,_0x5c1a7c(_0x584250[_0x15eba3(0xe7)],_0x584250['UniverCoreFacade'],_0x584250['UniverCore']));}(this,function(_0x1a9b5d,_0x2ba270,_0x4dbc0e){'use strict';const _0x17b341=_0x4d63;class _0x1bd628{get[_0x17b341(0xd6)](){const _0x24b3ed=_0x17b341;return _0x1a9b5d['MCPEventId'][_0x24b3ed(0xd6)];}get[_0x17b341(0xda)](){return _0x1a9b5d['MCPEventId']['McpToolCallReceived'];}get[_0x17b341(0xdb)](){const _0x4b6aca=_0x17b341;return _0x1a9b5d[_0x4b6aca(0xfe)][_0x4b6aca(0xdb)];}get[_0x17b341(0xfd)](){const _0x8f055a=_0x17b341;return _0x1a9b5d['MCPEventId'][_0x8f055a(0xfd)];}}_0x2ba270['FEventName'][_0x17b341(0xdf)](_0x1bd628);class _0xe8adb3 extends _0x2ba270['FUniver']{[_0x17b341(0xf5)](_0x2a0853){const _0x23d128=_0x17b341;this[_0x23d128(0xee)](_0x2a0853);}[_0x17b341(0xee)](_0x52c9de){const _0x2429a0=_0x17b341,_0x5543bc=_0x52c9de[_0x2429a0(0xd9)](_0x1a9b5d[_0x2429a0(0xec)]);this['registerEventHandler'](this[_0x2429a0(0xe5)]['McpConnectionStatusChanged'],()=>_0x4dbc0e['toDisposable'](_0x5543bc[_0x2429a0(0xd5)][_0x2429a0(0xd2)](_0x53d7b7=>{const _0x109696=_0x2429a0;_0x53d7b7[_0x109696(0xd8)]===_0x1a9b5d[_0x109696(0xfe)][_0x109696(0xd6)]&&this[_0x109696(0xfa)](this[_0x109696(0xe5)][_0x109696(0xd6)],_0x53d7b7['data']);}))),this['registerEventHandler'](this[_0x2429a0(0xe5)][_0x2429a0(0xda)],()=>_0x4dbc0e['toDisposable'](_0x5543bc[_0x2429a0(0xd5)][_0x2429a0(0xd2)](_0x1237cf=>{const _0x2b5599=_0x2429a0;_0x1237cf[_0x2b5599(0xd8)]===_0x1a9b5d[_0x2b5599(0xfe)][_0x2b5599(0xda)]&&this[_0x2b5599(0xfa)](this['Event']['McpToolCallReceived'],_0x1237cf[_0x2b5599(0xfb)]);}))),this[_0x2429a0(0xf7)](this[_0x2429a0(0xe5)]['McpToolCallExecuted'],()=>_0x4dbc0e['toDisposable'](_0x5543bc[_0x2429a0(0xd5)][_0x2429a0(0xd2)](_0x3bacd0=>{const _0x99dab6=_0x2429a0;_0x3bacd0[_0x99dab6(0xd8)]===_0x1a9b5d[_0x99dab6(0xfe)][_0x99dab6(0xdb)]&&this['fireEvent'](this[_0x99dab6(0xe5)][_0x99dab6(0xdb)],_0x3bacd0[_0x99dab6(0xfb)]);}))),this['registerEventHandler'](this[_0x2429a0(0xe5)][_0x2429a0(0xfd)],()=>_0x4dbc0e[_0x2429a0(0xf4)](_0x5543bc[_0x2429a0(0xd5)][_0x2429a0(0xd2)](_0x236a9d=>{const _0x1e8d5b=_0x2429a0;_0x236a9d[_0x1e8d5b(0xd8)]===_0x1a9b5d['MCPEventId']['McpToolCallFailed']&&this[_0x1e8d5b(0xfa)](this[_0x1e8d5b(0xe5)][_0x1e8d5b(0xfd)],_0x236a9d['data']);})));}[_0x17b341(0xde)](_0x4db0a3,_0x4ed2a8){const _0x1f830f=_0x17b341;return this[_0x1f830f(0xf6)][_0x1f830f(0xd9)](_0x1a9b5d[_0x1f830f(0xd4)])['validateToolCall'](_0x4db0a3,_0x4ed2a8);}['getAllMCPTools'](){const _0x4081cb=_0x17b341;return this[_0x4081cb(0xf6)][_0x4081cb(0xd9)](_0x1a9b5d['IMCPToolRegistry'])[_0x4081cb(0xe2)]();}[_0x17b341(0xe9)](_0x597a18,_0x2f1f98){const _0x1412fa=_0x17b341;return this[_0x1412fa(0xf6)][_0x1412fa(0xd9)](_0x1a9b5d[_0x1412fa(0xd4)])['executeTool'](_0x597a18,_0x2f1f98);}[_0x17b341(0xd7)](){const _0x2c19bb=_0x17b341;return this[_0x2c19bb(0xf6)][_0x2c19bb(0xd9)](_0x1a9b5d[_0x2c19bb(0xd1)])['getConnectionStatus']();}[_0x17b341(0xf9)](){const _0x3b0506=_0x17b341;this[_0x3b0506(0xf6)][_0x3b0506(0xd9)](_0x1a9b5d[_0x3b0506(0xd1)])[_0x3b0506(0xf8)]();}[_0x17b341(0xe8)](){const _0x1fcffb=_0x17b341;this[_0x1fcffb(0xf6)][_0x1fcffb(0xd9)](_0x1a9b5d[_0x1fcffb(0xd1)])[_0x1fcffb(0xfc)]();}}_0x2ba270[_0x17b341(0xf1)]['extend'](_0xe8adb3);}));
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);}));