@univerjs-pro/mcp 0.12.2-nightly.202511290905 → 0.12.3-experimental.20251204-1549a8e

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(_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();}
1
+ function _0x19c2(_0x47730b,_0x57f308){_0x47730b=_0x47730b-0x88;const _0x2723ba=_0x2723();let _0x19c2d2=_0x2723ba[_0x47730b];return _0x19c2d2;}function _0x2723(){const _0x166d00=['McpToolCallExecuted','944288vBIIdx','45BGitGl','connectMCP','IMCPToolRegistry','@univerjs-pro/mcp','10810RXzwxH','@univerjs/core/facade','data','function','connect','validateToolCall','Event','MCPEventId','getConnectionStatus','McpConnectionStatusChanged','fireEvent','20834NwjPMd','5895813lXYbIk','object','404dqiijs','validateMCPToolCall','getAllTools','subscribe','UniverProMcp','5TEVQbK','32517CyjHVC','_injector','FUniver','_registerMCPFacadeEvents','get','callMCPTool','@univerjs/core','910445OXEmor','MCPConnectionController','1167736wikkjG','MCPEventService','getMCPConnectionStatus','disconnect','UniverCore','getAllMCPTools','6791328OhpjDW','event$','McpToolCallFailed','type','McpToolCallReceived','amd','executeTool','toDisposable','FEventName','registerEventHandler'];_0x2723=function(){return _0x166d00;};return _0x2723();}(function(_0x530e70,_0x332cba){const _0x3e8e71=_0x19c2,_0xf4cb7e=_0x530e70();while(!![]){try{const _0xfd9c26=-parseInt(_0x3e8e71(0xa7))/0x1+-parseInt(_0x3e8e71(0xba))/0x2+parseInt(_0x3e8e71(0xa0))/0x3*(-parseInt(_0x3e8e71(0x9a))/0x4)+parseInt(_0x3e8e71(0x9f))/0x5*(parseInt(_0x3e8e71(0xaf))/0x6)+-parseInt(_0x3e8e71(0x98))/0x7+parseInt(_0x3e8e71(0xa9))/0x8*(parseInt(_0x3e8e71(0x88))/0x9)+-parseInt(_0x3e8e71(0x8c))/0xa*(-parseInt(_0x3e8e71(0x97))/0xb);if(_0xfd9c26===_0x332cba)break;else _0xf4cb7e['push'](_0xf4cb7e['shift']());}catch(_0x33ac57){_0xf4cb7e['push'](_0xf4cb7e['shift']());}}}(_0x2723,0x8feee),function(_0x4187a4,_0x241789){const _0xbf5d80=_0x19c2;typeof exports==_0xbf5d80(0x99)&&typeof module<'u'?_0x241789(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0xbf5d80(0x8f)&&define[_0xbf5d80(0xb4)]?define([_0xbf5d80(0x8b),_0xbf5d80(0x8d),_0xbf5d80(0xa6)],_0x241789):(_0x4187a4=typeof globalThis<'u'?globalThis:_0x4187a4||self,_0x241789(_0x4187a4[_0xbf5d80(0x9e)],_0x4187a4['UniverCoreFacade'],_0x4187a4[_0xbf5d80(0xad)]));}(this,function(_0xba085f,_0x1e9f06,_0x464888){'use strict';const _0x387be1=_0x19c2;class _0x149f00{get[_0x387be1(0x95)](){const _0x6e7da7=_0x387be1;return _0xba085f[_0x6e7da7(0x93)][_0x6e7da7(0x95)];}get['McpToolCallReceived'](){const _0x2484fe=_0x387be1;return _0xba085f['MCPEventId'][_0x2484fe(0xb3)];}get['McpToolCallExecuted'](){const _0x52fcfb=_0x387be1;return _0xba085f[_0x52fcfb(0x93)]['McpToolCallExecuted'];}get[_0x387be1(0xb1)](){const _0x2ff967=_0x387be1;return _0xba085f[_0x2ff967(0x93)][_0x2ff967(0xb1)];}}_0x1e9f06[_0x387be1(0xb7)]['extend'](_0x149f00);class _0x545894 extends _0x1e9f06[_0x387be1(0xa2)]{['_initialize'](_0x328546){const _0x43955f=_0x387be1;this[_0x43955f(0xa3)](_0x328546);}[_0x387be1(0xa3)](_0x50ec3c){const _0x4a5afb=_0x387be1,_0x16d031=_0x50ec3c[_0x4a5afb(0xa4)](_0xba085f[_0x4a5afb(0xaa)]);this[_0x4a5afb(0xb8)](this[_0x4a5afb(0x92)][_0x4a5afb(0x95)],()=>_0x464888['toDisposable'](_0x16d031[_0x4a5afb(0xb0)][_0x4a5afb(0x9d)](_0x44cfcd=>{const _0x1bdae5=_0x4a5afb;_0x44cfcd['type']===_0xba085f[_0x1bdae5(0x93)][_0x1bdae5(0x95)]&&this[_0x1bdae5(0x96)](this[_0x1bdae5(0x92)][_0x1bdae5(0x95)],_0x44cfcd[_0x1bdae5(0x8e)]);}))),this[_0x4a5afb(0xb8)](this[_0x4a5afb(0x92)][_0x4a5afb(0xb3)],()=>_0x464888['toDisposable'](_0x16d031[_0x4a5afb(0xb0)]['subscribe'](_0x3dab19=>{const _0x2155ad=_0x4a5afb;_0x3dab19[_0x2155ad(0xb2)]===_0xba085f[_0x2155ad(0x93)][_0x2155ad(0xb3)]&&this['fireEvent'](this[_0x2155ad(0x92)]['McpToolCallReceived'],_0x3dab19[_0x2155ad(0x8e)]);}))),this[_0x4a5afb(0xb8)](this[_0x4a5afb(0x92)][_0x4a5afb(0xb9)],()=>_0x464888[_0x4a5afb(0xb6)](_0x16d031['event$'][_0x4a5afb(0x9d)](_0x15a5f1=>{const _0x2d640f=_0x4a5afb;_0x15a5f1[_0x2d640f(0xb2)]===_0xba085f['MCPEventId'][_0x2d640f(0xb9)]&&this['fireEvent'](this['Event'][_0x2d640f(0xb9)],_0x15a5f1['data']);}))),this['registerEventHandler'](this[_0x4a5afb(0x92)][_0x4a5afb(0xb1)],()=>_0x464888['toDisposable'](_0x16d031[_0x4a5afb(0xb0)][_0x4a5afb(0x9d)](_0x13a1f0=>{const _0x3605b=_0x4a5afb;_0x13a1f0['type']===_0xba085f[_0x3605b(0x93)]['McpToolCallFailed']&&this[_0x3605b(0x96)](this[_0x3605b(0x92)][_0x3605b(0xb1)],_0x13a1f0[_0x3605b(0x8e)]);})));}[_0x387be1(0x9b)](_0x854d71,_0x466517){const _0x58c225=_0x387be1;return this[_0x58c225(0xa1)][_0x58c225(0xa4)](_0xba085f[_0x58c225(0x8a)])[_0x58c225(0x91)](_0x854d71,_0x466517);}[_0x387be1(0xae)](){const _0x49fd36=_0x387be1;return this[_0x49fd36(0xa1)]['get'](_0xba085f[_0x49fd36(0x8a)])[_0x49fd36(0x9c)]();}[_0x387be1(0xa5)](_0x27bed4,_0x440315){const _0x16a144=_0x387be1;return this[_0x16a144(0xa1)][_0x16a144(0xa4)](_0xba085f['IMCPToolRegistry'])[_0x16a144(0xb5)](_0x27bed4,_0x440315);}[_0x387be1(0xab)](){const _0x2559e3=_0x387be1;return this[_0x2559e3(0xa1)]['get'](_0xba085f[_0x2559e3(0xa8)])[_0x2559e3(0x94)]();}[_0x387be1(0x89)](){const _0x262d7d=_0x387be1;this[_0x262d7d(0xa1)][_0x262d7d(0xa4)](_0xba085f[_0x262d7d(0xa8)])[_0x262d7d(0x90)]();}['disconnectMCP'](){const _0x494328=_0x387be1;this[_0x494328(0xa1)][_0x494328(0xa4)](_0xba085f[_0x494328(0xa8)])[_0x494328(0xac)]();}}_0x1e9f06[_0x387be1(0xa2)]['extend'](_0x545894);}));