@univerjs-pro/mcp 0.12.3-experimental.20251205-e439e48 → 0.12.3-experimental.20251205-8c9a6bf

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 _0x6dd7(_0x1a8af8,_0x65e03c){_0x1a8af8=_0x1a8af8-0xb6;const _0x51a6d7=_0x51a6();let _0x6dd7ba=_0x51a6d7[_0x1a8af8];return _0x6dd7ba;}function _0x51a6(){const _0x2a766d=['event$','connectMCP','getAllMCPTools','_injector','disconnect','get','amd','135369ruHsFz','type','function','McpToolCallExecuted','Event','getAllTools','568835PQZztu','36RmiaaP','MCPEventService','UniverCore','UniverProMcp','connect','MCPConnectionController','McpConnectionStatusChanged','getMCPConnectionStatus','McpToolCallReceived','fireEvent','IMCPToolRegistry','FUniver','toDisposable','56HobXnP','7shGqNm','332564wIptQn','_registerMCPFacadeEvents','@univerjs/core','executeTool','subscribe','6261470jeoFhu','callMCPTool','McpToolCallFailed','54MZXjMj','extend','registerEventHandler','MCPEventId','3782283NtUaQu','@univerjs-pro/mcp','1274791wPICBf','52001213ejaieT','data','_initialize'];_0x51a6=function(){return _0x2a766d;};return _0x51a6();}(function(_0x2339a9,_0x38fe3f){const _0xc9ad40=_0x6dd7,_0x16f89c=_0x2339a9();while(!![]){try{const _0x312046=parseInt(_0xc9ad40(0xd1))/0x1*(parseInt(_0xc9ad40(0xd2))/0x2)+parseInt(_0xc9ad40(0xde))/0x3+-parseInt(_0xc9ad40(0xc3))/0x4*(-parseInt(_0xc9ad40(0xc2))/0x5)+-parseInt(_0xc9ad40(0xda))/0x6*(-parseInt(_0xc9ad40(0xe0))/0x7)+parseInt(_0xc9ad40(0xd0))/0x8*(-parseInt(_0xc9ad40(0xbc))/0x9)+parseInt(_0xc9ad40(0xd7))/0xa+-parseInt(_0xc9ad40(0xe1))/0xb;if(_0x312046===_0x38fe3f)break;else _0x16f89c['push'](_0x16f89c['shift']());}catch(_0x1289e6){_0x16f89c['push'](_0x16f89c['shift']());}}}(_0x51a6,0xd71ec),function(_0x42502b,_0x301351){const _0x18c270=_0x6dd7;typeof exports=='object'&&typeof module<'u'?_0x301351(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x18c270(0xbe)&&define[_0x18c270(0xbb)]?define([_0x18c270(0xdf),'@univerjs/core/facade',_0x18c270(0xd4)],_0x301351):(_0x42502b=typeof globalThis<'u'?globalThis:_0x42502b||self,_0x301351(_0x42502b[_0x18c270(0xc6)],_0x42502b['UniverCoreFacade'],_0x42502b[_0x18c270(0xc5)]));}(this,function(_0x388a83,_0x52e9cb,_0x3b7017){'use strict';const _0x108e34=_0x6dd7;class _0x93c178{get[_0x108e34(0xc9)](){const _0x3ce541=_0x108e34;return _0x388a83[_0x3ce541(0xdd)][_0x3ce541(0xc9)];}get[_0x108e34(0xcb)](){const _0x459da8=_0x108e34;return _0x388a83[_0x459da8(0xdd)]['McpToolCallReceived'];}get[_0x108e34(0xbf)](){const _0x2ed61e=_0x108e34;return _0x388a83[_0x2ed61e(0xdd)][_0x2ed61e(0xbf)];}get[_0x108e34(0xd9)](){const _0x599e5b=_0x108e34;return _0x388a83[_0x599e5b(0xdd)][_0x599e5b(0xd9)];}}_0x52e9cb['FEventName'][_0x108e34(0xdb)](_0x93c178);class _0x160886 extends _0x52e9cb[_0x108e34(0xce)]{[_0x108e34(0xe3)](_0xc3380b){const _0x2ebe6d=_0x108e34;this[_0x2ebe6d(0xd3)](_0xc3380b);}[_0x108e34(0xd3)](_0x4c02a3){const _0x2d5ebc=_0x108e34,_0x2ac96f=_0x4c02a3[_0x2d5ebc(0xba)](_0x388a83[_0x2d5ebc(0xc4)]);this[_0x2d5ebc(0xdc)](this['Event'][_0x2d5ebc(0xc9)],()=>_0x3b7017['toDisposable'](_0x2ac96f[_0x2d5ebc(0xe4)][_0x2d5ebc(0xd6)](_0x30991a=>{const _0x331fdb=_0x2d5ebc;_0x30991a['type']===_0x388a83['MCPEventId']['McpConnectionStatusChanged']&&this['fireEvent'](this['Event']['McpConnectionStatusChanged'],_0x30991a[_0x331fdb(0xe2)]);}))),this[_0x2d5ebc(0xdc)](this[_0x2d5ebc(0xc0)][_0x2d5ebc(0xcb)],()=>_0x3b7017[_0x2d5ebc(0xcf)](_0x2ac96f[_0x2d5ebc(0xe4)]['subscribe'](_0xf5b543=>{const _0x578ae6=_0x2d5ebc;_0xf5b543[_0x578ae6(0xbd)]===_0x388a83[_0x578ae6(0xdd)][_0x578ae6(0xcb)]&&this['fireEvent'](this[_0x578ae6(0xc0)][_0x578ae6(0xcb)],_0xf5b543[_0x578ae6(0xe2)]);}))),this[_0x2d5ebc(0xdc)](this[_0x2d5ebc(0xc0)][_0x2d5ebc(0xbf)],()=>_0x3b7017[_0x2d5ebc(0xcf)](_0x2ac96f[_0x2d5ebc(0xe4)][_0x2d5ebc(0xd6)](_0xf2893d=>{const _0x2992a3=_0x2d5ebc;_0xf2893d[_0x2992a3(0xbd)]===_0x388a83['MCPEventId'][_0x2992a3(0xbf)]&&this[_0x2992a3(0xcc)](this[_0x2992a3(0xc0)][_0x2992a3(0xbf)],_0xf2893d['data']);}))),this[_0x2d5ebc(0xdc)](this['Event'][_0x2d5ebc(0xd9)],()=>_0x3b7017[_0x2d5ebc(0xcf)](_0x2ac96f[_0x2d5ebc(0xe4)]['subscribe'](_0x465f72=>{const _0x2a63e8=_0x2d5ebc;_0x465f72[_0x2a63e8(0xbd)]===_0x388a83['MCPEventId']['McpToolCallFailed']&&this[_0x2a63e8(0xcc)](this['Event'][_0x2a63e8(0xd9)],_0x465f72[_0x2a63e8(0xe2)]);})));}['validateMCPToolCall'](_0x2ad7dd,_0x196852){const _0x427067=_0x108e34;return this[_0x427067(0xb8)][_0x427067(0xba)](_0x388a83[_0x427067(0xcd)])['validateToolCall'](_0x2ad7dd,_0x196852);}[_0x108e34(0xb7)](){const _0x4ea175=_0x108e34;return this[_0x4ea175(0xb8)]['get'](_0x388a83[_0x4ea175(0xcd)])[_0x4ea175(0xc1)]();}[_0x108e34(0xd8)](_0x4f05de,_0x1df9b1){const _0x3d4e7c=_0x108e34;return this[_0x3d4e7c(0xb8)]['get'](_0x388a83[_0x3d4e7c(0xcd)])[_0x3d4e7c(0xd5)](_0x4f05de,_0x1df9b1);}[_0x108e34(0xca)](){const _0x158086=_0x108e34;return this[_0x158086(0xb8)][_0x158086(0xba)](_0x388a83[_0x158086(0xc8)])['getConnectionStatus']();}[_0x108e34(0xb6)](){const _0x599648=_0x108e34;this[_0x599648(0xb8)]['get'](_0x388a83[_0x599648(0xc8)])[_0x599648(0xc7)]();}['disconnectMCP'](){const _0x44f2e5=_0x108e34;this[_0x44f2e5(0xb8)][_0x44f2e5(0xba)](_0x388a83[_0x44f2e5(0xc8)])[_0x44f2e5(0xb9)]();}}_0x52e9cb['FUniver'][_0x108e34(0xdb)](_0x160886);}));