@univerjs-pro/mcp 0.12.4-experimental.20251210-8d33c6e → 0.12.4-experimental.20251210-d708bff

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 _0x2a0d(){const _0x4ba7bd=['MCPEventService','event$','amd','connectMCP','McpToolCallReceived','1041798pfPgJy','getConnectionStatus','toDisposable','22846QoqIGK','fireEvent','IMCPToolRegistry','object','data','registerEventHandler','UniverCore','Event','59964JhlSCP','UniverCoreFacade','McpToolCallExecuted','type','MCPEventId','executeTool','UniverProMcp','_registerMCPFacadeEvents','McpConnectionStatusChanged','getMCPConnectionStatus','McpToolCallFailed','subscribe','FUniver','4821936IhzNir','32IuNbIE','MCPConnectionController','disconnectMCP','function','callMCPTool','_injector','extend','4531672sbawzQ','@univerjs/core/facade','3867327kEwHIu','connect','validateToolCall','62hXiDSx','188100RSewCp','get'];_0x2a0d=function(){return _0x4ba7bd;};return _0x2a0d();}function _0x4196(_0x57be66,_0x582f0d){_0x57be66=_0x57be66-0x1cf;const _0x2a0dc1=_0x2a0d();let _0x419694=_0x2a0dc1[_0x57be66];return _0x419694;}(function(_0x247af1,_0xb4677a){const _0x3c7f58=_0x4196,_0x33f39b=_0x247af1();while(!![]){try{const _0x1114bc=parseInt(_0x3c7f58(0x1ee))/0x1+-parseInt(_0x3c7f58(0x1e3))/0x2*(parseInt(_0x3c7f58(0x1f6))/0x3)+parseInt(_0x3c7f58(0x1d7))/0x4*(parseInt(_0x3c7f58(0x1e4))/0x5)+-parseInt(_0x3c7f58(0x1eb))/0x6+parseInt(_0x3c7f58(0x1d6))/0x7+parseInt(_0x3c7f58(0x1de))/0x8+-parseInt(_0x3c7f58(0x1e0))/0x9;if(_0x1114bc===_0xb4677a)break;else _0x33f39b['push'](_0x33f39b['shift']());}catch(_0x29df32){_0x33f39b['push'](_0x33f39b['shift']());}}}(_0x2a0d,0x56f35),function(_0x521a61,_0x1ca208){const _0x311098=_0x4196;typeof exports==_0x311098(0x1f1)&&typeof module<'u'?_0x1ca208(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x311098(0x1da)&&define[_0x311098(0x1e8)]?define(['@univerjs-pro/mcp',_0x311098(0x1df),'@univerjs/core'],_0x1ca208):(_0x521a61=typeof globalThis<'u'?globalThis:_0x521a61||self,_0x1ca208(_0x521a61[_0x311098(0x1cf)],_0x521a61[_0x311098(0x1f7)],_0x521a61[_0x311098(0x1f4)]));}(this,function(_0x3feccb,_0x121ded,_0x26e3d6){'use strict';const _0x348481=_0x4196;class _0x330eee{get[_0x348481(0x1d1)](){const _0x28b5c6=_0x348481;return _0x3feccb['MCPEventId'][_0x28b5c6(0x1d1)];}get[_0x348481(0x1ea)](){const _0x4ab283=_0x348481;return _0x3feccb['MCPEventId'][_0x4ab283(0x1ea)];}get[_0x348481(0x1f8)](){const _0x3ecd85=_0x348481;return _0x3feccb[_0x3ecd85(0x1fa)][_0x3ecd85(0x1f8)];}get[_0x348481(0x1d3)](){return _0x3feccb['MCPEventId']['McpToolCallFailed'];}}_0x121ded['FEventName'][_0x348481(0x1dd)](_0x330eee);class _0x33f72c extends _0x121ded[_0x348481(0x1d5)]{['_initialize'](_0x3acdee){const _0x291fce=_0x348481;this[_0x291fce(0x1d0)](_0x3acdee);}['_registerMCPFacadeEvents'](_0x3d4083){const _0xadbcb5=_0x348481,_0xa82253=_0x3d4083[_0xadbcb5(0x1e5)](_0x3feccb[_0xadbcb5(0x1e6)]);this['registerEventHandler'](this['Event'][_0xadbcb5(0x1d1)],()=>_0x26e3d6[_0xadbcb5(0x1ed)](_0xa82253[_0xadbcb5(0x1e7)][_0xadbcb5(0x1d4)](_0x4dcbfb=>{const _0x4db97b=_0xadbcb5;_0x4dcbfb[_0x4db97b(0x1f9)]===_0x3feccb[_0x4db97b(0x1fa)][_0x4db97b(0x1d1)]&&this['fireEvent'](this[_0x4db97b(0x1f5)][_0x4db97b(0x1d1)],_0x4dcbfb[_0x4db97b(0x1f2)]);}))),this[_0xadbcb5(0x1f3)](this['Event'][_0xadbcb5(0x1ea)],()=>_0x26e3d6[_0xadbcb5(0x1ed)](_0xa82253[_0xadbcb5(0x1e7)][_0xadbcb5(0x1d4)](_0x20839a=>{const _0x485082=_0xadbcb5;_0x20839a[_0x485082(0x1f9)]===_0x3feccb[_0x485082(0x1fa)][_0x485082(0x1ea)]&&this[_0x485082(0x1ef)](this[_0x485082(0x1f5)]['McpToolCallReceived'],_0x20839a[_0x485082(0x1f2)]);}))),this['registerEventHandler'](this['Event']['McpToolCallExecuted'],()=>_0x26e3d6[_0xadbcb5(0x1ed)](_0xa82253['event$'][_0xadbcb5(0x1d4)](_0xa77bc1=>{const _0x5ebbb7=_0xadbcb5;_0xa77bc1[_0x5ebbb7(0x1f9)]===_0x3feccb['MCPEventId']['McpToolCallExecuted']&&this['fireEvent'](this[_0x5ebbb7(0x1f5)]['McpToolCallExecuted'],_0xa77bc1[_0x5ebbb7(0x1f2)]);}))),this[_0xadbcb5(0x1f3)](this['Event'][_0xadbcb5(0x1d3)],()=>_0x26e3d6[_0xadbcb5(0x1ed)](_0xa82253[_0xadbcb5(0x1e7)]['subscribe'](_0x527012=>{const _0x40a81a=_0xadbcb5;_0x527012[_0x40a81a(0x1f9)]===_0x3feccb['MCPEventId'][_0x40a81a(0x1d3)]&&this[_0x40a81a(0x1ef)](this['Event'][_0x40a81a(0x1d3)],_0x527012[_0x40a81a(0x1f2)]);})));}['validateMCPToolCall'](_0x2d3a77,_0x43b547){const _0x14b052=_0x348481;return this[_0x14b052(0x1dc)][_0x14b052(0x1e5)](_0x3feccb[_0x14b052(0x1f0)])[_0x14b052(0x1e2)](_0x2d3a77,_0x43b547);}['getAllMCPTools'](){const _0x1744c4=_0x348481;return this['_injector'][_0x1744c4(0x1e5)](_0x3feccb[_0x1744c4(0x1f0)])['getAllTools']();}[_0x348481(0x1db)](_0x4c3a68,_0x5480c6){const _0x25d038=_0x348481;return this[_0x25d038(0x1dc)][_0x25d038(0x1e5)](_0x3feccb['IMCPToolRegistry'])[_0x25d038(0x1fb)](_0x4c3a68,_0x5480c6);}[_0x348481(0x1d2)](){const _0x3a61f2=_0x348481;return this[_0x3a61f2(0x1dc)]['get'](_0x3feccb[_0x3a61f2(0x1d8)])[_0x3a61f2(0x1ec)]();}[_0x348481(0x1e9)](){const _0xc978c3=_0x348481;this[_0xc978c3(0x1dc)][_0xc978c3(0x1e5)](_0x3feccb['MCPConnectionController'])[_0xc978c3(0x1e1)]();}[_0x348481(0x1d9)](){const _0x180bb0=_0x348481;this[_0x180bb0(0x1dc)]['get'](_0x3feccb['MCPConnectionController'])['disconnect']();}}_0x121ded[_0x348481(0x1d5)][_0x348481(0x1dd)](_0x33f72c);}));
1
+ function _0xfd25(_0x28f8ee,_0x15b3b7){_0x28f8ee=_0x28f8ee-0x84;const _0x10d9da=_0x10d9();let _0xfd25c=_0x10d9da[_0x28f8ee];return _0xfd25c;}(function(_0x445ab2,_0x56aae2){const _0x47b0eb=_0xfd25,_0x13b7fc=_0x445ab2();while(!![]){try{const _0x576c9e=-parseInt(_0x47b0eb(0x95))/0x1+-parseInt(_0x47b0eb(0x99))/0x2+-parseInt(_0x47b0eb(0xb3))/0x3+-parseInt(_0x47b0eb(0x94))/0x4*(parseInt(_0x47b0eb(0xa3))/0x5)+parseInt(_0x47b0eb(0xa9))/0x6*(-parseInt(_0x47b0eb(0x9f))/0x7)+-parseInt(_0x47b0eb(0x90))/0x8+parseInt(_0x47b0eb(0xaf))/0x9*(parseInt(_0x47b0eb(0x8d))/0xa);if(_0x576c9e===_0x56aae2)break;else _0x13b7fc['push'](_0x13b7fc['shift']());}catch(_0x135e7a){_0x13b7fc['push'](_0x13b7fc['shift']());}}}(_0x10d9,0x449f6),function(_0x2db0f3,_0x5cbe9c){const _0x12f79a=_0xfd25;typeof exports==_0x12f79a(0x9d)&&typeof module<'u'?_0x5cbe9c(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x12f79a(0xac)&&define[_0x12f79a(0xae)]?define([_0x12f79a(0x97),_0x12f79a(0xa1),_0x12f79a(0xaa)],_0x5cbe9c):(_0x2db0f3=typeof globalThis<'u'?globalThis:_0x2db0f3||self,_0x5cbe9c(_0x2db0f3[_0x12f79a(0x9a)],_0x2db0f3[_0x12f79a(0xa6)],_0x2db0f3[_0x12f79a(0xb1)]));}(this,function(_0x4ff90d,_0x531374,_0x5d4c48){'use strict';const _0x31f349=_0xfd25;class _0x1e2835{get[_0x31f349(0x8f)](){const _0x365346=_0x31f349;return _0x4ff90d[_0x365346(0x87)]['McpConnectionStatusChanged'];}get[_0x31f349(0x8a)](){const _0x5ec836=_0x31f349;return _0x4ff90d[_0x5ec836(0x87)][_0x5ec836(0x8a)];}get[_0x31f349(0x9e)](){const _0x483b64=_0x31f349;return _0x4ff90d[_0x483b64(0x87)][_0x483b64(0x9e)];}get[_0x31f349(0x86)](){return _0x4ff90d['MCPEventId']['McpToolCallFailed'];}}_0x531374[_0x31f349(0xb2)][_0x31f349(0x8e)](_0x1e2835);class _0x58b973 extends _0x531374[_0x31f349(0x9c)]{['_initialize'](_0x1363ec){const _0x71cb02=_0x31f349;this[_0x71cb02(0x98)](_0x1363ec);}[_0x31f349(0x98)](_0x25eb56){const _0x8b0650=_0x31f349,_0x39f913=_0x25eb56['get'](_0x4ff90d[_0x8b0650(0xa8)]);this[_0x8b0650(0xab)](this[_0x8b0650(0xad)][_0x8b0650(0x8f)],()=>_0x5d4c48[_0x8b0650(0xa5)](_0x39f913[_0x8b0650(0x8b)][_0x8b0650(0x89)](_0x373291=>{const _0x3761d5=_0x8b0650;_0x373291[_0x3761d5(0xa4)]===_0x4ff90d[_0x3761d5(0x87)][_0x3761d5(0x8f)]&&this[_0x3761d5(0x91)](this[_0x3761d5(0xad)]['McpConnectionStatusChanged'],_0x373291[_0x3761d5(0x96)]);}))),this[_0x8b0650(0xab)](this[_0x8b0650(0xad)]['McpToolCallReceived'],()=>_0x5d4c48['toDisposable'](_0x39f913[_0x8b0650(0x8b)]['subscribe'](_0x42f590=>{const _0x18f14d=_0x8b0650;_0x42f590['type']===_0x4ff90d[_0x18f14d(0x87)][_0x18f14d(0x8a)]&&this[_0x18f14d(0x91)](this[_0x18f14d(0xad)][_0x18f14d(0x8a)],_0x42f590['data']);}))),this['registerEventHandler'](this[_0x8b0650(0xad)]['McpToolCallExecuted'],()=>_0x5d4c48['toDisposable'](_0x39f913[_0x8b0650(0x8b)][_0x8b0650(0x89)](_0x11fc63=>{const _0x4100ba=_0x8b0650;_0x11fc63['type']===_0x4ff90d['MCPEventId']['McpToolCallExecuted']&&this[_0x4100ba(0x91)](this['Event'][_0x4100ba(0x9e)],_0x11fc63['data']);}))),this[_0x8b0650(0xab)](this['Event'][_0x8b0650(0x86)],()=>_0x5d4c48['toDisposable'](_0x39f913[_0x8b0650(0x8b)][_0x8b0650(0x89)](_0x1ae252=>{const _0x492ab8=_0x8b0650;_0x1ae252[_0x492ab8(0xa4)]===_0x4ff90d[_0x492ab8(0x87)]['McpToolCallFailed']&&this[_0x492ab8(0x91)](this[_0x492ab8(0xad)][_0x492ab8(0x86)],_0x1ae252['data']);})));}[_0x31f349(0xa7)](_0x588013,_0x2c5956){const _0x2a5869=_0x31f349;return this[_0x2a5869(0x85)][_0x2a5869(0x92)](_0x4ff90d[_0x2a5869(0x9b)])[_0x2a5869(0xa0)](_0x588013,_0x2c5956);}[_0x31f349(0xb4)](){const _0x5eff23=_0x31f349;return this[_0x5eff23(0x85)][_0x5eff23(0x92)](_0x4ff90d['IMCPToolRegistry'])['getAllTools']();}[_0x31f349(0x88)](_0x8d7ee3,_0x14198d){const _0x5f2625=_0x31f349;return this['_injector']['get'](_0x4ff90d[_0x5f2625(0x9b)])['executeTool'](_0x8d7ee3,_0x14198d);}[_0x31f349(0x8c)](){const _0x5aaf01=_0x31f349;return this[_0x5aaf01(0x85)][_0x5aaf01(0x92)](_0x4ff90d[_0x5aaf01(0x93)])[_0x5aaf01(0xb0)]();}['connectMCP'](){const _0x5c0c74=_0x31f349;this[_0x5c0c74(0x85)][_0x5c0c74(0x92)](_0x4ff90d[_0x5c0c74(0x93)])['connect']();}[_0x31f349(0x84)](){const _0x4e56fd=_0x31f349;this[_0x4e56fd(0x85)][_0x4e56fd(0x92)](_0x4ff90d[_0x4e56fd(0x93)])[_0x4e56fd(0xa2)]();}}_0x531374[_0x31f349(0x9c)]['extend'](_0x58b973);}));function _0x10d9(){const _0x3cfed1=['1196646LUMjQf','getAllMCPTools','disconnectMCP','_injector','McpToolCallFailed','MCPEventId','callMCPTool','subscribe','McpToolCallReceived','event$','getMCPConnectionStatus','1610RXMbYh','extend','McpConnectionStatusChanged','3599728IqIeOd','fireEvent','get','MCPConnectionController','2057300AzIpzs','355977dTQkNL','data','@univerjs-pro/mcp','_registerMCPFacadeEvents','52178ESIvXv','UniverProMcp','IMCPToolRegistry','FUniver','object','McpToolCallExecuted','462mhFJmt','validateToolCall','@univerjs/core/facade','disconnect','5MXTAmH','type','toDisposable','UniverCoreFacade','validateMCPToolCall','MCPEventService','26070GAMGzm','@univerjs/core','registerEventHandler','function','Event','amd','129303eWplUU','getConnectionStatus','UniverCore','FEventName'];_0x10d9=function(){return _0x3cfed1;};return _0x10d9();}