@univerjs-pro/mcp 0.10.10 → 0.10.11

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 _0x56d3(_0x484495,_0x2a72d5){const _0x3f1b7a=_0x3f1b();return _0x56d3=function(_0x56d399,_0x4396ae){_0x56d399=_0x56d399-0x1e6;let _0x550bd0=_0x3f1b7a[_0x56d399];return _0x550bd0;},_0x56d3(_0x484495,_0x2a72d5);}function _0x3f1b(){const _0x417f79=['McpToolCallFailed','get','3385712pFOtUL','disconnect','validateToolCall','_registerMCPFacadeEvents','getConnectionStatus','339NENPrQ','44153GyIipA','amd','McpToolCallReceived','toDisposable','object','event$','UniverCoreFacade','type','subscribe','1299198uasKvz','executeTool','273552bKXPeh','disconnectMCP','data','_injector','MCPEventService','MCPEventId','5aKFcnp','getAllMCPTools','McpConnectionStatusChanged','extend','4530rvkpmZ','callMCPTool','connectMCP','MCPConnectionController','@univerjs/core/facade','McpToolCallExecuted','6528ntstby','3646224PfDszw','getAllTools','fireEvent','IMCPToolRegistry','Event','@univerjs-pro/mcp','FEventName','10VKKjDJ','getMCPConnectionStatus','function','FUniver','3591QqESpT','connect','35dpWSMn','registerEventHandler','validateMCPToolCall'];_0x3f1b=function(){return _0x417f79;};return _0x3f1b();}(function(_0x40d8b0,_0x3a70e9){const _0x351a79=_0x56d3,_0x166518=_0x40d8b0();while(!![]){try{const _0x3437e3=parseInt(_0x351a79(0x1e6))/0x1*(-parseInt(_0x351a79(0x209))/0x2)+parseInt(_0x351a79(0x219))/0x3*(parseInt(_0x351a79(0x201))/0x4)+-parseInt(_0x351a79(0x1f7))/0x5*(-parseInt(_0x351a79(0x1ef))/0x6)+parseInt(_0x351a79(0x20f))/0x7*(parseInt(_0x351a79(0x1f1))/0x8)+parseInt(_0x351a79(0x20d))/0x9*(-parseInt(_0x351a79(0x1fb))/0xa)+-parseInt(_0x351a79(0x214))/0xb+parseInt(_0x351a79(0x202))/0xc;if(_0x3437e3===_0x3a70e9)break;else _0x166518['push'](_0x166518['shift']());}catch(_0x221e01){_0x166518['push'](_0x166518['shift']());}}}(_0x3f1b,0x28a43),function(_0x4a1882,_0x37bdd7){const _0x4f42e5=_0x56d3;typeof exports==_0x4f42e5(0x1ea)&&typeof module<'u'?_0x37bdd7(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x4f42e5(0x20b)&&define[_0x4f42e5(0x1e7)]?define([_0x4f42e5(0x207),_0x4f42e5(0x1ff),'@univerjs/core'],_0x37bdd7):(_0x4a1882=typeof globalThis<'u'?globalThis:_0x4a1882||self,_0x37bdd7(_0x4a1882['UniverProMcp'],_0x4a1882[_0x4f42e5(0x1ec)],_0x4a1882['UniverCore']));}(this,function(_0x2fccc9,_0x37ecd3,_0x56a95d){'use strict';const _0x173eb8=_0x56d3;class _0x4764ad{get[_0x173eb8(0x1f9)](){const _0x51d8f9=_0x173eb8;return _0x2fccc9[_0x51d8f9(0x1f6)]['McpConnectionStatusChanged'];}get['McpToolCallReceived'](){const _0x202ba2=_0x173eb8;return _0x2fccc9[_0x202ba2(0x1f6)][_0x202ba2(0x1e8)];}get[_0x173eb8(0x200)](){const _0x206d70=_0x173eb8;return _0x2fccc9[_0x206d70(0x1f6)][_0x206d70(0x200)];}get[_0x173eb8(0x212)](){return _0x2fccc9['MCPEventId']['McpToolCallFailed'];}}_0x37ecd3[_0x173eb8(0x208)][_0x173eb8(0x1fa)](_0x4764ad);class _0x3edca7 extends _0x37ecd3[_0x173eb8(0x20c)]{['_initialize'](_0x2c5bae){this['_registerMCPFacadeEvents'](_0x2c5bae);}[_0x173eb8(0x217)](_0x4f85c4){const _0x3735e7=_0x173eb8,_0x4832df=_0x4f85c4[_0x3735e7(0x213)](_0x2fccc9[_0x3735e7(0x1f5)]);this[_0x3735e7(0x210)](this['Event'][_0x3735e7(0x1f9)],()=>_0x56a95d[_0x3735e7(0x1e9)](_0x4832df[_0x3735e7(0x1eb)][_0x3735e7(0x1ee)](_0x1aba0e=>{const _0x44552=_0x3735e7;_0x1aba0e['type']===_0x2fccc9[_0x44552(0x1f6)][_0x44552(0x1f9)]&&this[_0x44552(0x204)](this[_0x44552(0x206)]['McpConnectionStatusChanged'],_0x1aba0e[_0x44552(0x1f3)]);}))),this[_0x3735e7(0x210)](this[_0x3735e7(0x206)][_0x3735e7(0x1e8)],()=>_0x56a95d['toDisposable'](_0x4832df[_0x3735e7(0x1eb)][_0x3735e7(0x1ee)](_0x2ad600=>{const _0x2eeabf=_0x3735e7;_0x2ad600[_0x2eeabf(0x1ed)]===_0x2fccc9['MCPEventId'][_0x2eeabf(0x1e8)]&&this[_0x2eeabf(0x204)](this[_0x2eeabf(0x206)][_0x2eeabf(0x1e8)],_0x2ad600[_0x2eeabf(0x1f3)]);}))),this[_0x3735e7(0x210)](this[_0x3735e7(0x206)][_0x3735e7(0x200)],()=>_0x56a95d[_0x3735e7(0x1e9)](_0x4832df['event$'][_0x3735e7(0x1ee)](_0x5f42a1=>{const _0x363f49=_0x3735e7;_0x5f42a1[_0x363f49(0x1ed)]===_0x2fccc9[_0x363f49(0x1f6)][_0x363f49(0x200)]&&this[_0x363f49(0x204)](this[_0x363f49(0x206)][_0x363f49(0x200)],_0x5f42a1[_0x363f49(0x1f3)]);}))),this[_0x3735e7(0x210)](this['Event'][_0x3735e7(0x212)],()=>_0x56a95d[_0x3735e7(0x1e9)](_0x4832df[_0x3735e7(0x1eb)][_0x3735e7(0x1ee)](_0x4a76c4=>{const _0x560036=_0x3735e7;_0x4a76c4[_0x560036(0x1ed)]===_0x2fccc9['MCPEventId'][_0x560036(0x212)]&&this[_0x560036(0x204)](this[_0x560036(0x206)][_0x560036(0x212)],_0x4a76c4[_0x560036(0x1f3)]);})));}[_0x173eb8(0x211)](_0x1df198,_0x31f389){const _0x259495=_0x173eb8;return this[_0x259495(0x1f4)][_0x259495(0x213)](_0x2fccc9['IMCPToolRegistry'])[_0x259495(0x216)](_0x1df198,_0x31f389);}[_0x173eb8(0x1f8)](){const _0x1c5bdb=_0x173eb8;return this['_injector'][_0x1c5bdb(0x213)](_0x2fccc9[_0x1c5bdb(0x205)])[_0x1c5bdb(0x203)]();}[_0x173eb8(0x1fc)](_0x1ca975,_0x5d97c6){const _0x1002a2=_0x173eb8;return this[_0x1002a2(0x1f4)][_0x1002a2(0x213)](_0x2fccc9['IMCPToolRegistry'])[_0x1002a2(0x1f0)](_0x1ca975,_0x5d97c6);}[_0x173eb8(0x20a)](){const _0x1e7ccf=_0x173eb8;return this['_injector'][_0x1e7ccf(0x213)](_0x2fccc9[_0x1e7ccf(0x1fe)])[_0x1e7ccf(0x218)]();}[_0x173eb8(0x1fd)](){const _0x1bfc99=_0x173eb8;this[_0x1bfc99(0x1f4)][_0x1bfc99(0x213)](_0x2fccc9[_0x1bfc99(0x1fe)])[_0x1bfc99(0x20e)]();}[_0x173eb8(0x1f2)](){const _0x41cacf=_0x173eb8;this[_0x41cacf(0x1f4)][_0x41cacf(0x213)](_0x2fccc9[_0x41cacf(0x1fe)])[_0x41cacf(0x215)]();}}_0x37ecd3[_0x173eb8(0x20c)]['extend'](_0x3edca7);}));
1
+ function _0xd13d(_0x23afca,_0x5c2cdf){const _0x1d9436=_0x1d94();return _0xd13d=function(_0xd13de6,_0x18de42){_0xd13de6=_0xd13de6-0xc1;let _0x44d653=_0x1d9436[_0xd13de6];return _0x44d653;},_0xd13d(_0x23afca,_0x5c2cdf);}(function(_0x428bd5,_0x240ee6){const _0x139101=_0xd13d,_0x231965=_0x428bd5();while(!![]){try{const _0xab1213=parseInt(_0x139101(0xcb))/0x1*(parseInt(_0x139101(0xe9))/0x2)+-parseInt(_0x139101(0xc9))/0x3+parseInt(_0x139101(0xed))/0x4+-parseInt(_0x139101(0xeb))/0x5+parseInt(_0x139101(0xe1))/0x6*(-parseInt(_0x139101(0xd6))/0x7)+parseInt(_0x139101(0xc2))/0x8+-parseInt(_0x139101(0xc1))/0x9*(parseInt(_0x139101(0xd2))/0xa);if(_0xab1213===_0x240ee6)break;else _0x231965['push'](_0x231965['shift']());}catch(_0x1106e4){_0x231965['push'](_0x231965['shift']());}}}(_0x1d94,0x4419d),function(_0x1c9930,_0x5cb852){const _0x6ac8b7=_0xd13d;typeof exports==_0x6ac8b7(0xdb)&&typeof module<'u'?_0x5cb852(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define=='function'&&define[_0x6ac8b7(0xce)]?define(['@univerjs-pro/mcp',_0x6ac8b7(0xe2),_0x6ac8b7(0xc7)],_0x5cb852):(_0x1c9930=typeof globalThis<'u'?globalThis:_0x1c9930||self,_0x5cb852(_0x1c9930[_0x6ac8b7(0xea)],_0x1c9930[_0x6ac8b7(0xdf)],_0x1c9930['UniverCore']));}(this,function(_0x5145d2,_0x2ab97c,_0x527db8){'use strict';const _0x219191=_0xd13d;class _0x1bb8bc{get[_0x219191(0xee)](){const _0x4a1c96=_0x219191;return _0x5145d2['MCPEventId'][_0x4a1c96(0xee)];}get[_0x219191(0xe3)](){return _0x5145d2['MCPEventId']['McpToolCallReceived'];}get[_0x219191(0xd8)](){const _0x3166db=_0x219191;return _0x5145d2[_0x3166db(0xe7)][_0x3166db(0xd8)];}get[_0x219191(0xe5)](){const _0x1af08b=_0x219191;return _0x5145d2[_0x1af08b(0xe7)][_0x1af08b(0xe5)];}}_0x2ab97c[_0x219191(0xc3)][_0x219191(0xd1)](_0x1bb8bc);class _0x3ff95 extends _0x2ab97c[_0x219191(0xd7)]{[_0x219191(0xde)](_0x45c02b){const _0x1422a3=_0x219191;this[_0x1422a3(0xd3)](_0x45c02b);}['_registerMCPFacadeEvents'](_0x229867){const _0x35637c=_0x219191,_0x3086c1=_0x229867[_0x35637c(0xd0)](_0x5145d2[_0x35637c(0xdd)]);this[_0x35637c(0xe8)](this[_0x35637c(0xdc)]['McpConnectionStatusChanged'],()=>_0x527db8[_0x35637c(0xe4)](_0x3086c1[_0x35637c(0xe0)][_0x35637c(0xc4)](_0x37ea26=>{const _0x197b4f=_0x35637c;_0x37ea26['type']===_0x5145d2[_0x197b4f(0xe7)]['McpConnectionStatusChanged']&&this['fireEvent'](this[_0x197b4f(0xdc)][_0x197b4f(0xee)],_0x37ea26[_0x197b4f(0xda)]);}))),this['registerEventHandler'](this[_0x35637c(0xdc)]['McpToolCallReceived'],()=>_0x527db8[_0x35637c(0xe4)](_0x3086c1[_0x35637c(0xe0)][_0x35637c(0xc4)](_0xc0f755=>{const _0x197da9=_0x35637c;_0xc0f755[_0x197da9(0xcc)]===_0x5145d2[_0x197da9(0xe7)][_0x197da9(0xe3)]&&this['fireEvent'](this['Event'][_0x197da9(0xe3)],_0xc0f755['data']);}))),this[_0x35637c(0xe8)](this[_0x35637c(0xdc)]['McpToolCallExecuted'],()=>_0x527db8['toDisposable'](_0x3086c1['event$'][_0x35637c(0xc4)](_0x399ca7=>{const _0x179bc1=_0x35637c;_0x399ca7[_0x179bc1(0xcc)]===_0x5145d2[_0x179bc1(0xe7)]['McpToolCallExecuted']&&this[_0x179bc1(0xc5)](this[_0x179bc1(0xdc)]['McpToolCallExecuted'],_0x399ca7[_0x179bc1(0xda)]);}))),this[_0x35637c(0xe8)](this['Event'][_0x35637c(0xe5)],()=>_0x527db8['toDisposable'](_0x3086c1[_0x35637c(0xe0)][_0x35637c(0xc4)](_0x4af759=>{const _0x523c49=_0x35637c;_0x4af759[_0x523c49(0xcc)]===_0x5145d2[_0x523c49(0xe7)][_0x523c49(0xe5)]&&this['fireEvent'](this[_0x523c49(0xdc)][_0x523c49(0xe5)],_0x4af759[_0x523c49(0xda)]);})));}[_0x219191(0xd4)](_0x4a3f01,_0x3a98b2){const _0x293bc8=_0x219191;return this[_0x293bc8(0xcd)][_0x293bc8(0xd0)](_0x5145d2[_0x293bc8(0xc8)])[_0x293bc8(0xe6)](_0x4a3f01,_0x3a98b2);}[_0x219191(0xca)](){const _0x43f072=_0x219191;return this[_0x43f072(0xcd)]['get'](_0x5145d2[_0x43f072(0xc8)])[_0x43f072(0xec)]();}[_0x219191(0xc6)](_0x2d9b00,_0x410f86){const _0x13d4c3=_0x219191;return this[_0x13d4c3(0xcd)][_0x13d4c3(0xd0)](_0x5145d2[_0x13d4c3(0xc8)])['executeTool'](_0x2d9b00,_0x410f86);}['getMCPConnectionStatus'](){const _0x1b7030=_0x219191;return this[_0x1b7030(0xcd)][_0x1b7030(0xd0)](_0x5145d2[_0x1b7030(0xd5)])['getConnectionStatus']();}['connectMCP'](){const _0x400b2e=_0x219191;this['_injector'][_0x400b2e(0xd0)](_0x5145d2[_0x400b2e(0xd5)])['connect']();}[_0x219191(0xd9)](){const _0x27e22e=_0x219191;this[_0x27e22e(0xcd)][_0x27e22e(0xd0)](_0x5145d2['MCPConnectionController'])[_0x27e22e(0xcf)]();}}_0x2ab97c[_0x219191(0xd7)][_0x219191(0xd1)](_0x3ff95);}));function _0x1d94(){const _0x170fb6=['UniverProMcp','1504100MUcpwc','getAllTools','1912164mbQhCX','McpConnectionStatusChanged','4149KPDOOU','3136344EujVjX','FEventName','subscribe','fireEvent','callMCPTool','@univerjs/core','IMCPToolRegistry','1168884czgtGt','getAllMCPTools','27sGIHdu','type','_injector','amd','disconnect','get','extend','2260WfZqYq','_registerMCPFacadeEvents','validateMCPToolCall','MCPConnectionController','286573MvpHzH','FUniver','McpToolCallExecuted','disconnectMCP','data','object','Event','MCPEventService','_initialize','UniverCoreFacade','event$','30ozITTv','@univerjs/core/facade','McpToolCallReceived','toDisposable','McpToolCallFailed','validateToolCall','MCPEventId','registerEventHandler','30236URMQyV'];_0x1d94=function(){return _0x170fb6;};return _0x1d94();}