@univerjs-pro/mcp 0.11.0-nightly.202511151013 → 0.12.0

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 _0x40abab=_0x5403;(function(_0x4bdc79,_0x19c2a2){const _0x5b1998=_0x5403,_0x47c0cd=_0x4bdc79();while(!![]){try{const _0x17847b=parseInt(_0x5b1998(0x1b5))/0x1*(-parseInt(_0x5b1998(0x1a2))/0x2)+-parseInt(_0x5b1998(0x19f))/0x3+parseInt(_0x5b1998(0x1a0))/0x4*(-parseInt(_0x5b1998(0x1a8))/0x5)+-parseInt(_0x5b1998(0x198))/0x6*(-parseInt(_0x5b1998(0x1bf))/0x7)+parseInt(_0x5b1998(0x1a9))/0x8*(parseInt(_0x5b1998(0x19b))/0x9)+-parseInt(_0x5b1998(0x1c1))/0xa*(-parseInt(_0x5b1998(0x1ba))/0xb)+parseInt(_0x5b1998(0x1b6))/0xc*(-parseInt(_0x5b1998(0x199))/0xd);if(_0x17847b===_0x19c2a2)break;else _0x47c0cd['push'](_0x47c0cd['shift']());}catch(_0x2eab2f){_0x47c0cd['push'](_0x47c0cd['shift']());}}}(_0x2436,0x6b106));const e=require('@univerjs-pro/mcp'),i=require('@univerjs/core/facade'),l=require('@univerjs/core');class r{get['McpConnectionStatusChanged'](){const _0x35a17b=_0x5403;return e[_0x35a17b(0x19d)][_0x35a17b(0x1bd)];}get[_0x40abab(0x1b9)](){const _0x46fd35=_0x40abab;return e[_0x46fd35(0x19d)][_0x46fd35(0x1b9)];}get[_0x40abab(0x196)](){return e['MCPEventId']['McpToolCallExecuted'];}get['McpToolCallFailed'](){const _0x57ed7f=_0x40abab;return e[_0x57ed7f(0x19d)][_0x57ed7f(0x1b7)];}}function _0x5403(_0x94370e,_0x2b127d){const _0x2436bc=_0x2436();return _0x5403=function(_0x540350,_0x4b758e){_0x540350=_0x540350-0x196;let _0x41f00e=_0x2436bc[_0x540350];return _0x41f00e;},_0x5403(_0x94370e,_0x2b127d);}i[_0x40abab(0x1c0)]['extend'](r);class s extends i[_0x40abab(0x1bc)]{[_0x40abab(0x1b4)](_0x2cde0d){const _0x58997e=_0x40abab;this[_0x58997e(0x1a3)](_0x2cde0d);}[_0x40abab(0x1a3)](_0x15de1c){const _0x504548=_0x40abab,_0x2ff3e3=_0x15de1c[_0x504548(0x1b2)](e[_0x504548(0x1a4)]);this['registerEventHandler'](this[_0x504548(0x1b0)][_0x504548(0x1bd)],()=>l[_0x504548(0x19a)](_0x2ff3e3['event$'][_0x504548(0x19e)](_0x4f2cdc=>{const _0x1e421e=_0x504548;_0x4f2cdc[_0x1e421e(0x1aa)]===e[_0x1e421e(0x19d)][_0x1e421e(0x1bd)]&&this['fireEvent'](this[_0x1e421e(0x1b0)][_0x1e421e(0x1bd)],_0x4f2cdc[_0x1e421e(0x1ab)]);}))),this[_0x504548(0x1ac)](this[_0x504548(0x1b0)][_0x504548(0x1b9)],()=>l['toDisposable'](_0x2ff3e3[_0x504548(0x1bb)]['subscribe'](_0x43e92a=>{const _0x10b906=_0x504548;_0x43e92a[_0x10b906(0x1aa)]===e[_0x10b906(0x19d)][_0x10b906(0x1b9)]&&this['fireEvent'](this['Event'][_0x10b906(0x1b9)],_0x43e92a[_0x10b906(0x1ab)]);}))),this[_0x504548(0x1ac)](this[_0x504548(0x1b0)][_0x504548(0x196)],()=>l[_0x504548(0x19a)](_0x2ff3e3['event$'][_0x504548(0x19e)](_0x3dd639=>{const _0xf3c7d6=_0x504548;_0x3dd639[_0xf3c7d6(0x1aa)]===e[_0xf3c7d6(0x19d)][_0xf3c7d6(0x196)]&&this['fireEvent'](this['Event']['McpToolCallExecuted'],_0x3dd639[_0xf3c7d6(0x1ab)]);}))),this['registerEventHandler'](this[_0x504548(0x1b0)][_0x504548(0x1b7)],()=>l[_0x504548(0x19a)](_0x2ff3e3[_0x504548(0x1bb)][_0x504548(0x19e)](_0x44f210=>{const _0x40bf9f=_0x504548;_0x44f210[_0x40bf9f(0x1aa)]===e[_0x40bf9f(0x19d)]['McpToolCallFailed']&&this['fireEvent'](this[_0x40bf9f(0x1b0)][_0x40bf9f(0x1b7)],_0x44f210[_0x40bf9f(0x1ab)]);})));}[_0x40abab(0x197)](_0xf9354d,_0x29380f){const _0x1e69b9=_0x40abab;return this['_injector'][_0x1e69b9(0x1b2)](e[_0x1e69b9(0x1a7)])[_0x1e69b9(0x1a6)](_0xf9354d,_0x29380f);}[_0x40abab(0x1be)](){const _0x4d2cb7=_0x40abab;return this['_injector']['get'](e[_0x4d2cb7(0x1a7)])[_0x4d2cb7(0x1b1)]();}[_0x40abab(0x1a5)](_0x42039c,_0x265d50){const _0x482ba5=_0x40abab;return this[_0x482ba5(0x1b3)]['get'](e[_0x482ba5(0x1a7)])[_0x482ba5(0x19c)](_0x42039c,_0x265d50);}[_0x40abab(0x1a1)](){const _0x52ae95=_0x40abab;return this[_0x52ae95(0x1b3)]['get'](e[_0x52ae95(0x1ae)])[_0x52ae95(0x1af)]();}['connectMCP'](){const _0x196972=_0x40abab;this[_0x196972(0x1b3)][_0x196972(0x1b2)](e['MCPConnectionController'])[_0x196972(0x1b8)]();}[_0x40abab(0x1ad)](){const _0x1c957f=_0x40abab;this[_0x1c957f(0x1b3)][_0x1c957f(0x1b2)](e[_0x1c957f(0x1ae)])['disconnect']();}}i[_0x40abab(0x1bc)]['extend'](s);function _0x2436(){const _0x25a924=['executeTool','MCPEventId','subscribe','728562IUpXxk','981096lRQHmP','getMCPConnectionStatus','352826FuHPBm','_registerMCPFacadeEvents','MCPEventService','callMCPTool','validateToolCall','IMCPToolRegistry','5TiiFwI','440eAODMC','type','data','registerEventHandler','disconnectMCP','MCPConnectionController','getConnectionStatus','Event','getAllTools','get','_injector','_initialize','1tPaiQn','24oXCvgi','McpToolCallFailed','connect','McpToolCallReceived','33VvLvok','event$','FUniver','McpConnectionStatusChanged','getAllMCPTools','7ytuBcg','FEventName','2708630sBsKyf','McpToolCallExecuted','validateMCPToolCall','2953518FIXSOM','4012398ptUNQq','toDisposable','67995ghZacH'];_0x2436=function(){return _0x25a924;};return _0x2436();}
1
+ 'use strict';const _0x57b5b4=_0x2230;(function(_0xee67b5,_0x17433e){const _0x1df1c7=_0x2230,_0x51d18d=_0xee67b5();while(!![]){try{const _0x4f948e=-parseInt(_0x1df1c7(0x15a))/0x1+parseInt(_0x1df1c7(0x13b))/0x2+-parseInt(_0x1df1c7(0x145))/0x3+-parseInt(_0x1df1c7(0x152))/0x4+parseInt(_0x1df1c7(0x161))/0x5*(-parseInt(_0x1df1c7(0x14f))/0x6)+parseInt(_0x1df1c7(0x149))/0x7*(-parseInt(_0x1df1c7(0x164))/0x8)+parseInt(_0x1df1c7(0x143))/0x9*(parseInt(_0x1df1c7(0x13e))/0xa);if(_0x4f948e===_0x17433e)break;else _0x51d18d['push'](_0x51d18d['shift']());}catch(_0x3e82f9){_0x51d18d['push'](_0x51d18d['shift']());}}}(_0x4bc1,0x640e4));function _0x2230(_0x6fe2a8,_0x3a2b32){const _0x4bc112=_0x4bc1();return _0x2230=function(_0x223054,_0x1c1ae4){_0x223054=_0x223054-0x13b;let _0x4dbbef=_0x4bc112[_0x223054];return _0x4dbbef;},_0x2230(_0x6fe2a8,_0x3a2b32);}const e=require('@univerjs-pro/mcp'),i=require('@univerjs/core/facade'),l=require('@univerjs/core');class r{get[_0x57b5b4(0x13f)](){const _0x202252=_0x57b5b4;return e[_0x202252(0x14e)]['McpConnectionStatusChanged'];}get['McpToolCallReceived'](){const _0x510c2f=_0x57b5b4;return e[_0x510c2f(0x14e)]['McpToolCallReceived'];}get[_0x57b5b4(0x13c)](){const _0x44b0ba=_0x57b5b4;return e[_0x44b0ba(0x14e)][_0x44b0ba(0x13c)];}get['McpToolCallFailed'](){const _0x294c38=_0x57b5b4;return e[_0x294c38(0x14e)][_0x294c38(0x148)];}}i[_0x57b5b4(0x150)][_0x57b5b4(0x151)](r);class s extends i[_0x57b5b4(0x14a)]{[_0x57b5b4(0x147)](_0x48e4b6){const _0x595b44=_0x57b5b4;this[_0x595b44(0x146)](_0x48e4b6);}['_registerMCPFacadeEvents'](_0x338cda){const _0x592f92=_0x57b5b4,_0x4f3351=_0x338cda[_0x592f92(0x156)](e[_0x592f92(0x162)]);this[_0x592f92(0x13d)](this[_0x592f92(0x157)][_0x592f92(0x13f)],()=>l['toDisposable'](_0x4f3351[_0x592f92(0x14b)][_0x592f92(0x163)](_0x2d0004=>{const _0x11bb1a=_0x592f92;_0x2d0004[_0x11bb1a(0x154)]===e[_0x11bb1a(0x14e)][_0x11bb1a(0x13f)]&&this['fireEvent'](this[_0x11bb1a(0x157)][_0x11bb1a(0x13f)],_0x2d0004[_0x11bb1a(0x153)]);}))),this[_0x592f92(0x13d)](this[_0x592f92(0x157)][_0x592f92(0x158)],()=>l[_0x592f92(0x142)](_0x4f3351[_0x592f92(0x14b)][_0x592f92(0x163)](_0x3fb463=>{const _0x2d8fbd=_0x592f92;_0x3fb463[_0x2d8fbd(0x154)]===e['MCPEventId'][_0x2d8fbd(0x158)]&&this['fireEvent'](this[_0x2d8fbd(0x157)][_0x2d8fbd(0x158)],_0x3fb463[_0x2d8fbd(0x153)]);}))),this[_0x592f92(0x13d)](this[_0x592f92(0x157)][_0x592f92(0x13c)],()=>l[_0x592f92(0x142)](_0x4f3351[_0x592f92(0x14b)][_0x592f92(0x163)](_0x25cd06=>{const _0xf47826=_0x592f92;_0x25cd06[_0xf47826(0x154)]===e[_0xf47826(0x14e)][_0xf47826(0x13c)]&&this['fireEvent'](this[_0xf47826(0x157)]['McpToolCallExecuted'],_0x25cd06[_0xf47826(0x153)]);}))),this[_0x592f92(0x13d)](this[_0x592f92(0x157)][_0x592f92(0x148)],()=>l[_0x592f92(0x142)](_0x4f3351[_0x592f92(0x14b)]['subscribe'](_0x38ab8c=>{const _0x1c197f=_0x592f92;_0x38ab8c[_0x1c197f(0x154)]===e[_0x1c197f(0x14e)]['McpToolCallFailed']&&this[_0x1c197f(0x15b)](this[_0x1c197f(0x157)][_0x1c197f(0x148)],_0x38ab8c[_0x1c197f(0x153)]);})));}[_0x57b5b4(0x159)](_0x5b7365,_0x480c3a){const _0x3b2643=_0x57b5b4;return this[_0x3b2643(0x14c)][_0x3b2643(0x156)](e['IMCPToolRegistry'])['validateToolCall'](_0x5b7365,_0x480c3a);}[_0x57b5b4(0x14d)](){const _0x2174d4=_0x57b5b4;return this[_0x2174d4(0x14c)][_0x2174d4(0x156)](e[_0x2174d4(0x15f)])['getAllTools']();}['callMCPTool'](_0x3b9514,_0x1d06d5){const _0x11955e=_0x57b5b4;return this[_0x11955e(0x14c)][_0x11955e(0x156)](e['IMCPToolRegistry'])[_0x11955e(0x15e)](_0x3b9514,_0x1d06d5);}[_0x57b5b4(0x15c)](){const _0x46d387=_0x57b5b4;return this[_0x46d387(0x14c)]['get'](e['MCPConnectionController'])[_0x46d387(0x140)]();}[_0x57b5b4(0x144)](){const _0x1ebcad=_0x57b5b4;this['_injector'][_0x1ebcad(0x156)](e[_0x1ebcad(0x141)])[_0x1ebcad(0x15d)]();}[_0x57b5b4(0x160)](){const _0x4c7804=_0x57b5b4;this[_0x4c7804(0x14c)][_0x4c7804(0x156)](e[_0x4c7804(0x141)])[_0x4c7804(0x155)]();}}i['FUniver'][_0x57b5b4(0x151)](s);function _0x4bc1(){const _0x3284c3=['_registerMCPFacadeEvents','_initialize','McpToolCallFailed','315cBSrmW','FUniver','event$','_injector','getAllMCPTools','MCPEventId','3405774ShlLSV','FEventName','extend','219792Sbfzef','data','type','disconnect','get','Event','McpToolCallReceived','validateMCPToolCall','224044YobklC','fireEvent','getMCPConnectionStatus','connect','executeTool','IMCPToolRegistry','disconnectMCP','5ucViNF','MCPEventService','subscribe','126656pGdcjR','170776NqefsN','McpToolCallExecuted','registerEventHandler','24950580xlIyvl','McpConnectionStatusChanged','getConnectionStatus','MCPConnectionController','toDisposable','9JXpzoj','connectMCP','1834671RdKyYD'];_0x4bc1=function(){return _0x3284c3;};return _0x4bc1();}