@univerjs-pro/mcp 0.12.3-experimental.20251205-e439e48 → 0.12.3-experimental.20251205-71d07c3

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 _0x29a2(_0x20f5ca,_0x5b21dd){_0x20f5ca=_0x20f5ca-0xe3;const _0x2d1749=_0x2d17();let _0x29a288=_0x2d1749[_0x20f5ca];return _0x29a288;}(function(_0x5ae382,_0x21ceb2){const _0x1cea2b=_0x29a2,_0x5b74b5=_0x5ae382();while(!![]){try{const _0xc44921=-parseInt(_0x1cea2b(0x109))/0x1+-parseInt(_0x1cea2b(0x10c))/0x2*(-parseInt(_0x1cea2b(0xe6))/0x3)+-parseInt(_0x1cea2b(0xfc))/0x4+-parseInt(_0x1cea2b(0x105))/0x5+parseInt(_0x1cea2b(0xfd))/0x6+parseInt(_0x1cea2b(0x10d))/0x7+parseInt(_0x1cea2b(0xe4))/0x8;if(_0xc44921===_0x21ceb2)break;else _0x5b74b5['push'](_0x5b74b5['shift']());}catch(_0x226c7e){_0x5b74b5['push'](_0x5b74b5['shift']());}}}(_0x2d17,0x839cc),function(_0x4e7e89,_0x3d565d){const _0x55c46a=_0x29a2;typeof exports=='object'&&typeof module<'u'?_0x3d565d(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x55c46a(0x106)&&define['amd']?define([_0x55c46a(0xf0),_0x55c46a(0xf9),_0x55c46a(0xef)],_0x3d565d):(_0x4e7e89=typeof globalThis<'u'?globalThis:_0x4e7e89||self,_0x3d565d(_0x4e7e89[_0x55c46a(0x110)],_0x4e7e89['UniverCoreFacade'],_0x4e7e89[_0x55c46a(0xf8)]));}(this,function(_0x4f5fae,_0x110235,_0x1e8c10){'use strict';const _0x111c5c=_0x29a2;class _0x28f321{get['McpConnectionStatusChanged'](){return _0x4f5fae['MCPEventId']['McpConnectionStatusChanged'];}get[_0x111c5c(0xe8)](){const _0x598d2a=_0x111c5c;return _0x4f5fae[_0x598d2a(0x10b)][_0x598d2a(0xe8)];}get[_0x111c5c(0xf3)](){const _0x3a26c8=_0x111c5c;return _0x4f5fae[_0x3a26c8(0x10b)]['McpToolCallExecuted'];}get['McpToolCallFailed'](){const _0x33f0c2=_0x111c5c;return _0x4f5fae[_0x33f0c2(0x10b)][_0x33f0c2(0x101)];}}_0x110235[_0x111c5c(0x108)][_0x111c5c(0xfe)](_0x28f321);class _0x4663a8 extends _0x110235[_0x111c5c(0xea)]{[_0x111c5c(0x100)](_0x5c0c8d){const _0x43878c=_0x111c5c;this[_0x43878c(0x10a)](_0x5c0c8d);}[_0x111c5c(0x10a)](_0x322319){const _0x160dd4=_0x111c5c,_0x379596=_0x322319[_0x160dd4(0x10e)](_0x4f5fae['MCPEventService']);this['registerEventHandler'](this[_0x160dd4(0xfa)][_0x160dd4(0xeb)],()=>_0x1e8c10[_0x160dd4(0xf7)](_0x379596[_0x160dd4(0xf2)]['subscribe'](_0x1a3a54=>{const _0x40a2e5=_0x160dd4;_0x1a3a54[_0x40a2e5(0xf5)]===_0x4f5fae['MCPEventId'][_0x40a2e5(0xeb)]&&this['fireEvent'](this[_0x40a2e5(0xfa)][_0x40a2e5(0xeb)],_0x1a3a54[_0x40a2e5(0xf6)]);}))),this[_0x160dd4(0xe3)](this[_0x160dd4(0xfa)][_0x160dd4(0xe8)],()=>_0x1e8c10['toDisposable'](_0x379596[_0x160dd4(0xf2)]['subscribe'](_0x2dd4b1=>{const _0x300418=_0x160dd4;_0x2dd4b1[_0x300418(0xf5)]===_0x4f5fae[_0x300418(0x10b)]['McpToolCallReceived']&&this[_0x300418(0x10f)](this[_0x300418(0xfa)][_0x300418(0xe8)],_0x2dd4b1[_0x300418(0xf6)]);}))),this[_0x160dd4(0xe3)](this[_0x160dd4(0xfa)][_0x160dd4(0xf3)],()=>_0x1e8c10[_0x160dd4(0xf7)](_0x379596[_0x160dd4(0xf2)][_0x160dd4(0xec)](_0x38d211=>{const _0x123623=_0x160dd4;_0x38d211[_0x123623(0xf5)]===_0x4f5fae['MCPEventId']['McpToolCallExecuted']&&this[_0x123623(0x10f)](this[_0x123623(0xfa)][_0x123623(0xf3)],_0x38d211['data']);}))),this[_0x160dd4(0xe3)](this[_0x160dd4(0xfa)][_0x160dd4(0x101)],()=>_0x1e8c10[_0x160dd4(0xf7)](_0x379596['event$'][_0x160dd4(0xec)](_0x46f2d5=>{const _0x52db19=_0x160dd4;_0x46f2d5[_0x52db19(0xf5)]===_0x4f5fae[_0x52db19(0x10b)]['McpToolCallFailed']&&this[_0x52db19(0x10f)](this[_0x52db19(0xfa)][_0x52db19(0x101)],_0x46f2d5[_0x52db19(0xf6)]);})));}[_0x111c5c(0xee)](_0x3547e9,_0x570ba4){const _0x133990=_0x111c5c;return this['_injector']['get'](_0x4f5fae['IMCPToolRegistry'])[_0x133990(0x103)](_0x3547e9,_0x570ba4);}[_0x111c5c(0xed)](){const _0x230d43=_0x111c5c;return this[_0x230d43(0xe5)][_0x230d43(0x10e)](_0x4f5fae[_0x230d43(0xf1)])[_0x230d43(0x104)]();}[_0x111c5c(0xff)](_0x109e6b,_0x1e1eed){const _0x2cee96=_0x111c5c;return this['_injector']['get'](_0x4f5fae[_0x2cee96(0xf1)])[_0x2cee96(0x107)](_0x109e6b,_0x1e1eed);}[_0x111c5c(0xe9)](){const _0x23fca8=_0x111c5c;return this['_injector'][_0x23fca8(0x10e)](_0x4f5fae[_0x23fca8(0xf4)])['getConnectionStatus']();}[_0x111c5c(0xe7)](){const _0x2a5f67=_0x111c5c;this[_0x2a5f67(0xe5)]['get'](_0x4f5fae['MCPConnectionController'])['connect']();}[_0x111c5c(0xfb)](){const _0x3154e6=_0x111c5c;this[_0x3154e6(0xe5)][_0x3154e6(0x10e)](_0x4f5fae[_0x3154e6(0xf4)])[_0x3154e6(0x102)]();}}_0x110235['FUniver'][_0x111c5c(0xfe)](_0x4663a8);}));function _0x2d17(){const _0x9ae3c8=['3814902UihqNI','extend','callMCPTool','_initialize','McpToolCallFailed','disconnect','validateToolCall','getAllTools','4144830quWhAC','function','executeTool','FEventName','692385orKtTy','_registerMCPFacadeEvents','MCPEventId','663348mLHgdI','2508247hkPoXO','get','fireEvent','UniverProMcp','registerEventHandler','6820584pepZVr','_injector','9wYVVFS','connectMCP','McpToolCallReceived','getMCPConnectionStatus','FUniver','McpConnectionStatusChanged','subscribe','getAllMCPTools','validateMCPToolCall','@univerjs/core','@univerjs-pro/mcp','IMCPToolRegistry','event$','McpToolCallExecuted','MCPConnectionController','type','data','toDisposable','UniverCore','@univerjs/core/facade','Event','disconnectMCP','3125192DoeeRc'];_0x2d17=function(){return _0x9ae3c8;};return _0x2d17();}
1
+ function _0x4dd5(){const _0x56544b=['21860TQOwDC','4377104LJXfAH','data','_initialize','McpConnectionStatusChanged','16295mfvxXA','_injector','@univerjs-pro/mcp','getMCPConnectionStatus','@univerjs/core','disconnectMCP','connectMCP','@univerjs/core/facade','subscribe','3740412peqcVj','McpToolCallReceived','extend','callMCPTool','4gbSyvH','FUniver','MCPEventId','toDisposable','registerEventHandler','validateMCPToolCall','UniverProMcp','function','get','executeTool','getAllMCPTools','IMCPToolRegistry','192630LicqSV','18008199AQZpPs','event$','McpToolCallExecuted','getConnectionStatus','130GbiAHF','_registerMCPFacadeEvents','object','fireEvent','McpToolCallFailed','FEventName','disconnect','UniverCoreFacade','MCPConnectionController','7gEDpnq','type','2634860aEwJXI','Event','1989HNBUsc'];_0x4dd5=function(){return _0x56544b;};return _0x4dd5();}function _0x195e(_0x4d1958,_0x2c9e52){_0x4d1958=_0x4d1958-0x136;const _0x4dd59a=_0x4dd5();let _0x195e78=_0x4dd59a[_0x4d1958];return _0x195e78;}(function(_0x59e664,_0x5760f8){const _0x3065de=_0x195e,_0x5d1195=_0x59e664();while(!![]){try{const _0x413070=parseInt(_0x3065de(0x157))/0x1*(-parseInt(_0x3065de(0x144))/0x2)+-parseInt(_0x3065de(0x13f))/0x3+parseInt(_0x3065de(0x164))/0x4*(-parseInt(_0x3065de(0x14f))/0x5)+parseInt(_0x3065de(0x160))/0x6+-parseInt(_0x3065de(0x14d))/0x7*(parseInt(_0x3065de(0x153))/0x8)+-parseInt(_0x3065de(0x151))/0x9*(-parseInt(_0x3065de(0x152))/0xa)+parseInt(_0x3065de(0x140))/0xb;if(_0x413070===_0x5760f8)break;else _0x5d1195['push'](_0x5d1195['shift']());}catch(_0x3abe60){_0x5d1195['push'](_0x5d1195['shift']());}}}(_0x4dd5,0x8554a),function(_0x34ed26,_0x184091){const _0x25a26e=_0x195e;typeof exports==_0x25a26e(0x146)&&typeof module<'u'?_0x184091(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x25a26e(0x13a)&&define['amd']?define([_0x25a26e(0x159),_0x25a26e(0x15e),_0x25a26e(0x15b)],_0x184091):(_0x34ed26=typeof globalThis<'u'?globalThis:_0x34ed26||self,_0x184091(_0x34ed26[_0x25a26e(0x139)],_0x34ed26[_0x25a26e(0x14b)],_0x34ed26['UniverCore']));}(this,function(_0x48298a,_0x16dcb9,_0x5619d5){'use strict';const _0x479cfb=_0x195e;class _0x4b92f3{get[_0x479cfb(0x156)](){const _0x2a4694=_0x479cfb;return _0x48298a['MCPEventId'][_0x2a4694(0x156)];}get[_0x479cfb(0x161)](){const _0x1fa13e=_0x479cfb;return _0x48298a[_0x1fa13e(0x166)]['McpToolCallReceived'];}get[_0x479cfb(0x142)](){const _0x1c50b6=_0x479cfb;return _0x48298a[_0x1c50b6(0x166)][_0x1c50b6(0x142)];}get['McpToolCallFailed'](){const _0x3e8eac=_0x479cfb;return _0x48298a[_0x3e8eac(0x166)][_0x3e8eac(0x148)];}}_0x16dcb9[_0x479cfb(0x149)]['extend'](_0x4b92f3);class _0x331b24 extends _0x16dcb9['FUniver']{[_0x479cfb(0x155)](_0x1f10c7){const _0x5e9329=_0x479cfb;this[_0x5e9329(0x145)](_0x1f10c7);}[_0x479cfb(0x145)](_0x4c1466){const _0x1901eb=_0x479cfb,_0x3de5e6=_0x4c1466['get'](_0x48298a['MCPEventService']);this[_0x1901eb(0x137)](this[_0x1901eb(0x150)][_0x1901eb(0x156)],()=>_0x5619d5['toDisposable'](_0x3de5e6[_0x1901eb(0x141)][_0x1901eb(0x15f)](_0x3b1262=>{const _0x2855d5=_0x1901eb;_0x3b1262[_0x2855d5(0x14e)]===_0x48298a['MCPEventId']['McpConnectionStatusChanged']&&this[_0x2855d5(0x147)](this[_0x2855d5(0x150)]['McpConnectionStatusChanged'],_0x3b1262[_0x2855d5(0x154)]);}))),this['registerEventHandler'](this[_0x1901eb(0x150)]['McpToolCallReceived'],()=>_0x5619d5[_0x1901eb(0x136)](_0x3de5e6[_0x1901eb(0x141)]['subscribe'](_0x3d3bc7=>{const _0x3e6654=_0x1901eb;_0x3d3bc7[_0x3e6654(0x14e)]===_0x48298a['MCPEventId'][_0x3e6654(0x161)]&&this[_0x3e6654(0x147)](this[_0x3e6654(0x150)]['McpToolCallReceived'],_0x3d3bc7[_0x3e6654(0x154)]);}))),this[_0x1901eb(0x137)](this[_0x1901eb(0x150)]['McpToolCallExecuted'],()=>_0x5619d5[_0x1901eb(0x136)](_0x3de5e6['event$'][_0x1901eb(0x15f)](_0x19824f=>{const _0x6d261b=_0x1901eb;_0x19824f['type']===_0x48298a[_0x6d261b(0x166)]['McpToolCallExecuted']&&this[_0x6d261b(0x147)](this['Event'][_0x6d261b(0x142)],_0x19824f[_0x6d261b(0x154)]);}))),this[_0x1901eb(0x137)](this[_0x1901eb(0x150)][_0x1901eb(0x148)],()=>_0x5619d5[_0x1901eb(0x136)](_0x3de5e6['event$'][_0x1901eb(0x15f)](_0x481562=>{const _0x2b42a2=_0x1901eb;_0x481562[_0x2b42a2(0x14e)]===_0x48298a['MCPEventId'][_0x2b42a2(0x148)]&&this[_0x2b42a2(0x147)](this[_0x2b42a2(0x150)][_0x2b42a2(0x148)],_0x481562[_0x2b42a2(0x154)]);})));}[_0x479cfb(0x138)](_0x3007a2,_0x134a31){const _0x12f6af=_0x479cfb;return this['_injector'][_0x12f6af(0x13b)](_0x48298a[_0x12f6af(0x13e)])['validateToolCall'](_0x3007a2,_0x134a31);}[_0x479cfb(0x13d)](){const _0x53ce25=_0x479cfb;return this[_0x53ce25(0x158)][_0x53ce25(0x13b)](_0x48298a[_0x53ce25(0x13e)])['getAllTools']();}[_0x479cfb(0x163)](_0x1140df,_0xf6828c){const _0xd8017d=_0x479cfb;return this[_0xd8017d(0x158)][_0xd8017d(0x13b)](_0x48298a[_0xd8017d(0x13e)])[_0xd8017d(0x13c)](_0x1140df,_0xf6828c);}[_0x479cfb(0x15a)](){const _0x5a3dcc=_0x479cfb;return this['_injector'][_0x5a3dcc(0x13b)](_0x48298a[_0x5a3dcc(0x14c)])[_0x5a3dcc(0x143)]();}[_0x479cfb(0x15d)](){const _0x28366f=_0x479cfb;this[_0x28366f(0x158)]['get'](_0x48298a[_0x28366f(0x14c)])['connect']();}[_0x479cfb(0x15c)](){const _0x19c061=_0x479cfb;this[_0x19c061(0x158)]['get'](_0x48298a[_0x19c061(0x14c)])[_0x19c061(0x14a)]();}}_0x16dcb9[_0x479cfb(0x165)][_0x479cfb(0x162)](_0x331b24);}));