@univerjs-pro/mcp 0.12.2-nightly.202511290732 → 0.12.2-nightly.202511290905

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 _0x5648(){const _0x4c142a=['1341587dvKWxy','3dgFMLe','extend','MCPEventId','fireEvent','data','get','_injector','validateToolCall','FEventName','439615VpGVVT','4792pBffZb','UniverProMcp','14aDfIBu','toDisposable','McpConnectionStatusChanged','getMCPConnectionStatus','subscribe','MCPConnectionController','McpToolCallReceived','_initialize','1953JsMCXM','object','function','2265488XbCPjm','disconnectMCP','disconnect','IMCPToolRegistry','type','182MhgtvI','922130zvBmiq','amd','event$','connect','27gFeLGx','McpToolCallFailed','UniverCore','@univerjs/core/facade','246xuXIuc','registerEventHandler','McpToolCallExecuted','Event','@univerjs/core','_registerMCPFacadeEvents','getAllMCPTools','104479OwhVzf','108VufuqZ','callMCPTool','66225XJuMxG','MCPEventService'];_0x5648=function(){return _0x4c142a;};return _0x5648();}function _0x50b3(_0x3b964b,_0x44172b){const _0x5648b3=_0x5648();return _0x50b3=function(_0x50b34d,_0x3d3952){_0x50b34d=_0x50b34d-0x1c1;let _0xfd2eae=_0x5648b3[_0x50b34d];return _0xfd2eae;},_0x50b3(_0x3b964b,_0x44172b);}(function(_0x418888,_0x73890d){const _0x4abdf5=_0x50b3,_0x440ab8=_0x418888();while(!![]){try{const _0x430845=parseInt(_0x4abdf5(0x1ed))/0x1*(-parseInt(_0x4abdf5(0x1cd))/0x2)+-parseInt(_0x4abdf5(0x1c1))/0x3*(-parseInt(_0x4abdf5(0x1d8))/0x4)+parseInt(_0x4abdf5(0x1f0))/0x5*(-parseInt(_0x4abdf5(0x1e6))/0x6)+parseInt(_0x4abdf5(0x1d5))/0x7*(-parseInt(_0x4abdf5(0x1cb))/0x8)+-parseInt(_0x4abdf5(0x1e2))/0x9*(-parseInt(_0x4abdf5(0x1de))/0xa)+-parseInt(_0x4abdf5(0x1ca))/0xb*(parseInt(_0x4abdf5(0x1ee))/0xc)+-parseInt(_0x4abdf5(0x1f2))/0xd*(-parseInt(_0x4abdf5(0x1dd))/0xe);if(_0x430845===_0x73890d)break;else _0x440ab8['push'](_0x440ab8['shift']());}catch(_0x266469){_0x440ab8['push'](_0x440ab8['shift']());}}}(_0x5648,0x5d9a2),function(_0x193f91,_0xc97cb4){const _0x5ddcd4=_0x50b3;typeof exports==_0x5ddcd4(0x1d6)&&typeof module<'u'?_0xc97cb4(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x5ddcd4(0x1d7)&&define[_0x5ddcd4(0x1df)]?define(['@univerjs-pro/mcp',_0x5ddcd4(0x1e5),_0x5ddcd4(0x1ea)],_0xc97cb4):(_0x193f91=typeof globalThis<'u'?globalThis:_0x193f91||self,_0xc97cb4(_0x193f91[_0x5ddcd4(0x1cc)],_0x193f91['UniverCoreFacade'],_0x193f91[_0x5ddcd4(0x1e4)]));}(this,function(_0x4a9799,_0x2807c1,_0x4ff194){'use strict';const _0x20852e=_0x50b3;class _0x65179a{get[_0x20852e(0x1cf)](){const _0x432290=_0x20852e;return _0x4a9799[_0x432290(0x1c3)]['McpConnectionStatusChanged'];}get[_0x20852e(0x1d3)](){const _0x1e68e9=_0x20852e;return _0x4a9799[_0x1e68e9(0x1c3)][_0x1e68e9(0x1d3)];}get[_0x20852e(0x1e8)](){const _0x5ccb54=_0x20852e;return _0x4a9799[_0x5ccb54(0x1c3)][_0x5ccb54(0x1e8)];}get[_0x20852e(0x1e3)](){const _0x2dd0f4=_0x20852e;return _0x4a9799[_0x2dd0f4(0x1c3)][_0x2dd0f4(0x1e3)];}}_0x2807c1[_0x20852e(0x1c9)][_0x20852e(0x1c2)](_0x65179a);class _0x1e4e98 extends _0x2807c1['FUniver']{[_0x20852e(0x1d4)](_0x548c19){const _0xa2115e=_0x20852e;this[_0xa2115e(0x1eb)](_0x548c19);}[_0x20852e(0x1eb)](_0x4f1932){const _0x15b44e=_0x20852e,_0x35474a=_0x4f1932[_0x15b44e(0x1c6)](_0x4a9799[_0x15b44e(0x1f1)]);this['registerEventHandler'](this[_0x15b44e(0x1e9)][_0x15b44e(0x1cf)],()=>_0x4ff194[_0x15b44e(0x1ce)](_0x35474a['event$'][_0x15b44e(0x1d1)](_0x3c10e0=>{const _0x21453b=_0x15b44e;_0x3c10e0[_0x21453b(0x1dc)]===_0x4a9799[_0x21453b(0x1c3)][_0x21453b(0x1cf)]&&this['fireEvent'](this[_0x21453b(0x1e9)][_0x21453b(0x1cf)],_0x3c10e0[_0x21453b(0x1c5)]);}))),this[_0x15b44e(0x1e7)](this[_0x15b44e(0x1e9)]['McpToolCallReceived'],()=>_0x4ff194[_0x15b44e(0x1ce)](_0x35474a[_0x15b44e(0x1e0)][_0x15b44e(0x1d1)](_0x5d7fa9=>{const _0x52afae=_0x15b44e;_0x5d7fa9[_0x52afae(0x1dc)]===_0x4a9799[_0x52afae(0x1c3)][_0x52afae(0x1d3)]&&this[_0x52afae(0x1c4)](this[_0x52afae(0x1e9)][_0x52afae(0x1d3)],_0x5d7fa9['data']);}))),this[_0x15b44e(0x1e7)](this['Event'][_0x15b44e(0x1e8)],()=>_0x4ff194['toDisposable'](_0x35474a[_0x15b44e(0x1e0)][_0x15b44e(0x1d1)](_0x2b6db6=>{const _0x466388=_0x15b44e;_0x2b6db6[_0x466388(0x1dc)]===_0x4a9799[_0x466388(0x1c3)][_0x466388(0x1e8)]&&this[_0x466388(0x1c4)](this[_0x466388(0x1e9)][_0x466388(0x1e8)],_0x2b6db6['data']);}))),this[_0x15b44e(0x1e7)](this[_0x15b44e(0x1e9)][_0x15b44e(0x1e3)],()=>_0x4ff194[_0x15b44e(0x1ce)](_0x35474a[_0x15b44e(0x1e0)][_0x15b44e(0x1d1)](_0x1d7cfe=>{const _0x6cf58c=_0x15b44e;_0x1d7cfe['type']===_0x4a9799[_0x6cf58c(0x1c3)][_0x6cf58c(0x1e3)]&&this['fireEvent'](this[_0x6cf58c(0x1e9)]['McpToolCallFailed'],_0x1d7cfe[_0x6cf58c(0x1c5)]);})));}['validateMCPToolCall'](_0x1f3fbe,_0x1a652d){const _0x454ad3=_0x20852e;return this['_injector']['get'](_0x4a9799[_0x454ad3(0x1db)])[_0x454ad3(0x1c8)](_0x1f3fbe,_0x1a652d);}[_0x20852e(0x1ec)](){const _0x3fd6cd=_0x20852e;return this['_injector'][_0x3fd6cd(0x1c6)](_0x4a9799[_0x3fd6cd(0x1db)])['getAllTools']();}[_0x20852e(0x1ef)](_0x179551,_0xef6e1e){const _0x161931=_0x20852e;return this['_injector'][_0x161931(0x1c6)](_0x4a9799[_0x161931(0x1db)])['executeTool'](_0x179551,_0xef6e1e);}[_0x20852e(0x1d0)](){const _0x33bfe0=_0x20852e;return this[_0x33bfe0(0x1c7)][_0x33bfe0(0x1c6)](_0x4a9799[_0x33bfe0(0x1d2)])['getConnectionStatus']();}['connectMCP'](){const _0x1ecbcc=_0x20852e;this[_0x1ecbcc(0x1c7)]['get'](_0x4a9799[_0x1ecbcc(0x1d2)])[_0x1ecbcc(0x1e1)]();}[_0x20852e(0x1d9)](){const _0xe545b8=_0x20852e;this['_injector'][_0xe545b8(0x1c6)](_0x4a9799[_0xe545b8(0x1d2)])[_0xe545b8(0x1da)]();}}_0x2807c1['FUniver'][_0x20852e(0x1c2)](_0x1e4e98);}));
1
+ (function(_0x19772f,_0x1bc357){const _0x4d0a50=_0x1b6d,_0x467ccc=_0x19772f();while(!![]){try{const _0x3545b5=-parseInt(_0x4d0a50(0x138))/0x1+-parseInt(_0x4d0a50(0x149))/0x2*(parseInt(_0x4d0a50(0x13c))/0x3)+-parseInt(_0x4d0a50(0x144))/0x4*(-parseInt(_0x4d0a50(0x140))/0x5)+parseInt(_0x4d0a50(0x13d))/0x6+-parseInt(_0x4d0a50(0x136))/0x7+-parseInt(_0x4d0a50(0x130))/0x8*(parseInt(_0x4d0a50(0x126))/0x9)+parseInt(_0x4d0a50(0x150))/0xa;if(_0x3545b5===_0x1bc357)break;else _0x467ccc['push'](_0x467ccc['shift']());}catch(_0x3000d8){_0x467ccc['push'](_0x467ccc['shift']());}}}(_0x5f18,0x5dc2c),function(_0x36fe48,_0x34b1c7){const _0x3a4da0=_0x1b6d;typeof exports==_0x3a4da0(0x147)&&typeof module<'u'?_0x34b1c7(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x3a4da0(0x12a)&&define[_0x3a4da0(0x12b)]?define([_0x3a4da0(0x14c),_0x3a4da0(0x125),_0x3a4da0(0x154)],_0x34b1c7):(_0x36fe48=typeof globalThis<'u'?globalThis:_0x36fe48||self,_0x34b1c7(_0x36fe48['UniverProMcp'],_0x36fe48['UniverCoreFacade'],_0x36fe48[_0x3a4da0(0x148)]));}(this,function(_0x3827ce,_0x467e8b,_0x4d9d98){'use strict';const _0x2cba5a=_0x1b6d;class _0x581f48{get[_0x2cba5a(0x128)](){const _0x402f5f=_0x2cba5a;return _0x3827ce[_0x402f5f(0x153)][_0x402f5f(0x128)];}get[_0x2cba5a(0x139)](){const _0x43d296=_0x2cba5a;return _0x3827ce[_0x43d296(0x153)][_0x43d296(0x139)];}get[_0x2cba5a(0x137)](){const _0x38844e=_0x2cba5a;return _0x3827ce[_0x38844e(0x153)][_0x38844e(0x137)];}get['McpToolCallFailed'](){const _0x2eee4b=_0x2cba5a;return _0x3827ce['MCPEventId'][_0x2eee4b(0x13b)];}}_0x467e8b[_0x2cba5a(0x12c)][_0x2cba5a(0x12d)](_0x581f48);class _0x3e6500 extends _0x467e8b['FUniver']{[_0x2cba5a(0x12e)](_0x42e0ac){const _0x947afb=_0x2cba5a;this[_0x947afb(0x134)](_0x42e0ac);}[_0x2cba5a(0x134)](_0x9af219){const _0x43b683=_0x2cba5a,_0x592537=_0x9af219['get'](_0x3827ce[_0x43b683(0x129)]);this['registerEventHandler'](this[_0x43b683(0x14b)][_0x43b683(0x128)],()=>_0x4d9d98[_0x43b683(0x133)](_0x592537[_0x43b683(0x13e)][_0x43b683(0x143)](_0xa9874=>{const _0x4d2391=_0x43b683;_0xa9874[_0x4d2391(0x13f)]===_0x3827ce[_0x4d2391(0x153)]['McpConnectionStatusChanged']&&this['fireEvent'](this[_0x4d2391(0x14b)][_0x4d2391(0x128)],_0xa9874[_0x4d2391(0x14d)]);}))),this[_0x43b683(0x145)](this[_0x43b683(0x14b)]['McpToolCallReceived'],()=>_0x4d9d98[_0x43b683(0x133)](_0x592537[_0x43b683(0x13e)][_0x43b683(0x143)](_0x2ade81=>{const _0x3217ce=_0x43b683;_0x2ade81[_0x3217ce(0x13f)]===_0x3827ce['MCPEventId'][_0x3217ce(0x139)]&&this['fireEvent'](this['Event'][_0x3217ce(0x139)],_0x2ade81[_0x3217ce(0x14d)]);}))),this[_0x43b683(0x145)](this['Event'][_0x43b683(0x137)],()=>_0x4d9d98[_0x43b683(0x133)](_0x592537[_0x43b683(0x13e)][_0x43b683(0x143)](_0x2b7d15=>{const _0x547795=_0x43b683;_0x2b7d15[_0x547795(0x13f)]===_0x3827ce[_0x547795(0x153)][_0x547795(0x137)]&&this[_0x547795(0x14e)](this['Event'][_0x547795(0x137)],_0x2b7d15['data']);}))),this[_0x43b683(0x145)](this[_0x43b683(0x14b)][_0x43b683(0x13b)],()=>_0x4d9d98[_0x43b683(0x133)](_0x592537[_0x43b683(0x13e)][_0x43b683(0x143)](_0x3d2ea5=>{const _0x4b5443=_0x43b683;_0x3d2ea5[_0x4b5443(0x13f)]===_0x3827ce[_0x4b5443(0x153)][_0x4b5443(0x13b)]&&this[_0x4b5443(0x14e)](this[_0x4b5443(0x14b)]['McpToolCallFailed'],_0x3d2ea5[_0x4b5443(0x14d)]);})));}[_0x2cba5a(0x151)](_0x58769a,_0x14572e){const _0x5a06b5=_0x2cba5a;return this[_0x5a06b5(0x14f)][_0x5a06b5(0x13a)](_0x3827ce[_0x5a06b5(0x146)])[_0x5a06b5(0x132)](_0x58769a,_0x14572e);}[_0x2cba5a(0x141)](){const _0x260144=_0x2cba5a;return this[_0x260144(0x14f)][_0x260144(0x13a)](_0x3827ce[_0x260144(0x146)])[_0x260144(0x135)]();}[_0x2cba5a(0x14a)](_0x22a408,_0x778b48){const _0x2650ec=_0x2cba5a;return this[_0x2650ec(0x14f)][_0x2650ec(0x13a)](_0x3827ce[_0x2650ec(0x146)])['executeTool'](_0x22a408,_0x778b48);}[_0x2cba5a(0x12f)](){const _0xca4aa6=_0x2cba5a;return this[_0xca4aa6(0x14f)][_0xca4aa6(0x13a)](_0x3827ce[_0xca4aa6(0x142)])[_0xca4aa6(0x124)]();}['connectMCP'](){const _0x57d28b=_0x2cba5a;this[_0x57d28b(0x14f)][_0x57d28b(0x13a)](_0x3827ce[_0x57d28b(0x142)])[_0x57d28b(0x152)]();}['disconnectMCP'](){const _0x56a5ce=_0x2cba5a;this[_0x56a5ce(0x14f)][_0x56a5ce(0x13a)](_0x3827ce['MCPConnectionController'])[_0x56a5ce(0x127)]();}}_0x467e8b[_0x2cba5a(0x131)]['extend'](_0x3e6500);}));function _0x1b6d(_0x18b8d4,_0x566d3a){const _0x5f1872=_0x5f18();return _0x1b6d=function(_0x1b6ded,_0x17400c){_0x1b6ded=_0x1b6ded-0x124;let _0x15d11c=_0x5f1872[_0x1b6ded];return _0x15d11c;},_0x1b6d(_0x18b8d4,_0x566d3a);}function _0x5f18(){const _0x1463f9=['fireEvent','_injector','11741390MGsMNl','validateMCPToolCall','connect','MCPEventId','@univerjs/core','getConnectionStatus','@univerjs/core/facade','33102CUEfwu','disconnect','McpConnectionStatusChanged','MCPEventService','function','amd','FEventName','extend','_initialize','getMCPConnectionStatus','1264lujynB','FUniver','validateToolCall','toDisposable','_registerMCPFacadeEvents','getAllTools','3893673KEexZd','McpToolCallExecuted','83748DSWnuw','McpToolCallReceived','get','McpToolCallFailed','3cqPyqm','3289362JoxlEf','event$','type','15215AVfhNP','getAllMCPTools','MCPConnectionController','subscribe','224hABelf','registerEventHandler','IMCPToolRegistry','object','UniverCore','575238mqcgfC','callMCPTool','Event','@univerjs-pro/mcp','data'];_0x5f18=function(){return _0x1463f9;};return _0x5f18();}