@univerjs-pro/mcp 0.10.14 → 0.11.0-nightly.202511151013

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(_0x2bcf66,_0x918124){const _0x49a305=_0x2fb0,_0x1e1886=_0x2bcf66();while(!![]){try{const _0x4dc719=-parseInt(_0x49a305(0x193))/0x1*(parseInt(_0x49a305(0x184))/0x2)+-parseInt(_0x49a305(0x17d))/0x3*(parseInt(_0x49a305(0x17c))/0x4)+parseInt(_0x49a305(0x187))/0x5+parseInt(_0x49a305(0x188))/0x6+parseInt(_0x49a305(0x1a5))/0x7+parseInt(_0x49a305(0x18f))/0x8*(parseInt(_0x49a305(0x19b))/0x9)+parseInt(_0x49a305(0x179))/0xa*(-parseInt(_0x49a305(0x17a))/0xb);if(_0x4dc719===_0x918124)break;else _0x1e1886['push'](_0x1e1886['shift']());}catch(_0x324f6e){_0x1e1886['push'](_0x1e1886['shift']());}}}(_0x29d8,0x879f8),function(_0x4f75c9,_0x5a15f5){const _0x84939=_0x2fb0;typeof exports==_0x84939(0x19a)&&typeof module<'u'?_0x5a15f5(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x84939(0x18a)&&define['amd']?define([_0x84939(0x1a1),_0x84939(0x18d),_0x84939(0x1a0)],_0x5a15f5):(_0x4f75c9=typeof globalThis<'u'?globalThis:_0x4f75c9||self,_0x5a15f5(_0x4f75c9[_0x84939(0x18c)],_0x4f75c9['UniverCoreFacade'],_0x4f75c9[_0x84939(0x1a3)]));}(this,function(_0x2ae1f3,_0x13191a,_0x3f3c82){'use strict';const _0x2cb70b=_0x2fb0;class _0x2d0132{get[_0x2cb70b(0x18e)](){const _0x2fcbd5=_0x2cb70b;return _0x2ae1f3[_0x2fcbd5(0x19f)]['McpConnectionStatusChanged'];}get[_0x2cb70b(0x186)](){return _0x2ae1f3['MCPEventId']['McpToolCallReceived'];}get[_0x2cb70b(0x191)](){const _0x35a295=_0x2cb70b;return _0x2ae1f3['MCPEventId'][_0x35a295(0x191)];}get[_0x2cb70b(0x17f)](){const _0x337727=_0x2cb70b;return _0x2ae1f3['MCPEventId'][_0x337727(0x17f)];}}_0x13191a[_0x2cb70b(0x19d)]['extend'](_0x2d0132);class _0x48eb1c extends _0x13191a[_0x2cb70b(0x17b)]{[_0x2cb70b(0x18b)](_0x54e154){const _0xcf5d35=_0x2cb70b;this[_0xcf5d35(0x182)](_0x54e154);}[_0x2cb70b(0x182)](_0x1b975b){const _0x479c31=_0x2cb70b,_0x3cc11f=_0x1b975b[_0x479c31(0x195)](_0x2ae1f3['MCPEventService']);this[_0x479c31(0x17e)](this[_0x479c31(0x189)]['McpConnectionStatusChanged'],()=>_0x3f3c82['toDisposable'](_0x3cc11f[_0x479c31(0x1a9)]['subscribe'](_0x358da6=>{const _0x4e315b=_0x479c31;_0x358da6[_0x4e315b(0x185)]===_0x2ae1f3[_0x4e315b(0x19f)][_0x4e315b(0x18e)]&&this[_0x4e315b(0x1a8)](this[_0x4e315b(0x189)][_0x4e315b(0x18e)],_0x358da6[_0x4e315b(0x1a2)]);}))),this['registerEventHandler'](this[_0x479c31(0x189)][_0x479c31(0x186)],()=>_0x3f3c82[_0x479c31(0x199)](_0x3cc11f[_0x479c31(0x1a9)][_0x479c31(0x192)](_0x589966=>{const _0xb8d2e1=_0x479c31;_0x589966[_0xb8d2e1(0x185)]===_0x2ae1f3[_0xb8d2e1(0x19f)][_0xb8d2e1(0x186)]&&this[_0xb8d2e1(0x1a8)](this[_0xb8d2e1(0x189)][_0xb8d2e1(0x186)],_0x589966[_0xb8d2e1(0x1a2)]);}))),this[_0x479c31(0x17e)](this[_0x479c31(0x189)]['McpToolCallExecuted'],()=>_0x3f3c82[_0x479c31(0x199)](_0x3cc11f[_0x479c31(0x1a9)][_0x479c31(0x192)](_0x461835=>{const _0x258e52=_0x479c31;_0x461835[_0x258e52(0x185)]===_0x2ae1f3['MCPEventId'][_0x258e52(0x191)]&&this[_0x258e52(0x1a8)](this[_0x258e52(0x189)][_0x258e52(0x191)],_0x461835[_0x258e52(0x1a2)]);}))),this['registerEventHandler'](this[_0x479c31(0x189)]['McpToolCallFailed'],()=>_0x3f3c82['toDisposable'](_0x3cc11f[_0x479c31(0x1a9)][_0x479c31(0x192)](_0x3c8959=>{const _0x4754f1=_0x479c31;_0x3c8959[_0x4754f1(0x185)]===_0x2ae1f3[_0x4754f1(0x19f)][_0x4754f1(0x17f)]&&this[_0x4754f1(0x1a8)](this['Event']['McpToolCallFailed'],_0x3c8959['data']);})));}[_0x2cb70b(0x190)](_0x418bf9,_0x23b864){const _0x527f92=_0x2cb70b;return this[_0x527f92(0x1a6)][_0x527f92(0x195)](_0x2ae1f3['IMCPToolRegistry'])[_0x527f92(0x197)](_0x418bf9,_0x23b864);}[_0x2cb70b(0x196)](){const _0x92a15d=_0x2cb70b;return this[_0x92a15d(0x1a6)]['get'](_0x2ae1f3['IMCPToolRegistry'])[_0x92a15d(0x1a4)]();}['callMCPTool'](_0x2df9e9,_0x18d342){const _0x15bfd8=_0x2cb70b;return this[_0x15bfd8(0x1a6)][_0x15bfd8(0x195)](_0x2ae1f3['IMCPToolRegistry'])[_0x15bfd8(0x180)](_0x2df9e9,_0x18d342);}[_0x2cb70b(0x198)](){const _0x37f1c2=_0x2cb70b;return this['_injector'][_0x37f1c2(0x195)](_0x2ae1f3[_0x37f1c2(0x19e)])[_0x37f1c2(0x194)]();}[_0x2cb70b(0x19c)](){const _0x56d0cf=_0x2cb70b;this[_0x56d0cf(0x1a6)][_0x56d0cf(0x195)](_0x2ae1f3[_0x56d0cf(0x19e)])[_0x56d0cf(0x183)]();}['disconnectMCP'](){const _0x4a4bd4=_0x2cb70b;this[_0x4a4bd4(0x1a6)][_0x4a4bd4(0x195)](_0x2ae1f3[_0x4a4bd4(0x19e)])[_0x4a4bd4(0x181)]();}}_0x13191a[_0x2cb70b(0x17b)][_0x2cb70b(0x1a7)](_0x48eb1c);}));function _0x2fb0(_0x23bba7,_0x4aca6b){const _0x29d89=_0x29d8();return _0x2fb0=function(_0x2fb088,_0x17e644){_0x2fb088=_0x2fb088-0x179;let _0x5f31dc=_0x29d89[_0x2fb088];return _0x5f31dc;},_0x2fb0(_0x23bba7,_0x4aca6b);}function _0x29d8(){const _0xd7e3cf=['@univerjs-pro/mcp','data','UniverCore','getAllTools','4925893sdXEwz','_injector','extend','fireEvent','event$','128230pggRWw','517PmgCMZ','FUniver','127288XURoxg','18rgvWSB','registerEventHandler','McpToolCallFailed','executeTool','disconnect','_registerMCPFacadeEvents','connect','2PaJNCE','type','McpToolCallReceived','1864265jQrGaw','1659888uOLszw','Event','function','_initialize','UniverProMcp','@univerjs/core/facade','McpConnectionStatusChanged','899576JDlHhw','validateMCPToolCall','McpToolCallExecuted','subscribe','903651OclCvX','getConnectionStatus','get','getAllMCPTools','validateToolCall','getMCPConnectionStatus','toDisposable','object','72PtmQZR','connectMCP','FEventName','MCPConnectionController','MCPEventId','@univerjs/core'];_0x29d8=function(){return _0xd7e3cf;};return _0x29d8();}
1
+ function _0x2d4c(_0x4280a9,_0x5ca5a3){const _0x54bf05=_0x54bf();return _0x2d4c=function(_0x2d4c61,_0x1d13d9){_0x2d4c61=_0x2d4c61-0xc7;let _0x3c0f23=_0x54bf05[_0x2d4c61];return _0x3c0f23;},_0x2d4c(_0x4280a9,_0x5ca5a3);}function _0x54bf(){const _0x1136b1=['168537zvxJBx','McpToolCallFailed','executeTool','@univerjs-pro/mcp','MCPConnectionController','3193512zigobv','disconnectMCP','function','IMCPToolRegistry','_initialize','McpToolCallExecuted','FUniver','McpToolCallReceived','10GhMsfd','@univerjs/core/facade','McpConnectionStatusChanged','event$','fireEvent','5780370aVVZFw','amd','getAllTools','getConnectionStatus','toDisposable','object','2752255mtrrRG','5711485WMSzEM','4MLMkoK','UniverCoreFacade','connect','get','@univerjs/core','_registerMCPFacadeEvents','FEventName','registerEventHandler','extend','4635464ObourW','MCPEventId','getAllMCPTools','_injector','Event','9ylpOnm','callMCPTool','subscribe','validateMCPToolCall','data','30333PwYOOR','116TJFScn','type','connectMCP','MCPEventService'];_0x54bf=function(){return _0x1136b1;};return _0x54bf();}(function(_0x2eb396,_0x25e26c){const _0x35a1e6=_0x2d4c,_0x3aae6a=_0x2eb396();while(!![]){try{const _0x3c92e2=parseInt(_0x35a1e6(0xea))/0x1*(parseInt(_0x35a1e6(0xd2))/0x2)+parseInt(_0x35a1e6(0xe5))/0x3*(-parseInt(_0x35a1e6(0xe6))/0x4)+parseInt(_0x35a1e6(0xd1))/0x5+-parseInt(_0x35a1e6(0xca))/0x6+-parseInt(_0x35a1e6(0xef))/0x7+-parseInt(_0x35a1e6(0xdb))/0x8*(-parseInt(_0x35a1e6(0xe0))/0x9)+parseInt(_0x35a1e6(0xf7))/0xa*(parseInt(_0x35a1e6(0xd0))/0xb);if(_0x3c92e2===_0x25e26c)break;else _0x3aae6a['push'](_0x3aae6a['shift']());}catch(_0x27bfe4){_0x3aae6a['push'](_0x3aae6a['shift']());}}}(_0x54bf,0x918d3),function(_0x514a4b,_0x2614d2){const _0x503e8c=_0x2d4c;typeof exports==_0x503e8c(0xcf)&&typeof module<'u'?_0x2614d2(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x503e8c(0xf1)&&define[_0x503e8c(0xcb)]?define([_0x503e8c(0xed),_0x503e8c(0xf8),_0x503e8c(0xd6)],_0x2614d2):(_0x514a4b=typeof globalThis<'u'?globalThis:_0x514a4b||self,_0x2614d2(_0x514a4b['UniverProMcp'],_0x514a4b[_0x503e8c(0xd3)],_0x514a4b['UniverCore']));}(this,function(_0xee0924,_0x5a9102,_0x1f6d1c){'use strict';const _0x20c121=_0x2d4c;class _0x35adec{get['McpConnectionStatusChanged'](){const _0x53b596=_0x2d4c;return _0xee0924[_0x53b596(0xdc)]['McpConnectionStatusChanged'];}get[_0x20c121(0xf6)](){return _0xee0924['MCPEventId']['McpToolCallReceived'];}get[_0x20c121(0xf4)](){const _0x2516d0=_0x20c121;return _0xee0924[_0x2516d0(0xdc)][_0x2516d0(0xf4)];}get[_0x20c121(0xeb)](){return _0xee0924['MCPEventId']['McpToolCallFailed'];}}_0x5a9102[_0x20c121(0xd8)][_0x20c121(0xda)](_0x35adec);class _0x41a269 extends _0x5a9102['FUniver']{[_0x20c121(0xf3)](_0x18887f){this['_registerMCPFacadeEvents'](_0x18887f);}[_0x20c121(0xd7)](_0x5c5fe8){const _0x7e2ad=_0x20c121,_0x41b0f3=_0x5c5fe8['get'](_0xee0924[_0x7e2ad(0xe9)]);this['registerEventHandler'](this['Event'][_0x7e2ad(0xc7)],()=>_0x1f6d1c[_0x7e2ad(0xce)](_0x41b0f3['event$']['subscribe'](_0x233546=>{const _0x94f2d2=_0x7e2ad;_0x233546[_0x94f2d2(0xe7)]===_0xee0924[_0x94f2d2(0xdc)][_0x94f2d2(0xc7)]&&this[_0x94f2d2(0xc9)](this['Event'][_0x94f2d2(0xc7)],_0x233546['data']);}))),this['registerEventHandler'](this[_0x7e2ad(0xdf)]['McpToolCallReceived'],()=>_0x1f6d1c[_0x7e2ad(0xce)](_0x41b0f3[_0x7e2ad(0xc8)]['subscribe'](_0x219a2a=>{const _0x52e603=_0x7e2ad;_0x219a2a[_0x52e603(0xe7)]===_0xee0924[_0x52e603(0xdc)]['McpToolCallReceived']&&this[_0x52e603(0xc9)](this['Event'][_0x52e603(0xf6)],_0x219a2a[_0x52e603(0xe4)]);}))),this[_0x7e2ad(0xd9)](this['Event'][_0x7e2ad(0xf4)],()=>_0x1f6d1c[_0x7e2ad(0xce)](_0x41b0f3[_0x7e2ad(0xc8)][_0x7e2ad(0xe2)](_0x293601=>{const _0x46eb41=_0x7e2ad;_0x293601[_0x46eb41(0xe7)]===_0xee0924[_0x46eb41(0xdc)]['McpToolCallExecuted']&&this['fireEvent'](this[_0x46eb41(0xdf)][_0x46eb41(0xf4)],_0x293601[_0x46eb41(0xe4)]);}))),this[_0x7e2ad(0xd9)](this[_0x7e2ad(0xdf)]['McpToolCallFailed'],()=>_0x1f6d1c[_0x7e2ad(0xce)](_0x41b0f3[_0x7e2ad(0xc8)]['subscribe'](_0x4cc60e=>{const _0x49cd2f=_0x7e2ad;_0x4cc60e[_0x49cd2f(0xe7)]===_0xee0924[_0x49cd2f(0xdc)][_0x49cd2f(0xeb)]&&this[_0x49cd2f(0xc9)](this[_0x49cd2f(0xdf)][_0x49cd2f(0xeb)],_0x4cc60e[_0x49cd2f(0xe4)]);})));}[_0x20c121(0xe3)](_0x1840ab,_0x5657ae){const _0x3d3f39=_0x20c121;return this['_injector']['get'](_0xee0924[_0x3d3f39(0xf2)])['validateToolCall'](_0x1840ab,_0x5657ae);}[_0x20c121(0xdd)](){const _0x240563=_0x20c121;return this[_0x240563(0xde)]['get'](_0xee0924[_0x240563(0xf2)])[_0x240563(0xcc)]();}[_0x20c121(0xe1)](_0x3fcaec,_0x31f131){const _0x3eb45=_0x20c121;return this[_0x3eb45(0xde)]['get'](_0xee0924['IMCPToolRegistry'])[_0x3eb45(0xec)](_0x3fcaec,_0x31f131);}['getMCPConnectionStatus'](){const _0x5c024c=_0x20c121;return this[_0x5c024c(0xde)][_0x5c024c(0xd5)](_0xee0924[_0x5c024c(0xee)])[_0x5c024c(0xcd)]();}[_0x20c121(0xe8)](){const _0x535d33=_0x20c121;this[_0x535d33(0xde)][_0x535d33(0xd5)](_0xee0924[_0x535d33(0xee)])[_0x535d33(0xd4)]();}[_0x20c121(0xf0)](){const _0x207d10=_0x20c121;this[_0x207d10(0xde)][_0x207d10(0xd5)](_0xee0924[_0x207d10(0xee)])['disconnect']();}}_0x5a9102[_0x20c121(0xf5)][_0x20c121(0xda)](_0x41a269);}));