@univerjs-pro/mcp 0.10.11-nightly.202510220308 → 0.10.12

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/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x482905=_0x18ff;function _0x18ff(_0x70e18a,_0x18b5b4){const _0x1e01ef=_0x1e01();return _0x18ff=function(_0x18ffae,_0x30f1f0){_0x18ffae=_0x18ffae-0x1e8;let _0x1a4194=_0x1e01ef[_0x18ffae];return _0x1a4194;},_0x18ff(_0x70e18a,_0x18b5b4);}(function(_0x34fbb7,_0x47e4d5){const _0x29e6e4=_0x18ff,_0x45dd53=_0x34fbb7();while(!![]){try{const _0x36a126=-parseInt(_0x29e6e4(0x1eb))/0x1*(-parseInt(_0x29e6e4(0x210))/0x2)+-parseInt(_0x29e6e4(0x1f9))/0x3+parseInt(_0x29e6e4(0x204))/0x4*(-parseInt(_0x29e6e4(0x1fd))/0x5)+parseInt(_0x29e6e4(0x206))/0x6*(-parseInt(_0x29e6e4(0x1fe))/0x7)+-parseInt(_0x29e6e4(0x20a))/0x8*(-parseInt(_0x29e6e4(0x20f))/0x9)+-parseInt(_0x29e6e4(0x1f4))/0xa*(parseInt(_0x29e6e4(0x209))/0xb)+parseInt(_0x29e6e4(0x1e8))/0xc;if(_0x36a126===_0x47e4d5)break;else _0x45dd53['push'](_0x45dd53['shift']());}catch(_0x267bb3){_0x45dd53['push'](_0x45dd53['shift']());}}}(_0x1e01,0xe0065));const e=require('@univerjs-pro/mcp'),i=require('@univerjs/core/facade'),l=require('@univerjs/core');function _0x1e01(){const _0x32e91d=['data','get','4932440dflnlA','connectMCP','disconnectMCP','subscribe','_initialize','4153239JeFlAU','getConnectionStatus','validateMCPToolCall','FEventName','5024065goeLEA','35WckjUz','MCPEventId','callMCPTool','McpToolCallFailed','registerEventHandler','MCPConnectionController','4LDmnYz','FUniver','2102106WUSEJj','_registerMCPFacadeEvents','McpConnectionStatusChanged','22TKXRzy','32vbaveP','type','disconnect','extend','McpToolCallExecuted','3556350yYyOqw','2pckAaz','getAllMCPTools','executeTool','36323916NLiwMM','Event','_injector','1437481PXlgbR','fireEvent','McpToolCallReceived','MCPEventService','IMCPToolRegistry','event$','toDisposable'];_0x1e01=function(){return _0x32e91d;};return _0x1e01();}class r{get['McpConnectionStatusChanged'](){const _0x528e52=_0x18ff;return e[_0x528e52(0x1ff)][_0x528e52(0x208)];}get['McpToolCallReceived'](){const _0x14bf9b=_0x18ff;return e[_0x14bf9b(0x1ff)]['McpToolCallReceived'];}get['McpToolCallExecuted'](){const _0x56d81f=_0x18ff;return e[_0x56d81f(0x1ff)][_0x56d81f(0x20e)];}get[_0x482905(0x201)](){const _0x212a89=_0x482905;return e[_0x212a89(0x1ff)][_0x212a89(0x201)];}}i[_0x482905(0x1fc)][_0x482905(0x20d)](r);class s extends i['FUniver']{[_0x482905(0x1f8)](_0x48b7ab){const _0x2c6e90=_0x482905;this[_0x2c6e90(0x207)](_0x48b7ab);}[_0x482905(0x207)](_0x10eaa4){const _0x1e01c7=_0x482905,_0x3def0a=_0x10eaa4['get'](e[_0x1e01c7(0x1ee)]);this[_0x1e01c7(0x202)](this[_0x1e01c7(0x1e9)]['McpConnectionStatusChanged'],()=>l[_0x1e01c7(0x1f1)](_0x3def0a['event$'][_0x1e01c7(0x1f7)](_0xe566e8=>{const _0x265dc7=_0x1e01c7;_0xe566e8['type']===e[_0x265dc7(0x1ff)][_0x265dc7(0x208)]&&this[_0x265dc7(0x1ec)](this[_0x265dc7(0x1e9)][_0x265dc7(0x208)],_0xe566e8[_0x265dc7(0x1f2)]);}))),this['registerEventHandler'](this[_0x1e01c7(0x1e9)][_0x1e01c7(0x1ed)],()=>l['toDisposable'](_0x3def0a[_0x1e01c7(0x1f0)][_0x1e01c7(0x1f7)](_0x1730ef=>{const _0x327844=_0x1e01c7;_0x1730ef[_0x327844(0x20b)]===e[_0x327844(0x1ff)][_0x327844(0x1ed)]&&this[_0x327844(0x1ec)](this[_0x327844(0x1e9)]['McpToolCallReceived'],_0x1730ef[_0x327844(0x1f2)]);}))),this[_0x1e01c7(0x202)](this[_0x1e01c7(0x1e9)][_0x1e01c7(0x20e)],()=>l[_0x1e01c7(0x1f1)](_0x3def0a[_0x1e01c7(0x1f0)][_0x1e01c7(0x1f7)](_0x131d4e=>{const _0x1fc8f0=_0x1e01c7;_0x131d4e[_0x1fc8f0(0x20b)]===e[_0x1fc8f0(0x1ff)][_0x1fc8f0(0x20e)]&&this[_0x1fc8f0(0x1ec)](this[_0x1fc8f0(0x1e9)][_0x1fc8f0(0x20e)],_0x131d4e['data']);}))),this[_0x1e01c7(0x202)](this[_0x1e01c7(0x1e9)][_0x1e01c7(0x201)],()=>l['toDisposable'](_0x3def0a[_0x1e01c7(0x1f0)]['subscribe'](_0x2500f1=>{const _0x54f1c9=_0x1e01c7;_0x2500f1[_0x54f1c9(0x20b)]===e['MCPEventId']['McpToolCallFailed']&&this['fireEvent'](this['Event'][_0x54f1c9(0x201)],_0x2500f1[_0x54f1c9(0x1f2)]);})));}[_0x482905(0x1fb)](_0x299428,_0xe2ed09){const _0x400bc6=_0x482905;return this['_injector'][_0x400bc6(0x1f3)](e[_0x400bc6(0x1ef)])['validateToolCall'](_0x299428,_0xe2ed09);}[_0x482905(0x211)](){const _0x413d8a=_0x482905;return this[_0x413d8a(0x1ea)][_0x413d8a(0x1f3)](e['IMCPToolRegistry'])['getAllTools']();}[_0x482905(0x200)](_0x2c9bb3,_0x449576){const _0x5a9a56=_0x482905;return this['_injector'][_0x5a9a56(0x1f3)](e[_0x5a9a56(0x1ef)])[_0x5a9a56(0x212)](_0x2c9bb3,_0x449576);}['getMCPConnectionStatus'](){const _0x3f66a1=_0x482905;return this[_0x3f66a1(0x1ea)]['get'](e[_0x3f66a1(0x203)])[_0x3f66a1(0x1fa)]();}[_0x482905(0x1f5)](){const _0x47c870=_0x482905;this[_0x47c870(0x1ea)][_0x47c870(0x1f3)](e[_0x47c870(0x203)])['connect']();}[_0x482905(0x1f6)](){const _0x12d327=_0x482905;this[_0x12d327(0x1ea)][_0x12d327(0x1f3)](e[_0x12d327(0x203)])[_0x12d327(0x20c)]();}}i[_0x482905(0x205)][_0x482905(0x20d)](s);
1
+ 'use strict';const _0x4e4d91=_0x7eb6;(function(_0x212b53,_0x3d8aa0){const _0x528f62=_0x7eb6,_0x5a3b47=_0x212b53();while(!![]){try{const _0x36c630=parseInt(_0x528f62(0x146))/0x1*(-parseInt(_0x528f62(0x166))/0x2)+-parseInt(_0x528f62(0x149))/0x3+-parseInt(_0x528f62(0x154))/0x4+-parseInt(_0x528f62(0x156))/0x5*(parseInt(_0x528f62(0x147))/0x6)+parseInt(_0x528f62(0x15a))/0x7+parseInt(_0x528f62(0x165))/0x8*(parseInt(_0x528f62(0x164))/0x9)+parseInt(_0x528f62(0x163))/0xa;if(_0x36c630===_0x3d8aa0)break;else _0x5a3b47['push'](_0x5a3b47['shift']());}catch(_0x3ea8f4){_0x5a3b47['push'](_0x5a3b47['shift']());}}}(_0x363c,0x1c57a));function _0x7eb6(_0x3cf161,_0x197f8a){const _0x363c51=_0x363c();return _0x7eb6=function(_0x7eb657,_0x3a61db){_0x7eb657=_0x7eb657-0x142;let _0x2b94cd=_0x363c51[_0x7eb657];return _0x2b94cd;},_0x7eb6(_0x3cf161,_0x197f8a);}function _0x363c(){const _0x4e9c33=['registerEventHandler','getConnectionStatus','data','FUniver','MCPEventId','McpToolCallReceived','62576SJMiKj','get','51235iwokHy','disconnect','validateToolCall','getAllMCPTools','1427027hivOzh','_registerMCPFacadeEvents','_injector','FEventName','toDisposable','McpConnectionStatusChanged','Event','MCPEventService','getAllTools','2000870BetIHs','171YlFiVh','42184QZQYWn','2RYrSqj','McpToolCallExecuted','event$','fireEvent','callMCPTool','_initialize','connect','McpToolCallFailed','extend','subscribe','66347rfpFpx','72eqtFAx','IMCPToolRegistry','549270cTpqMB','MCPConnectionController','type','getMCPConnectionStatus','executeTool'];_0x363c=function(){return _0x4e9c33;};return _0x363c();}const e=require('@univerjs-pro/mcp'),i=require('@univerjs/core/facade'),l=require('@univerjs/core');class r{get[_0x4e4d91(0x15f)](){const _0xf22a94=_0x4e4d91;return e[_0xf22a94(0x152)][_0xf22a94(0x15f)];}get[_0x4e4d91(0x153)](){const _0x59ba2e=_0x4e4d91;return e[_0x59ba2e(0x152)]['McpToolCallReceived'];}get[_0x4e4d91(0x167)](){const _0x5791d1=_0x4e4d91;return e[_0x5791d1(0x152)][_0x5791d1(0x167)];}get['McpToolCallFailed'](){const _0x292d2b=_0x4e4d91;return e[_0x292d2b(0x152)][_0x292d2b(0x143)];}}i[_0x4e4d91(0x15d)][_0x4e4d91(0x144)](r);class s extends i[_0x4e4d91(0x151)]{[_0x4e4d91(0x16b)](_0x183bff){const _0x27f6a6=_0x4e4d91;this[_0x27f6a6(0x15b)](_0x183bff);}[_0x4e4d91(0x15b)](_0x307349){const _0x4b038b=_0x4e4d91,_0x12a501=_0x307349[_0x4b038b(0x155)](e[_0x4b038b(0x161)]);this['registerEventHandler'](this[_0x4b038b(0x160)][_0x4b038b(0x15f)],()=>l[_0x4b038b(0x15e)](_0x12a501[_0x4b038b(0x168)]['subscribe'](_0x1c24a0=>{const _0x815f9=_0x4b038b;_0x1c24a0[_0x815f9(0x14b)]===e['MCPEventId'][_0x815f9(0x15f)]&&this[_0x815f9(0x169)](this['Event'][_0x815f9(0x15f)],_0x1c24a0[_0x815f9(0x150)]);}))),this[_0x4b038b(0x14e)](this['Event'][_0x4b038b(0x153)],()=>l[_0x4b038b(0x15e)](_0x12a501[_0x4b038b(0x168)]['subscribe'](_0xd61a0f=>{const _0x4934be=_0x4b038b;_0xd61a0f[_0x4934be(0x14b)]===e['MCPEventId'][_0x4934be(0x153)]&&this[_0x4934be(0x169)](this[_0x4934be(0x160)][_0x4934be(0x153)],_0xd61a0f[_0x4934be(0x150)]);}))),this[_0x4b038b(0x14e)](this[_0x4b038b(0x160)][_0x4b038b(0x167)],()=>l[_0x4b038b(0x15e)](_0x12a501[_0x4b038b(0x168)][_0x4b038b(0x145)](_0x1715d5=>{const _0xe55e12=_0x4b038b;_0x1715d5[_0xe55e12(0x14b)]===e[_0xe55e12(0x152)]['McpToolCallExecuted']&&this[_0xe55e12(0x169)](this['Event']['McpToolCallExecuted'],_0x1715d5[_0xe55e12(0x150)]);}))),this[_0x4b038b(0x14e)](this[_0x4b038b(0x160)]['McpToolCallFailed'],()=>l['toDisposable'](_0x12a501[_0x4b038b(0x168)][_0x4b038b(0x145)](_0x1dd818=>{const _0x473be4=_0x4b038b;_0x1dd818[_0x473be4(0x14b)]===e[_0x473be4(0x152)][_0x473be4(0x143)]&&this['fireEvent'](this[_0x473be4(0x160)][_0x473be4(0x143)],_0x1dd818[_0x473be4(0x150)]);})));}['validateMCPToolCall'](_0x40afb0,_0x3bf838){const _0x526ee2=_0x4e4d91;return this['_injector'][_0x526ee2(0x155)](e[_0x526ee2(0x148)])[_0x526ee2(0x158)](_0x40afb0,_0x3bf838);}[_0x4e4d91(0x159)](){const _0x1c72b7=_0x4e4d91;return this['_injector']['get'](e[_0x1c72b7(0x148)])[_0x1c72b7(0x162)]();}[_0x4e4d91(0x16a)](_0x5b8b91,_0x582fb5){const _0x322eed=_0x4e4d91;return this['_injector']['get'](e[_0x322eed(0x148)])[_0x322eed(0x14d)](_0x5b8b91,_0x582fb5);}[_0x4e4d91(0x14c)](){const _0x380730=_0x4e4d91;return this[_0x380730(0x15c)][_0x380730(0x155)](e['MCPConnectionController'])[_0x380730(0x14f)]();}['connectMCP'](){const _0x11b492=_0x4e4d91;this[_0x11b492(0x15c)][_0x11b492(0x155)](e[_0x11b492(0x14a)])[_0x11b492(0x142)]();}['disconnectMCP'](){const _0x1607e8=_0x4e4d91;this[_0x1607e8(0x15c)][_0x1607e8(0x155)](e['MCPConnectionController'])[_0x1607e8(0x157)]();}}i[_0x4e4d91(0x151)]['extend'](s);