@univerjs-pro/mcp 0.15.0-insiders.20260107-3d1cfdf → 0.15.0-insiders.20260108-47c73e3

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 _0x2015(_0x9b2168,_0x29403a){_0x9b2168=_0x9b2168-0xe0;const _0x3bbadc=_0x3bba();let _0x20158e=_0x3bbadc[_0x9b2168];return _0x20158e;}function _0x3bba(){const _0x25d3da=['MCPConnectionController','@univerjs-pro/mcp','135yWVoFZ','380zpycUu','MCPEventService','UniverCore','McpConnectionStatusChanged','_initialize','UniverProMcp','extend','FUniver','131010IXmuKZ','disconnect','846CBwimw','1203160EVPPWJ','MCPEventId','487962KjglFO','IMCPToolRegistry','1036006qISlei','@univerjs/core','Event','get','getConnectionStatus','getAllTools','223225opnSOa','56LKxNtm','_registerMCPFacadeEvents','disconnectMCP','McpToolCallFailed','245768xGbkpT','function','event$','validateToolCall','McpToolCallExecuted','registerEventHandler','subscribe','FEventName','1948ZopChz','callMCPTool','UniverCoreFacade','fireEvent','_injector','toDisposable','McpToolCallReceived','type','data'];_0x3bba=function(){return _0x25d3da;};return _0x3bba();}(function(_0x225313,_0xd9914a){const _0x29dd80=_0x2015,_0x4766ef=_0x225313();while(!![]){try{const _0x14d643=-parseInt(_0x29dd80(0xe9))/0x1+parseInt(_0x29dd80(0xe3))/0x2+parseInt(_0x29dd80(0x10c))/0x3*(parseInt(_0x29dd80(0xf6))/0x4)+-parseInt(_0x29dd80(0x10d))/0x5+-parseInt(_0x29dd80(0xe1))/0x6*(parseInt(_0x29dd80(0xea))/0x7)+-parseInt(_0x29dd80(0xee))/0x8*(-parseInt(_0x29dd80(0x101))/0x9)+-parseInt(_0x29dd80(0x102))/0xa*(-parseInt(_0x29dd80(0x10a))/0xb);if(_0x14d643===_0xd9914a)break;else _0x4766ef['push'](_0x4766ef['shift']());}catch(_0x4d5187){_0x4766ef['push'](_0x4766ef['shift']());}}}(_0x3bba,0x6ee73),function(_0x5d752b,_0x3157b9){const _0x38e27d=_0x2015;typeof exports=='object'&&typeof module<'u'?_0x3157b9(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x38e27d(0xef)&&define['amd']?define([_0x38e27d(0x100),'@univerjs/core/facade',_0x38e27d(0xe4)],_0x3157b9):(_0x5d752b=typeof globalThis<'u'?globalThis:_0x5d752b||self,_0x3157b9(_0x5d752b[_0x38e27d(0x107)],_0x5d752b[_0x38e27d(0xf8)],_0x5d752b[_0x38e27d(0x104)]));}(this,function(_0x5c2020,_0x2d016d,_0x6623c1){'use strict';const _0x441936=_0x2015;class _0x3e3cb2{get[_0x441936(0x105)](){return _0x5c2020['MCPEventId']['McpConnectionStatusChanged'];}get[_0x441936(0xfc)](){return _0x5c2020['MCPEventId']['McpToolCallReceived'];}get[_0x441936(0xf2)](){const _0x19119d=_0x441936;return _0x5c2020[_0x19119d(0xe0)][_0x19119d(0xf2)];}get[_0x441936(0xed)](){const _0x29ace1=_0x441936;return _0x5c2020[_0x29ace1(0xe0)][_0x29ace1(0xed)];}}_0x2d016d[_0x441936(0xf5)]['extend'](_0x3e3cb2);class _0x3da9aa extends _0x2d016d[_0x441936(0x109)]{[_0x441936(0x106)](_0x5a4a5d){const _0x57deab=_0x441936;this[_0x57deab(0xeb)](_0x5a4a5d);}[_0x441936(0xeb)](_0x4d9a0e){const _0x2f0899=_0x441936,_0x4dd12b=_0x4d9a0e[_0x2f0899(0xe6)](_0x5c2020[_0x2f0899(0x103)]);this[_0x2f0899(0xf3)](this[_0x2f0899(0xe5)][_0x2f0899(0x105)],()=>_0x6623c1['toDisposable'](_0x4dd12b[_0x2f0899(0xf0)][_0x2f0899(0xf4)](_0x9c45fd=>{const _0x3e5262=_0x2f0899;_0x9c45fd['type']===_0x5c2020[_0x3e5262(0xe0)][_0x3e5262(0x105)]&&this[_0x3e5262(0xf9)](this[_0x3e5262(0xe5)][_0x3e5262(0x105)],_0x9c45fd[_0x3e5262(0xfe)]);}))),this[_0x2f0899(0xf3)](this[_0x2f0899(0xe5)][_0x2f0899(0xfc)],()=>_0x6623c1[_0x2f0899(0xfb)](_0x4dd12b[_0x2f0899(0xf0)][_0x2f0899(0xf4)](_0x48c238=>{const _0x3834e3=_0x2f0899;_0x48c238[_0x3834e3(0xfd)]===_0x5c2020[_0x3834e3(0xe0)]['McpToolCallReceived']&&this[_0x3834e3(0xf9)](this[_0x3834e3(0xe5)][_0x3834e3(0xfc)],_0x48c238['data']);}))),this['registerEventHandler'](this[_0x2f0899(0xe5)][_0x2f0899(0xf2)],()=>_0x6623c1[_0x2f0899(0xfb)](_0x4dd12b[_0x2f0899(0xf0)][_0x2f0899(0xf4)](_0x557204=>{const _0xd06840=_0x2f0899;_0x557204[_0xd06840(0xfd)]===_0x5c2020[_0xd06840(0xe0)]['McpToolCallExecuted']&&this[_0xd06840(0xf9)](this['Event'][_0xd06840(0xf2)],_0x557204[_0xd06840(0xfe)]);}))),this['registerEventHandler'](this[_0x2f0899(0xe5)]['McpToolCallFailed'],()=>_0x6623c1[_0x2f0899(0xfb)](_0x4dd12b[_0x2f0899(0xf0)][_0x2f0899(0xf4)](_0x6a6fbd=>{const _0x50ba5e=_0x2f0899;_0x6a6fbd[_0x50ba5e(0xfd)]===_0x5c2020[_0x50ba5e(0xe0)][_0x50ba5e(0xed)]&&this['fireEvent'](this[_0x50ba5e(0xe5)]['McpToolCallFailed'],_0x6a6fbd[_0x50ba5e(0xfe)]);})));}['validateMCPToolCall'](_0x32b9fa,_0x36f7cd){const _0x5874e7=_0x441936;return this['_injector'][_0x5874e7(0xe6)](_0x5c2020[_0x5874e7(0xe2)])[_0x5874e7(0xf1)](_0x32b9fa,_0x36f7cd);}['getAllMCPTools'](){const _0x30e7cc=_0x441936;return this[_0x30e7cc(0xfa)][_0x30e7cc(0xe6)](_0x5c2020['IMCPToolRegistry'])[_0x30e7cc(0xe8)]();}[_0x441936(0xf7)](_0x57385e,_0x5882a4){const _0x62def8=_0x441936;return this[_0x62def8(0xfa)]['get'](_0x5c2020[_0x62def8(0xe2)])['executeTool'](_0x57385e,_0x5882a4);}['getMCPConnectionStatus'](){const _0x2ad6c2=_0x441936;return this[_0x2ad6c2(0xfa)]['get'](_0x5c2020['MCPConnectionController'])[_0x2ad6c2(0xe7)]();}['connectMCP'](){const _0x3f501d=_0x441936;this[_0x3f501d(0xfa)][_0x3f501d(0xe6)](_0x5c2020[_0x3f501d(0xff)])['connect']();}[_0x441936(0xec)](){const _0x3fb8ec=_0x441936;this[_0x3fb8ec(0xfa)][_0x3fb8ec(0xe6)](_0x5c2020[_0x3fb8ec(0xff)])[_0x3fb8ec(0x10b)]();}}_0x2d016d[_0x441936(0x109)][_0x441936(0x108)](_0x3da9aa);}));
1
+ function _0xa2d7(){const _0x492992=['McpToolCallFailed','object','1029966yrAISZ','disconnectMCP','validateToolCall','138rEFAHN','FEventName','connect','1558ZSRNzM','IMCPToolRegistry','262805IGseSk','UniverCore','toDisposable','FUniver','1795708LdZpsM','MCPEventId','getConnectionStatus','connectMCP','disconnect','MCPConnectionController','event$','getMCPConnectionStatus','@univerjs/core','function','McpConnectionStatusChanged','fireEvent','_injector','McpToolCallReceived','amd','45882716vkTqds','45oSWjvm','get','2626016QFyoiv','registerEventHandler','McpToolCallExecuted','subscribe','4115000vdPfpJ','executeTool','UniverProMcp','getAllTools','type','3hrjomG','MCPEventService','UniverCoreFacade','_registerMCPFacadeEvents','Event','1849SWNybf','data'];_0xa2d7=function(){return _0x492992;};return _0xa2d7();}function _0x45a1(_0x24c6f6,_0xc1bdd6){_0x24c6f6=_0x24c6f6-0x189;const _0xa2d768=_0xa2d7();let _0x45a1b6=_0xa2d768[_0x24c6f6];return _0x45a1b6;}(function(_0x479fc1,_0x11c951){const _0x256273=_0x45a1,_0x47e129=_0x479fc1();while(!![]){try{const _0x31de48=parseInt(_0x256273(0x19f))/0x1*(parseInt(_0x256273(0x1a9))/0x2)+parseInt(_0x256273(0x19a))/0x3*(parseInt(_0x256273(0x1af))/0x4)+parseInt(_0x256273(0x1ab))/0x5*(parseInt(_0x256273(0x1a6))/0x6)+-parseInt(_0x256273(0x1a3))/0x7+parseInt(_0x256273(0x191))/0x8*(parseInt(_0x256273(0x18f))/0x9)+parseInt(_0x256273(0x195))/0xa+-parseInt(_0x256273(0x18e))/0xb;if(_0x31de48===_0x11c951)break;else _0x47e129['push'](_0x47e129['shift']());}catch(_0x14e215){_0x47e129['push'](_0x47e129['shift']());}}}(_0xa2d7,0xcb49b),function(_0x165281,_0x4671af){const _0x47d6a0=_0x45a1;typeof exports==_0x47d6a0(0x1a2)&&typeof module<'u'?_0x4671af(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x47d6a0(0x1b8)&&define[_0x47d6a0(0x18d)]?define(['@univerjs-pro/mcp','@univerjs/core/facade',_0x47d6a0(0x1b7)],_0x4671af):(_0x165281=typeof globalThis<'u'?globalThis:_0x165281||self,_0x4671af(_0x165281[_0x47d6a0(0x197)],_0x165281[_0x47d6a0(0x19c)],_0x165281[_0x47d6a0(0x1ac)]));}(this,function(_0x376600,_0x2c0998,_0x3282e1){'use strict';const _0x53b2d0=_0x45a1;class _0x4bb1f8{get[_0x53b2d0(0x189)](){const _0x1de4ef=_0x53b2d0;return _0x376600[_0x1de4ef(0x1b0)][_0x1de4ef(0x189)];}get[_0x53b2d0(0x18c)](){const _0x2b2d12=_0x53b2d0;return _0x376600[_0x2b2d12(0x1b0)][_0x2b2d12(0x18c)];}get[_0x53b2d0(0x193)](){const _0x15b8de=_0x53b2d0;return _0x376600[_0x15b8de(0x1b0)]['McpToolCallExecuted'];}get['McpToolCallFailed'](){const _0x33d5a6=_0x53b2d0;return _0x376600['MCPEventId'][_0x33d5a6(0x1a1)];}}_0x2c0998[_0x53b2d0(0x1a7)]['extend'](_0x4bb1f8);class _0x2c7019 extends _0x2c0998['FUniver']{['_initialize'](_0x3e0c65){this['_registerMCPFacadeEvents'](_0x3e0c65);}[_0x53b2d0(0x19d)](_0x4d5fab){const _0x37e11f=_0x53b2d0,_0xbfd8f9=_0x4d5fab[_0x37e11f(0x190)](_0x376600[_0x37e11f(0x19b)]);this['registerEventHandler'](this[_0x37e11f(0x19e)]['McpConnectionStatusChanged'],()=>_0x3282e1[_0x37e11f(0x1ad)](_0xbfd8f9['event$'][_0x37e11f(0x194)](_0xbe8845=>{const _0x4bcdd2=_0x37e11f;_0xbe8845['type']===_0x376600['MCPEventId'][_0x4bcdd2(0x189)]&&this[_0x4bcdd2(0x18a)](this['Event'][_0x4bcdd2(0x189)],_0xbe8845[_0x4bcdd2(0x1a0)]);}))),this[_0x37e11f(0x192)](this[_0x37e11f(0x19e)]['McpToolCallReceived'],()=>_0x3282e1[_0x37e11f(0x1ad)](_0xbfd8f9['event$'][_0x37e11f(0x194)](_0x339e58=>{const _0x5aa924=_0x37e11f;_0x339e58['type']===_0x376600[_0x5aa924(0x1b0)][_0x5aa924(0x18c)]&&this[_0x5aa924(0x18a)](this[_0x5aa924(0x19e)]['McpToolCallReceived'],_0x339e58[_0x5aa924(0x1a0)]);}))),this[_0x37e11f(0x192)](this['Event']['McpToolCallExecuted'],()=>_0x3282e1[_0x37e11f(0x1ad)](_0xbfd8f9['event$'][_0x37e11f(0x194)](_0x4a4ba9=>{const _0xff1eec=_0x37e11f;_0x4a4ba9[_0xff1eec(0x199)]===_0x376600['MCPEventId'][_0xff1eec(0x193)]&&this[_0xff1eec(0x18a)](this[_0xff1eec(0x19e)][_0xff1eec(0x193)],_0x4a4ba9['data']);}))),this[_0x37e11f(0x192)](this[_0x37e11f(0x19e)][_0x37e11f(0x1a1)],()=>_0x3282e1[_0x37e11f(0x1ad)](_0xbfd8f9[_0x37e11f(0x1b5)]['subscribe'](_0x2da56d=>{const _0xc455a1=_0x37e11f;_0x2da56d['type']===_0x376600[_0xc455a1(0x1b0)][_0xc455a1(0x1a1)]&&this[_0xc455a1(0x18a)](this[_0xc455a1(0x19e)][_0xc455a1(0x1a1)],_0x2da56d[_0xc455a1(0x1a0)]);})));}['validateMCPToolCall'](_0x4df771,_0x4e05c5){const _0x5cc8ae=_0x53b2d0;return this[_0x5cc8ae(0x18b)][_0x5cc8ae(0x190)](_0x376600[_0x5cc8ae(0x1aa)])[_0x5cc8ae(0x1a5)](_0x4df771,_0x4e05c5);}['getAllMCPTools'](){const _0xee2d9a=_0x53b2d0;return this['_injector'][_0xee2d9a(0x190)](_0x376600[_0xee2d9a(0x1aa)])[_0xee2d9a(0x198)]();}['callMCPTool'](_0x118e90,_0x2fd360){const _0x108fcb=_0x53b2d0;return this[_0x108fcb(0x18b)][_0x108fcb(0x190)](_0x376600['IMCPToolRegistry'])[_0x108fcb(0x196)](_0x118e90,_0x2fd360);}[_0x53b2d0(0x1b6)](){const _0x717f04=_0x53b2d0;return this[_0x717f04(0x18b)][_0x717f04(0x190)](_0x376600[_0x717f04(0x1b4)])[_0x717f04(0x1b1)]();}[_0x53b2d0(0x1b2)](){const _0x454547=_0x53b2d0;this[_0x454547(0x18b)]['get'](_0x376600[_0x454547(0x1b4)])[_0x454547(0x1a8)]();}[_0x53b2d0(0x1a4)](){const _0x2c7e2a=_0x53b2d0;this[_0x2c7e2a(0x18b)][_0x2c7e2a(0x190)](_0x376600[_0x2c7e2a(0x1b4)])[_0x2c7e2a(0x1b3)]();}}_0x2c0998[_0x53b2d0(0x1ae)]['extend'](_0x2c7019);}));