@univerjs-pro/mcp 0.12.4-experimental.20251211-e01e32a → 0.12.4-insiders.20251212-6c41730

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 _0x2c73(_0x2748c0,_0x21b54c){_0x2748c0=_0x2748c0-0x9e;const _0x5a0ec2=_0x5a0e();let _0x2c7347=_0x5a0ec2[_0x2748c0];return _0x2c7347;}function _0x5a0e(){const _0x137052=['2020205uYvnrr','toDisposable','fireEvent','IMCPToolRegistry','MCPConnectionController','561894lppwUm','extend','@univerjs-pro/mcp','executeTool','event$','subscribe','3191220DazeIk','disconnect','connectMCP','MCPEventService','11HFGJQZ','McpToolCallReceived','UniverCoreFacade','McpToolCallFailed','4FRmhly','callMCPTool','McpConnectionStatusChanged','get','_injector','MCPEventId','969975iPnESD','registerEventHandler','@univerjs/core/facade','function','getMCPConnectionStatus','Event','FUniver','McpToolCallExecuted','1326783WNMPeu','getAllMCPTools','_initialize','28faZCUs','_registerMCPFacadeEvents','type','4277856zNJWyX','object','2rqMAbk','506370agbmUo','amd','validateMCPToolCall','UniverProMcp','data'];_0x5a0e=function(){return _0x137052;};return _0x5a0e();}(function(_0x528d66,_0x2ba0c2){const _0xa8e07b=_0x2c73,_0x636ef2=_0x528d66();while(!![]){try{const _0x302dd8=parseInt(_0xa8e07b(0xaf))/0x1+-parseInt(_0xa8e07b(0xa4))/0x2*(-parseInt(_0xa8e07b(0xcb))/0x3)+-parseInt(_0xa8e07b(0xbd))/0x4*(parseInt(_0xa8e07b(0xaa))/0x5)+-parseInt(_0xa8e07b(0xa5))/0x6*(parseInt(_0xa8e07b(0x9f))/0x7)+parseInt(_0xa8e07b(0xa2))/0x8+-parseInt(_0xa8e07b(0xc3))/0x9+-parseInt(_0xa8e07b(0xb5))/0xa*(parseInt(_0xa8e07b(0xb9))/0xb);if(_0x302dd8===_0x2ba0c2)break;else _0x636ef2['push'](_0x636ef2['shift']());}catch(_0x4b710c){_0x636ef2['push'](_0x636ef2['shift']());}}}(_0x5a0e,0x5a6c1),function(_0x50496a,_0x35947b){const _0x24475e=_0x2c73;typeof exports==_0x24475e(0xa3)&&typeof module<'u'?_0x35947b(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x24475e(0xc6)&&define[_0x24475e(0xa6)]?define([_0x24475e(0xb1),_0x24475e(0xc5),'@univerjs/core'],_0x35947b):(_0x50496a=typeof globalThis<'u'?globalThis:_0x50496a||self,_0x35947b(_0x50496a[_0x24475e(0xa8)],_0x50496a[_0x24475e(0xbb)],_0x50496a['UniverCore']));}(this,function(_0x236f7b,_0x22dea2,_0x3dd27e){'use strict';const _0x47881b=_0x2c73;class _0x147b07{get[_0x47881b(0xbf)](){const _0x1229d2=_0x47881b;return _0x236f7b['MCPEventId'][_0x1229d2(0xbf)];}get['McpToolCallReceived'](){const _0x4c851a=_0x47881b;return _0x236f7b[_0x4c851a(0xc2)]['McpToolCallReceived'];}get[_0x47881b(0xca)](){const _0x650da8=_0x47881b;return _0x236f7b[_0x650da8(0xc2)][_0x650da8(0xca)];}get['McpToolCallFailed'](){const _0x54a52c=_0x47881b;return _0x236f7b[_0x54a52c(0xc2)][_0x54a52c(0xbc)];}}_0x22dea2['FEventName'][_0x47881b(0xb0)](_0x147b07);class _0x1cd4d8 extends _0x22dea2[_0x47881b(0xc9)]{[_0x47881b(0x9e)](_0x2dd40c){const _0x5c07e3=_0x47881b;this[_0x5c07e3(0xa0)](_0x2dd40c);}[_0x47881b(0xa0)](_0x4c7f0d){const _0x5de5c3=_0x47881b,_0x41dad5=_0x4c7f0d[_0x5de5c3(0xc0)](_0x236f7b[_0x5de5c3(0xb8)]);this[_0x5de5c3(0xc4)](this[_0x5de5c3(0xc8)][_0x5de5c3(0xbf)],()=>_0x3dd27e[_0x5de5c3(0xab)](_0x41dad5['event$'][_0x5de5c3(0xb4)](_0x59fe6e=>{const _0x563664=_0x5de5c3;_0x59fe6e[_0x563664(0xa1)]===_0x236f7b[_0x563664(0xc2)][_0x563664(0xbf)]&&this[_0x563664(0xac)](this['Event']['McpConnectionStatusChanged'],_0x59fe6e[_0x563664(0xa9)]);}))),this[_0x5de5c3(0xc4)](this['Event'][_0x5de5c3(0xba)],()=>_0x3dd27e[_0x5de5c3(0xab)](_0x41dad5[_0x5de5c3(0xb3)]['subscribe'](_0x2822ce=>{const _0x2dc5dd=_0x5de5c3;_0x2822ce[_0x2dc5dd(0xa1)]===_0x236f7b[_0x2dc5dd(0xc2)]['McpToolCallReceived']&&this[_0x2dc5dd(0xac)](this[_0x2dc5dd(0xc8)][_0x2dc5dd(0xba)],_0x2822ce[_0x2dc5dd(0xa9)]);}))),this[_0x5de5c3(0xc4)](this[_0x5de5c3(0xc8)][_0x5de5c3(0xca)],()=>_0x3dd27e[_0x5de5c3(0xab)](_0x41dad5[_0x5de5c3(0xb3)]['subscribe'](_0x5dcf59=>{const _0x291e8c=_0x5de5c3;_0x5dcf59[_0x291e8c(0xa1)]===_0x236f7b[_0x291e8c(0xc2)][_0x291e8c(0xca)]&&this[_0x291e8c(0xac)](this[_0x291e8c(0xc8)]['McpToolCallExecuted'],_0x5dcf59[_0x291e8c(0xa9)]);}))),this[_0x5de5c3(0xc4)](this['Event'][_0x5de5c3(0xbc)],()=>_0x3dd27e[_0x5de5c3(0xab)](_0x41dad5['event$'][_0x5de5c3(0xb4)](_0x2ce0f3=>{const _0x530f72=_0x5de5c3;_0x2ce0f3[_0x530f72(0xa1)]===_0x236f7b[_0x530f72(0xc2)][_0x530f72(0xbc)]&&this[_0x530f72(0xac)](this[_0x530f72(0xc8)][_0x530f72(0xbc)],_0x2ce0f3['data']);})));}[_0x47881b(0xa7)](_0x3820cf,_0x2e4e53){const _0x2d9e0e=_0x47881b;return this[_0x2d9e0e(0xc1)][_0x2d9e0e(0xc0)](_0x236f7b[_0x2d9e0e(0xad)])['validateToolCall'](_0x3820cf,_0x2e4e53);}[_0x47881b(0xcc)](){const _0x536e26=_0x47881b;return this[_0x536e26(0xc1)][_0x536e26(0xc0)](_0x236f7b[_0x536e26(0xad)])['getAllTools']();}[_0x47881b(0xbe)](_0x1ecf77,_0x189b5d){const _0x5f172=_0x47881b;return this[_0x5f172(0xc1)][_0x5f172(0xc0)](_0x236f7b[_0x5f172(0xad)])[_0x5f172(0xb2)](_0x1ecf77,_0x189b5d);}[_0x47881b(0xc7)](){const _0x1d0c1f=_0x47881b;return this[_0x1d0c1f(0xc1)]['get'](_0x236f7b[_0x1d0c1f(0xae)])['getConnectionStatus']();}[_0x47881b(0xb7)](){const _0x201cd7=_0x47881b;this[_0x201cd7(0xc1)][_0x201cd7(0xc0)](_0x236f7b[_0x201cd7(0xae)])['connect']();}['disconnectMCP'](){const _0xfaef4f=_0x47881b;this[_0xfaef4f(0xc1)][_0xfaef4f(0xc0)](_0x236f7b[_0xfaef4f(0xae)])[_0xfaef4f(0xb6)]();}}_0x22dea2[_0x47881b(0xc9)][_0x47881b(0xb0)](_0x1cd4d8);}));
1
+ function _0x572b(_0x3e676e,_0xebe122){_0x3e676e=_0x3e676e-0xce;const _0x4d12c2=_0x4d12();let _0x572b14=_0x4d12c2[_0x3e676e];return _0x572b14;}function _0x4d12(){const _0xde7b77=['McpToolCallExecuted','130470gRVIVX','type','subscribe','6906977AaZedI','IMCPToolRegistry','amd','data','connect','McpToolCallFailed','_injector','fireEvent','@univerjs/core/facade','validateToolCall','disconnect','getAllTools','function','MCPConnectionController','18620FyiZVE','registerEventHandler','418224ymKhvg','FEventName','2812965tEojVO','_registerMCPFacadeEvents','extend','Event','McpToolCallReceived','connectMCP','validateMCPToolCall','getConnectionStatus','executeTool','11496072GtMFEG','_initialize','toDisposable','FUniver','@univerjs/core','get','event$','getAllMCPTools','McpConnectionStatusChanged','MCPEventId','object','2843520HmrbDI','6hZtjCo'];_0x4d12=function(){return _0xde7b77;};return _0x4d12();}(function(_0x53d295,_0xf09863){const _0x28816c=_0x572b,_0x842b7c=_0x53d295();while(!![]){try{const _0x5bbdb9=-parseInt(_0x28816c(0xdf))/0x1+parseInt(_0x28816c(0xce))/0x2+-parseInt(_0x28816c(0xe1))/0x3+parseInt(_0x28816c(0xf7))/0x4+-parseInt(_0x28816c(0xe3))/0x5+parseInt(_0x28816c(0xf8))/0x6*(-parseInt(_0x28816c(0xd1))/0x7)+parseInt(_0x28816c(0xec))/0x8;if(_0x5bbdb9===_0xf09863)break;else _0x842b7c['push'](_0x842b7c['shift']());}catch(_0x281676){_0x842b7c['push'](_0x842b7c['shift']());}}}(_0x4d12,0x7b7c0),function(_0x48c0f1,_0x3d973e){const _0x2c22b3=_0x572b;typeof exports==_0x2c22b3(0xf6)&&typeof module<'u'?_0x3d973e(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x2c22b3(0xdd)&&define[_0x2c22b3(0xd3)]?define(['@univerjs-pro/mcp',_0x2c22b3(0xd9),_0x2c22b3(0xf0)],_0x3d973e):(_0x48c0f1=typeof globalThis<'u'?globalThis:_0x48c0f1||self,_0x3d973e(_0x48c0f1['UniverProMcp'],_0x48c0f1['UniverCoreFacade'],_0x48c0f1['UniverCore']));}(this,function(_0x42e4f2,_0x59ac7b,_0xabb46a){'use strict';const _0x170750=_0x572b;class _0x573a60{get[_0x170750(0xf4)](){const _0x586ac6=_0x170750;return _0x42e4f2[_0x586ac6(0xf5)][_0x586ac6(0xf4)];}get[_0x170750(0xe7)](){const _0x2f298c=_0x170750;return _0x42e4f2['MCPEventId'][_0x2f298c(0xe7)];}get[_0x170750(0xf9)](){const _0x2c2f97=_0x170750;return _0x42e4f2['MCPEventId'][_0x2c2f97(0xf9)];}get[_0x170750(0xd6)](){const _0x530c8f=_0x170750;return _0x42e4f2[_0x530c8f(0xf5)][_0x530c8f(0xd6)];}}_0x59ac7b[_0x170750(0xe2)]['extend'](_0x573a60);class _0x4c3cf2 extends _0x59ac7b['FUniver']{[_0x170750(0xed)](_0x3d2af7){const _0x152669=_0x170750;this[_0x152669(0xe4)](_0x3d2af7);}['_registerMCPFacadeEvents'](_0x152df6){const _0x42f502=_0x170750,_0x130f40=_0x152df6['get'](_0x42e4f2['MCPEventService']);this[_0x42f502(0xe0)](this[_0x42f502(0xe6)][_0x42f502(0xf4)],()=>_0xabb46a[_0x42f502(0xee)](_0x130f40[_0x42f502(0xf2)]['subscribe'](_0x42b316=>{const _0x43e195=_0x42f502;_0x42b316[_0x43e195(0xcf)]===_0x42e4f2[_0x43e195(0xf5)][_0x43e195(0xf4)]&&this[_0x43e195(0xd8)](this[_0x43e195(0xe6)][_0x43e195(0xf4)],_0x42b316[_0x43e195(0xd4)]);}))),this[_0x42f502(0xe0)](this[_0x42f502(0xe6)][_0x42f502(0xe7)],()=>_0xabb46a[_0x42f502(0xee)](_0x130f40['event$'][_0x42f502(0xd0)](_0x8aeb59=>{const _0x63f87b=_0x42f502;_0x8aeb59[_0x63f87b(0xcf)]===_0x42e4f2[_0x63f87b(0xf5)][_0x63f87b(0xe7)]&&this['fireEvent'](this[_0x63f87b(0xe6)][_0x63f87b(0xe7)],_0x8aeb59[_0x63f87b(0xd4)]);}))),this['registerEventHandler'](this['Event'][_0x42f502(0xf9)],()=>_0xabb46a[_0x42f502(0xee)](_0x130f40[_0x42f502(0xf2)][_0x42f502(0xd0)](_0x3399db=>{const _0x33ce5e=_0x42f502;_0x3399db[_0x33ce5e(0xcf)]===_0x42e4f2['MCPEventId']['McpToolCallExecuted']&&this[_0x33ce5e(0xd8)](this[_0x33ce5e(0xe6)]['McpToolCallExecuted'],_0x3399db[_0x33ce5e(0xd4)]);}))),this[_0x42f502(0xe0)](this[_0x42f502(0xe6)]['McpToolCallFailed'],()=>_0xabb46a[_0x42f502(0xee)](_0x130f40['event$']['subscribe'](_0x35cac8=>{const _0x5071ff=_0x42f502;_0x35cac8[_0x5071ff(0xcf)]===_0x42e4f2[_0x5071ff(0xf5)]['McpToolCallFailed']&&this[_0x5071ff(0xd8)](this['Event'][_0x5071ff(0xd6)],_0x35cac8[_0x5071ff(0xd4)]);})));}[_0x170750(0xe9)](_0x626301,_0x2a0fd5){const _0x19a47a=_0x170750;return this[_0x19a47a(0xd7)][_0x19a47a(0xf1)](_0x42e4f2[_0x19a47a(0xd2)])[_0x19a47a(0xda)](_0x626301,_0x2a0fd5);}[_0x170750(0xf3)](){const _0xd82dfc=_0x170750;return this[_0xd82dfc(0xd7)]['get'](_0x42e4f2['IMCPToolRegistry'])[_0xd82dfc(0xdc)]();}['callMCPTool'](_0x47d41c,_0x26ce69){const _0x2da3a3=_0x170750;return this[_0x2da3a3(0xd7)][_0x2da3a3(0xf1)](_0x42e4f2[_0x2da3a3(0xd2)])[_0x2da3a3(0xeb)](_0x47d41c,_0x26ce69);}['getMCPConnectionStatus'](){const _0x37bc61=_0x170750;return this[_0x37bc61(0xd7)][_0x37bc61(0xf1)](_0x42e4f2[_0x37bc61(0xde)])[_0x37bc61(0xea)]();}[_0x170750(0xe8)](){const _0x521e36=_0x170750;this[_0x521e36(0xd7)][_0x521e36(0xf1)](_0x42e4f2[_0x521e36(0xde)])[_0x521e36(0xd5)]();}['disconnectMCP'](){const _0x115772=_0x170750;this[_0x115772(0xd7)][_0x115772(0xf1)](_0x42e4f2[_0x115772(0xde)])[_0x115772(0xdb)]();}}_0x59ac7b[_0x170750(0xef)][_0x170750(0xe5)](_0x4c3cf2);}));