@univerjs-pro/mcp 0.12.4-experimental.20251210-29c379a → 0.12.4-experimental.20251211-e01e32a

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 _0x25cf(_0x2ce09b,_0x27a708){_0x2ce09b=_0x2ce09b-0x186;const _0x2268e0=_0x2268();let _0x25cf73=_0x2268e0[_0x2ce09b];return _0x25cf73;}(function(_0x1fa4dd,_0x3e9285){const _0x2533d0=_0x25cf,_0x249946=_0x1fa4dd();while(!![]){try{const _0x4cad5c=parseInt(_0x2533d0(0x198))/0x1*(-parseInt(_0x2533d0(0x1a4))/0x2)+-parseInt(_0x2533d0(0x1a6))/0x3+parseInt(_0x2533d0(0x18d))/0x4*(parseInt(_0x2533d0(0x19e))/0x5)+-parseInt(_0x2533d0(0x1af))/0x6+-parseInt(_0x2533d0(0x19c))/0x7+parseInt(_0x2533d0(0x194))/0x8+-parseInt(_0x2533d0(0x1ab))/0x9*(-parseInt(_0x2533d0(0x1aa))/0xa);if(_0x4cad5c===_0x3e9285)break;else _0x249946['push'](_0x249946['shift']());}catch(_0x247723){_0x249946['push'](_0x249946['shift']());}}}(_0x2268,0x23678),function(_0x404c04,_0x5ae534){const _0x204ac5=_0x25cf;typeof exports==_0x204ac5(0x186)&&typeof module<'u'?_0x5ae534(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define=='function'&&define[_0x204ac5(0x1a5)]?define(['@univerjs-pro/mcp',_0x204ac5(0x193),_0x204ac5(0x18e)],_0x5ae534):(_0x404c04=typeof globalThis<'u'?globalThis:_0x404c04||self,_0x5ae534(_0x404c04[_0x204ac5(0x1a7)],_0x404c04['UniverCoreFacade'],_0x404c04[_0x204ac5(0x1b1)]));}(this,function(_0x279309,_0x5691ca,_0x7fd234){'use strict';const _0x38c81c=_0x25cf;class _0x576511{get[_0x38c81c(0x189)](){const _0x28b27f=_0x38c81c;return _0x279309[_0x28b27f(0x1a3)][_0x28b27f(0x189)];}get[_0x38c81c(0x18a)](){const _0x5f0fa4=_0x38c81c;return _0x279309[_0x5f0fa4(0x1a3)]['McpToolCallReceived'];}get['McpToolCallExecuted'](){const _0x41f1e7=_0x38c81c;return _0x279309[_0x41f1e7(0x1a3)][_0x41f1e7(0x1ae)];}get[_0x38c81c(0x19f)](){const _0x503e0d=_0x38c81c;return _0x279309[_0x503e0d(0x1a3)][_0x503e0d(0x19f)];}}_0x5691ca['FEventName'][_0x38c81c(0x188)](_0x576511);class _0x508399 extends _0x5691ca[_0x38c81c(0x1a9)]{[_0x38c81c(0x1b2)](_0xa9ee01){const _0x687b1=_0x38c81c;this[_0x687b1(0x1a2)](_0xa9ee01);}[_0x38c81c(0x1a2)](_0x1207cf){const _0x118030=_0x38c81c,_0xf32acc=_0x1207cf[_0x118030(0x19d)](_0x279309[_0x118030(0x18b)]);this[_0x118030(0x190)](this[_0x118030(0x18f)][_0x118030(0x189)],()=>_0x7fd234['toDisposable'](_0xf32acc[_0x118030(0x195)][_0x118030(0x1a8)](_0x290d21=>{const _0x14f1ee=_0x118030;_0x290d21[_0x14f1ee(0x187)]===_0x279309[_0x14f1ee(0x1a3)][_0x14f1ee(0x189)]&&this[_0x14f1ee(0x199)](this[_0x14f1ee(0x18f)][_0x14f1ee(0x189)],_0x290d21[_0x14f1ee(0x197)]);}))),this[_0x118030(0x190)](this[_0x118030(0x18f)]['McpToolCallReceived'],()=>_0x7fd234[_0x118030(0x192)](_0xf32acc['event$'][_0x118030(0x1a8)](_0x4c0118=>{const _0x73f0ac=_0x118030;_0x4c0118[_0x73f0ac(0x187)]===_0x279309['MCPEventId'][_0x73f0ac(0x18a)]&&this[_0x73f0ac(0x199)](this[_0x73f0ac(0x18f)][_0x73f0ac(0x18a)],_0x4c0118[_0x73f0ac(0x197)]);}))),this[_0x118030(0x190)](this[_0x118030(0x18f)][_0x118030(0x1ae)],()=>_0x7fd234[_0x118030(0x192)](_0xf32acc[_0x118030(0x195)][_0x118030(0x1a8)](_0x2aad02=>{const _0xa6e771=_0x118030;_0x2aad02[_0xa6e771(0x187)]===_0x279309[_0xa6e771(0x1a3)][_0xa6e771(0x1ae)]&&this['fireEvent'](this['Event'][_0xa6e771(0x1ae)],_0x2aad02[_0xa6e771(0x197)]);}))),this[_0x118030(0x190)](this[_0x118030(0x18f)]['McpToolCallFailed'],()=>_0x7fd234['toDisposable'](_0xf32acc[_0x118030(0x195)]['subscribe'](_0x59a0a2=>{const _0x2fc027=_0x118030;_0x59a0a2[_0x2fc027(0x187)]===_0x279309[_0x2fc027(0x1a3)][_0x2fc027(0x19f)]&&this[_0x2fc027(0x199)](this['Event']['McpToolCallFailed'],_0x59a0a2[_0x2fc027(0x197)]);})));}[_0x38c81c(0x191)](_0x3a7512,_0x1cf491){const _0x4d367d=_0x38c81c;return this[_0x4d367d(0x1b3)][_0x4d367d(0x19d)](_0x279309[_0x4d367d(0x1a1)])['validateToolCall'](_0x3a7512,_0x1cf491);}[_0x38c81c(0x1a0)](){const _0x21b909=_0x38c81c;return this[_0x21b909(0x1b3)][_0x21b909(0x19d)](_0x279309[_0x21b909(0x1a1)])[_0x21b909(0x19b)]();}[_0x38c81c(0x1b0)](_0x3873cf,_0x43abe3){const _0x550b00=_0x38c81c;return this[_0x550b00(0x1b3)][_0x550b00(0x19d)](_0x279309[_0x550b00(0x1a1)])['executeTool'](_0x3873cf,_0x43abe3);}[_0x38c81c(0x1ac)](){const _0x32e28c=_0x38c81c;return this[_0x32e28c(0x1b3)][_0x32e28c(0x19d)](_0x279309[_0x32e28c(0x19a)])['getConnectionStatus']();}['connectMCP'](){const _0x1c3073=_0x38c81c;this[_0x1c3073(0x1b3)][_0x1c3073(0x19d)](_0x279309['MCPConnectionController'])[_0x1c3073(0x18c)]();}[_0x38c81c(0x196)](){const _0x41dcb3=_0x38c81c;this['_injector'][_0x41dcb3(0x19d)](_0x279309[_0x41dcb3(0x19a)])[_0x41dcb3(0x1ad)]();}}_0x5691ca[_0x38c81c(0x1a9)]['extend'](_0x508399);}));function _0x2268(){const _0x264d80=['24JUJUDx','@univerjs/core','Event','registerEventHandler','validateMCPToolCall','toDisposable','@univerjs/core/facade','2072608IogLBf','event$','disconnectMCP','data','1trvmsH','fireEvent','MCPConnectionController','getAllTools','103943HSXjbp','get','45315nGdhyr','McpToolCallFailed','getAllMCPTools','IMCPToolRegistry','_registerMCPFacadeEvents','MCPEventId','503566iRcrTH','amd','226614fjvRDz','UniverProMcp','subscribe','FUniver','187270TDqgcN','153vOKZxO','getMCPConnectionStatus','disconnect','McpToolCallExecuted','867762yehjKo','callMCPTool','UniverCore','_initialize','_injector','object','type','extend','McpConnectionStatusChanged','McpToolCallReceived','MCPEventService','connect'];_0x2268=function(){return _0x264d80;};return _0x2268();}
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);}));