@univerjs-pro/mcp 0.13.0 → 0.14.0-insiders.20251222-4efcfbb

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/es/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x1ae9d8=_0x2e53;(function(_0x119562,_0x1f6964){const _0x57b1cd=_0x2e53,_0x2b9e4e=_0x119562();while(!![]){try{const _0x2aab13=-parseInt(_0x57b1cd(0x185))/0x1+parseInt(_0x57b1cd(0x17a))/0x2+-parseInt(_0x57b1cd(0x19a))/0x3*(parseInt(_0x57b1cd(0x17b))/0x4)+parseInt(_0x57b1cd(0x199))/0x5*(-parseInt(_0x57b1cd(0x183))/0x6)+-parseInt(_0x57b1cd(0x17f))/0x7*(-parseInt(_0x57b1cd(0x181))/0x8)+parseInt(_0x57b1cd(0x184))/0x9*(-parseInt(_0x57b1cd(0x198))/0xa)+-parseInt(_0x57b1cd(0x17c))/0xb*(-parseInt(_0x57b1cd(0x189))/0xc);if(_0x2aab13===_0x1f6964)break;else _0x2b9e4e['push'](_0x2b9e4e['shift']());}catch(_0xf311ff){_0x2b9e4e['push'](_0x2b9e4e['shift']());}}}(_0x201f,0x7ac21));import{MCPEventId as _0x44ca94,MCPEventService as _0x25bd13,IMCPToolRegistry as _0x5db10e,MCPConnectionController as _0x28d8ab}from'@univerjs-pro/mcp';import{FEventName as _0x354157,FUniver as _0x2e26b5}from'@univerjs/core/facade';import{toDisposable as _0x48dbc3}from'@univerjs/core';function _0x201f(){const _0x5c47b9=['_injector','177338hmHHDA','callMCPTool','288CfMXtT','subscribe','339696mNCjZs','8442333CJlQbR','580287hREfKb','McpConnectionStatusChanged','fireEvent','registerEventHandler','393324kjiBuH','Event','getAllTools','get','executeTool','data','validateToolCall','extend','McpToolCallFailed','connectMCP','event$','disconnectMCP','McpToolCallExecuted','McpToolCallReceived','type','10iAjdci','20gLvMCN','549FcPvIn','getAllMCPTools','disconnect','_registerMCPFacadeEvents','485612gIRiOh','18384aGjTrc','649DbXeZo','getConnectionStatus'];_0x201f=function(){return _0x5c47b9;};return _0x201f();}class d{get[_0x1ae9d8(0x186)](){const _0x23d216=_0x1ae9d8;return _0x44ca94[_0x23d216(0x186)];}get['McpToolCallReceived'](){const _0x26f782=_0x1ae9d8;return _0x44ca94[_0x26f782(0x196)];}get[_0x1ae9d8(0x195)](){const _0x4092ee=_0x1ae9d8;return _0x44ca94[_0x4092ee(0x195)];}get[_0x1ae9d8(0x191)](){const _0x1c047d=_0x1ae9d8;return _0x44ca94[_0x1c047d(0x191)];}}_0x354157[_0x1ae9d8(0x190)](d);function _0x2e53(_0xa488c8,_0x2f2945){_0xa488c8=_0xa488c8-0x17a;const _0x201f50=_0x201f();let _0x2e5378=_0x201f50[_0xa488c8];return _0x2e5378;}class M extends _0x2e26b5{['_initialize'](_0x33e653){this['_registerMCPFacadeEvents'](_0x33e653);}[_0x1ae9d8(0x19d)](_0x544275){const _0x69cadf=_0x1ae9d8,_0x187fa1=_0x544275[_0x69cadf(0x18c)](_0x25bd13);this[_0x69cadf(0x188)](this['Event'][_0x69cadf(0x186)],()=>_0x48dbc3(_0x187fa1['event$']['subscribe'](_0x380874=>{const _0x4c2738=_0x69cadf;_0x380874[_0x4c2738(0x197)]===_0x44ca94[_0x4c2738(0x186)]&&this['fireEvent'](this[_0x4c2738(0x18a)][_0x4c2738(0x186)],_0x380874[_0x4c2738(0x18e)]);}))),this[_0x69cadf(0x188)](this[_0x69cadf(0x18a)][_0x69cadf(0x196)],()=>_0x48dbc3(_0x187fa1[_0x69cadf(0x193)][_0x69cadf(0x182)](_0xd75861=>{const _0x3a4f2b=_0x69cadf;_0xd75861['type']===_0x44ca94['McpToolCallReceived']&&this[_0x3a4f2b(0x187)](this['Event'][_0x3a4f2b(0x196)],_0xd75861[_0x3a4f2b(0x18e)]);}))),this[_0x69cadf(0x188)](this[_0x69cadf(0x18a)][_0x69cadf(0x195)],()=>_0x48dbc3(_0x187fa1[_0x69cadf(0x193)]['subscribe'](_0x15559e=>{const _0x313e71=_0x69cadf;_0x15559e['type']===_0x44ca94[_0x313e71(0x195)]&&this[_0x313e71(0x187)](this[_0x313e71(0x18a)][_0x313e71(0x195)],_0x15559e[_0x313e71(0x18e)]);}))),this[_0x69cadf(0x188)](this['Event'][_0x69cadf(0x191)],()=>_0x48dbc3(_0x187fa1['event$']['subscribe'](_0x534528=>{const _0x16c663=_0x69cadf;_0x534528[_0x16c663(0x197)]===_0x44ca94['McpToolCallFailed']&&this['fireEvent'](this['Event'][_0x16c663(0x191)],_0x534528[_0x16c663(0x18e)]);})));}['validateMCPToolCall'](_0x3e3462,_0x284121){const _0x5119d9=_0x1ae9d8;return this[_0x5119d9(0x17e)][_0x5119d9(0x18c)](_0x5db10e)[_0x5119d9(0x18f)](_0x3e3462,_0x284121);}[_0x1ae9d8(0x19b)](){const _0x5cf355=_0x1ae9d8;return this[_0x5cf355(0x17e)]['get'](_0x5db10e)[_0x5cf355(0x18b)]();}[_0x1ae9d8(0x180)](_0x55ea17,_0x57229b){const _0xf11153=_0x1ae9d8;return this[_0xf11153(0x17e)]['get'](_0x5db10e)[_0xf11153(0x18d)](_0x55ea17,_0x57229b);}['getMCPConnectionStatus'](){const _0x30df96=_0x1ae9d8;return this[_0x30df96(0x17e)][_0x30df96(0x18c)](_0x28d8ab)[_0x30df96(0x17d)]();}[_0x1ae9d8(0x192)](){this['_injector']['get'](_0x28d8ab)['connect']();}[_0x1ae9d8(0x194)](){const _0x4d6a9e=_0x1ae9d8;this[_0x4d6a9e(0x17e)]['get'](_0x28d8ab)[_0x4d6a9e(0x19c)]();}}_0x2e26b5[_0x1ae9d8(0x190)](M);
1
+ const _0x35c9c9=_0x6f3e;(function(_0x1dda83,_0x4ab5af){const _0x3bc478=_0x6f3e,_0x5e582a=_0x1dda83();while(!![]){try{const _0x27d192=-parseInt(_0x3bc478(0x20a))/0x1+-parseInt(_0x3bc478(0x20d))/0x2+-parseInt(_0x3bc478(0x212))/0x3*(parseInt(_0x3bc478(0x203))/0x4)+parseInt(_0x3bc478(0x20f))/0x5*(-parseInt(_0x3bc478(0x202))/0x6)+parseInt(_0x3bc478(0x1f9))/0x7*(-parseInt(_0x3bc478(0x211))/0x8)+-parseInt(_0x3bc478(0x214))/0x9+parseInt(_0x3bc478(0x1f2))/0xa;if(_0x27d192===_0x4ab5af)break;else _0x5e582a['push'](_0x5e582a['shift']());}catch(_0x5104a8){_0x5e582a['push'](_0x5e582a['shift']());}}}(_0x3a91,0x524de));import{MCPEventId as _0x530eb1,MCPEventService as _0x21d4fd,IMCPToolRegistry as _0x323de1,MCPConnectionController as _0x16b8d4}from'@univerjs-pro/mcp';import{FEventName as _0x22e749,FUniver as _0x2bd602}from'@univerjs/core/facade';import{toDisposable as _0x5b62dc}from'@univerjs/core';function _0x6f3e(_0x4825dd,_0xb9601b){_0x4825dd=_0x4825dd-0x1f0;const _0x3a91e9=_0x3a91();let _0x6f3e8b=_0x3a91e9[_0x4825dd];return _0x6f3e8b;}class d{get[_0x35c9c9(0x200)](){const _0x22f862=_0x35c9c9;return _0x530eb1[_0x22f862(0x200)];}get[_0x35c9c9(0x1f6)](){const _0x196e6b=_0x35c9c9;return _0x530eb1[_0x196e6b(0x1f6)];}get[_0x35c9c9(0x1f4)](){return _0x530eb1['McpToolCallExecuted'];}get[_0x35c9c9(0x1f8)](){return _0x530eb1['McpToolCallFailed'];}}_0x22e749[_0x35c9c9(0x206)](d);class M extends _0x2bd602{[_0x35c9c9(0x1f7)](_0x4e155f){const _0x325388=_0x35c9c9;this[_0x325388(0x209)](_0x4e155f);}[_0x35c9c9(0x209)](_0x3b8256){const _0x5b9079=_0x35c9c9,_0x591b6e=_0x3b8256[_0x5b9079(0x20b)](_0x21d4fd);this['registerEventHandler'](this[_0x5b9079(0x1fd)][_0x5b9079(0x200)],()=>_0x5b62dc(_0x591b6e[_0x5b9079(0x205)][_0x5b9079(0x1f1)](_0x309770=>{const _0x38b16b=_0x5b9079;_0x309770[_0x38b16b(0x1f3)]===_0x530eb1[_0x38b16b(0x200)]&&this['fireEvent'](this[_0x38b16b(0x1fd)][_0x38b16b(0x200)],_0x309770[_0x38b16b(0x207)]);}))),this[_0x5b9079(0x1ff)](this[_0x5b9079(0x1fd)][_0x5b9079(0x1f6)],()=>_0x5b62dc(_0x591b6e[_0x5b9079(0x205)]['subscribe'](_0x264878=>{const _0x51b8d8=_0x5b9079;_0x264878[_0x51b8d8(0x1f3)]===_0x530eb1[_0x51b8d8(0x1f6)]&&this[_0x51b8d8(0x1f0)](this[_0x51b8d8(0x1fd)][_0x51b8d8(0x1f6)],_0x264878[_0x51b8d8(0x207)]);}))),this['registerEventHandler'](this['Event'][_0x5b9079(0x1f4)],()=>_0x5b62dc(_0x591b6e[_0x5b9079(0x205)]['subscribe'](_0x5e7e48=>{const _0x48927c=_0x5b9079;_0x5e7e48[_0x48927c(0x1f3)]===_0x530eb1[_0x48927c(0x1f4)]&&this['fireEvent'](this[_0x48927c(0x1fd)][_0x48927c(0x1f4)],_0x5e7e48[_0x48927c(0x207)]);}))),this[_0x5b9079(0x1ff)](this[_0x5b9079(0x1fd)][_0x5b9079(0x1f8)],()=>_0x5b62dc(_0x591b6e[_0x5b9079(0x205)][_0x5b9079(0x1f1)](_0x58f900=>{const _0xcd392f=_0x5b9079;_0x58f900[_0xcd392f(0x1f3)]===_0x530eb1[_0xcd392f(0x1f8)]&&this[_0xcd392f(0x1f0)](this[_0xcd392f(0x1fd)][_0xcd392f(0x1f8)],_0x58f900[_0xcd392f(0x207)]);})));}[_0x35c9c9(0x210)](_0x1eb88c,_0x5ae1f4){const _0x4fe6e2=_0x35c9c9;return this['_injector']['get'](_0x323de1)[_0x4fe6e2(0x1fe)](_0x1eb88c,_0x5ae1f4);}[_0x35c9c9(0x1fb)](){const _0x562d42=_0x35c9c9;return this[_0x562d42(0x1f5)][_0x562d42(0x20b)](_0x323de1)[_0x562d42(0x1fc)]();}[_0x35c9c9(0x201)](_0x583861,_0x281a31){const _0x189840=_0x35c9c9;return this[_0x189840(0x1f5)]['get'](_0x323de1)[_0x189840(0x204)](_0x583861,_0x281a31);}[_0x35c9c9(0x20e)](){const _0x567001=_0x35c9c9;return this[_0x567001(0x1f5)]['get'](_0x16b8d4)[_0x567001(0x20c)]();}[_0x35c9c9(0x1fa)](){const _0x248abe=_0x35c9c9;this['_injector'][_0x248abe(0x20b)](_0x16b8d4)[_0x248abe(0x213)]();}[_0x35c9c9(0x208)](){const _0x4db2a7=_0x35c9c9;this[_0x4db2a7(0x1f5)][_0x4db2a7(0x20b)](_0x16b8d4)['disconnect']();}}_0x2bd602[_0x35c9c9(0x206)](M);function _0x3a91(){const _0x317699=['McpToolCallExecuted','_injector','McpToolCallReceived','_initialize','McpToolCallFailed','14RwoIGd','connectMCP','getAllMCPTools','getAllTools','Event','validateToolCall','registerEventHandler','McpConnectionStatusChanged','callMCPTool','6pPemtV','890552OXrlbi','executeTool','event$','extend','data','disconnectMCP','_registerMCPFacadeEvents','443440NuUQAA','get','getConnectionStatus','440808UiSAWv','getMCPConnectionStatus','3219915GnVpwa','validateMCPToolCall','294512KDlODe','3JWcilp','connect','1810782qNFZba','fireEvent','subscribe','21424090VPSvZH','type'];_0x3a91=function(){return _0x317699;};return _0x3a91();}