@univerjs-pro/mcp 0.10.8-nightly.202509200616 → 0.10.9-experimental.20250925-61b61a0

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
- function _0xe431(_0x379f78,_0x2eec30){var _0x50547c=_0x5054();return _0xe431=function(_0xe431a6,_0x276880){_0xe431a6=_0xe431a6-0xdd;var _0x279f9e=_0x50547c[_0xe431a6];return _0x279f9e;},_0xe431(_0x379f78,_0x2eec30);}var _0x40e0d0=_0xe431;(function(_0x52cab8,_0x57deb8){var _0xbf592a=_0xe431,_0xfb3cbd=_0x52cab8();while(!![]){try{var _0x3d0998=-parseInt(_0xbf592a(0xdf))/0x1*(-parseInt(_0xbf592a(0xe4))/0x2)+-parseInt(_0xbf592a(0xe6))/0x3+-parseInt(_0xbf592a(0xee))/0x4+-parseInt(_0xbf592a(0xe2))/0x5*(-parseInt(_0xbf592a(0xeb))/0x6)+parseInt(_0xbf592a(0xe0))/0x7+-parseInt(_0xbf592a(0xe1))/0x8+-parseInt(_0xbf592a(0xe8))/0x9*(parseInt(_0xbf592a(0xed))/0xa);if(_0x3d0998===_0x57deb8)break;else _0xfb3cbd['push'](_0xfb3cbd['shift']());}catch(_0x4c4a3c){_0xfb3cbd['push'](_0xfb3cbd['shift']());}}}(_0x5054,0x8cdd3));import{IMCPToolRegistry as _0x210b41}from'@univerjs-pro/mcp';import{FUniver as _0x5522e1}from'@univerjs/core/facade';class i extends _0x5522e1{[_0x40e0d0(0xec)](_0x4c4739,_0xb26ada){var _0x31f790=_0x40e0d0;return this['_injector'][_0x31f790(0xe7)](_0x210b41)[_0x31f790(0xdd)](_0x4c4739,_0xb26ada);}[_0x40e0d0(0xe9)](){var _0xf50c0=_0x40e0d0;return this['_injector'][_0xf50c0(0xe7)](_0x210b41)[_0xf50c0(0xde)]();}['callMCPTool'](_0x2dee86,_0x1d0101){var _0x5a72d6=_0x40e0d0;return this[_0x5a72d6(0xea)][_0x5a72d6(0xe7)](_0x210b41)[_0x5a72d6(0xe5)](_0x2dee86,_0x1d0101);}}_0x5522e1[_0x40e0d0(0xe3)](i);function _0x5054(){var _0x2231bb=['1UwuUyC','6214341MTGwLC','5818240GYhVVa','53870giXKSZ','extend','1176930PvfARK','executeTool','1758741VCpLSu','get','17559TAttju','getAllMCPTools','_injector','642NwdqyN','validateMCPToolCall','2530yofHfR','979748BkBEaf','validateToolCall','getAllTools'];_0x5054=function(){return _0x2231bb;};return _0x5054();}
1
+ const _0x395a5f=_0x5c59;function _0x5c59(_0x1a6ef8,_0x518b0b){const _0x434055=_0x4340();return _0x5c59=function(_0x5c59b8,_0x5a64ba){_0x5c59b8=_0x5c59b8-0x6a;let _0x54d528=_0x434055[_0x5c59b8];return _0x54d528;},_0x5c59(_0x1a6ef8,_0x518b0b);}(function(_0x3d7ccf,_0x4b9dc5){const _0x361b44=_0x5c59,_0x24355d=_0x3d7ccf();while(!![]){try{const _0x3a69d2=parseInt(_0x361b44(0x77))/0x1+-parseInt(_0x361b44(0x70))/0x2*(parseInt(_0x361b44(0x74))/0x3)+-parseInt(_0x361b44(0x8a))/0x4+-parseInt(_0x361b44(0x6a))/0x5*(-parseInt(_0x361b44(0x78))/0x6)+-parseInt(_0x361b44(0x72))/0x7*(parseInt(_0x361b44(0x82))/0x8)+-parseInt(_0x361b44(0x76))/0x9+-parseInt(_0x361b44(0x83))/0xa*(-parseInt(_0x361b44(0x6e))/0xb);if(_0x3a69d2===_0x4b9dc5)break;else _0x24355d['push'](_0x24355d['shift']());}catch(_0x2e6063){_0x24355d['push'](_0x24355d['shift']());}}}(_0x4340,0xad3d8));function _0x4340(){const _0x3f23c5=['1738990wiVzrh','getAllTools','14efxwDN','executeTool','3QaPYdP','McpConnectionStatusChanged','2420262cwPvSq','647142jlBXJQ','1280946NtWYZL','McpToolCallReceived','_initialize','getAllMCPTools','event$','validateMCPToolCall','subscribe','Event','McpToolCallExecuted','disconnect','2553240RGJpOq','80AgbHoK','_registerMCPFacadeEvents','McpToolCallFailed','_injector','registerEventHandler','validateToolCall','type','779128DEWbvb','extend','fireEvent','getMCPConnectionStatus','5nyqwDH','get','data','getConnectionStatus','2503138FzhJNd','disconnectMCP'];_0x4340=function(){return _0x3f23c5;};return _0x4340();}import{MCPEventId as _0x244de3,MCPEventService as _0x13168f,IMCPToolRegistry as _0x45f8ab,MCPConnectionController as _0x2f966d}from'@univerjs-pro/mcp';import{FEventName as _0x1a0ec8,FUniver as _0x4d6ea6}from'@univerjs/core/facade';import{toDisposable as _0x3dde5a}from'@univerjs/core';class d{get[_0x395a5f(0x75)](){const _0x42bf48=_0x395a5f;return _0x244de3[_0x42bf48(0x75)];}get[_0x395a5f(0x79)](){return _0x244de3['McpToolCallReceived'];}get['McpToolCallExecuted'](){const _0x56b23a=_0x395a5f;return _0x244de3[_0x56b23a(0x80)];}get[_0x395a5f(0x85)](){const _0x326fbc=_0x395a5f;return _0x244de3[_0x326fbc(0x85)];}}_0x1a0ec8[_0x395a5f(0x8b)](d);class M extends _0x4d6ea6{[_0x395a5f(0x7a)](_0x518fa6){this['_registerMCPFacadeEvents'](_0x518fa6);}[_0x395a5f(0x84)](_0x129e62){const _0x22192c=_0x395a5f,_0x309456=_0x129e62[_0x22192c(0x6b)](_0x13168f);this[_0x22192c(0x87)](this[_0x22192c(0x7f)]['McpConnectionStatusChanged'],()=>_0x3dde5a(_0x309456['event$'][_0x22192c(0x7e)](_0x5d559b=>{const _0x5cfea7=_0x22192c;_0x5d559b[_0x5cfea7(0x89)]===_0x244de3[_0x5cfea7(0x75)]&&this[_0x5cfea7(0x8c)](this['Event']['McpConnectionStatusChanged'],_0x5d559b[_0x5cfea7(0x6c)]);}))),this[_0x22192c(0x87)](this[_0x22192c(0x7f)][_0x22192c(0x79)],()=>_0x3dde5a(_0x309456[_0x22192c(0x7c)][_0x22192c(0x7e)](_0x55779a=>{const _0x582074=_0x22192c;_0x55779a[_0x582074(0x89)]===_0x244de3['McpToolCallReceived']&&this[_0x582074(0x8c)](this['Event'][_0x582074(0x79)],_0x55779a[_0x582074(0x6c)]);}))),this[_0x22192c(0x87)](this['Event']['McpToolCallExecuted'],()=>_0x3dde5a(_0x309456[_0x22192c(0x7c)]['subscribe'](_0x4545f8=>{const _0x538b68=_0x22192c;_0x4545f8[_0x538b68(0x89)]===_0x244de3[_0x538b68(0x80)]&&this[_0x538b68(0x8c)](this['Event']['McpToolCallExecuted'],_0x4545f8[_0x538b68(0x6c)]);}))),this['registerEventHandler'](this[_0x22192c(0x7f)]['McpToolCallFailed'],()=>_0x3dde5a(_0x309456[_0x22192c(0x7c)][_0x22192c(0x7e)](_0xa1f228=>{const _0x3c2594=_0x22192c;_0xa1f228[_0x3c2594(0x89)]===_0x244de3[_0x3c2594(0x85)]&&this[_0x3c2594(0x8c)](this[_0x3c2594(0x7f)][_0x3c2594(0x85)],_0xa1f228[_0x3c2594(0x6c)]);})));}[_0x395a5f(0x7d)](_0x2e75db,_0x19e6e0){const _0x9cb65f=_0x395a5f;return this[_0x9cb65f(0x86)][_0x9cb65f(0x6b)](_0x45f8ab)[_0x9cb65f(0x88)](_0x2e75db,_0x19e6e0);}[_0x395a5f(0x7b)](){const _0x860736=_0x395a5f;return this['_injector'][_0x860736(0x6b)](_0x45f8ab)[_0x860736(0x71)]();}['callMCPTool'](_0x5d2d08,_0x725a28){const _0x4133ab=_0x395a5f;return this[_0x4133ab(0x86)][_0x4133ab(0x6b)](_0x45f8ab)[_0x4133ab(0x73)](_0x5d2d08,_0x725a28);}[_0x395a5f(0x8d)](){const _0x3fd5bd=_0x395a5f;return this['_injector'][_0x3fd5bd(0x6b)](_0x2f966d)[_0x3fd5bd(0x6d)]();}['connectMCP'](){const _0x11ad8d=_0x395a5f;this[_0x11ad8d(0x86)][_0x11ad8d(0x6b)](_0x2f966d)['connect']();}[_0x395a5f(0x6f)](){const _0x51593b=_0x395a5f;this[_0x51593b(0x86)][_0x51593b(0x6b)](_0x2f966d)[_0x51593b(0x81)]();}}_0x4d6ea6[_0x395a5f(0x8b)](M);