@univerjs-pro/mcp 0.10.10-nightly.202510180327 → 0.10.11

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 _0x522137=_0xd034;(function(_0x2c2cfb,_0x49a994){const _0x5e7471=_0xd034,_0x1ad8d5=_0x2c2cfb();while(!![]){try{const _0xde5135=-parseInt(_0x5e7471(0x1f5))/0x1*(parseInt(_0x5e7471(0x216))/0x2)+parseInt(_0x5e7471(0x205))/0x3*(parseInt(_0x5e7471(0x207))/0x4)+-parseInt(_0x5e7471(0x20c))/0x5+-parseInt(_0x5e7471(0x1f6))/0x6+-parseInt(_0x5e7471(0x217))/0x7+parseInt(_0x5e7471(0x20f))/0x8+-parseInt(_0x5e7471(0x1f3))/0x9*(-parseInt(_0x5e7471(0x1fc))/0xa);if(_0xde5135===_0x49a994)break;else _0x1ad8d5['push'](_0x1ad8d5['shift']());}catch(_0x16065b){_0x1ad8d5['push'](_0x1ad8d5['shift']());}}}(_0x53b1,0x4a539));const e=require('@univerjs-pro/mcp'),i=require('@univerjs/core/facade'),l=require('@univerjs/core');class r{get[_0x522137(0x20a)](){const _0x2cecf8=_0x522137;return e[_0x2cecf8(0x210)][_0x2cecf8(0x20a)];}get['McpToolCallReceived'](){const _0x1bb7fe=_0x522137;return e[_0x1bb7fe(0x210)][_0x1bb7fe(0x200)];}get['McpToolCallExecuted'](){const _0xae61db=_0x522137;return e['MCPEventId'][_0xae61db(0x21c)];}get[_0x522137(0x215)](){return e['MCPEventId']['McpToolCallFailed'];}}i['FEventName'][_0x522137(0x203)](r);function _0x53b1(){const _0x28ccba=['executeTool','McpToolCallFailed','278EouVEd','3612245GYRCwT','fireEvent','connectMCP','get','callMCPTool','McpToolCallExecuted','toDisposable','1653849dovmUo','FUniver','2469TdJoOi','2149866HOpuDk','getConnectionStatus','Event','MCPEventService','subscribe','connect','50RMOVqQ','event$','_registerMCPFacadeEvents','type','McpToolCallReceived','validateToolCall','_injector','extend','getAllMCPTools','9uKaxqE','data','534728QbmcFb','_initialize','getAllTools','McpConnectionStatusChanged','MCPConnectionController','1789085huWXso','disconnect','IMCPToolRegistry','4479552IAiTei','MCPEventId','getMCPConnectionStatus','validateMCPToolCall','registerEventHandler'];_0x53b1=function(){return _0x28ccba;};return _0x53b1();}function _0xd034(_0x378140,_0x507eec){const _0x53b130=_0x53b1();return _0xd034=function(_0xd034d8,_0xca6dbb){_0xd034d8=_0xd034d8-0x1f2;let _0x3b5bfc=_0x53b130[_0xd034d8];return _0x3b5bfc;},_0xd034(_0x378140,_0x507eec);}class s extends i[_0x522137(0x1f4)]{[_0x522137(0x208)](_0x5fbb73){const _0x5a8d5f=_0x522137;this[_0x5a8d5f(0x1fe)](_0x5fbb73);}[_0x522137(0x1fe)](_0x27d7da){const _0x856e51=_0x522137,_0x121f38=_0x27d7da[_0x856e51(0x21a)](e[_0x856e51(0x1f9)]);this['registerEventHandler'](this[_0x856e51(0x1f8)][_0x856e51(0x20a)],()=>l[_0x856e51(0x1f2)](_0x121f38['event$'][_0x856e51(0x1fa)](_0x59dd7a=>{const _0x54433e=_0x856e51;_0x59dd7a[_0x54433e(0x1ff)]===e['MCPEventId'][_0x54433e(0x20a)]&&this[_0x54433e(0x218)](this[_0x54433e(0x1f8)]['McpConnectionStatusChanged'],_0x59dd7a[_0x54433e(0x206)]);}))),this[_0x856e51(0x213)](this[_0x856e51(0x1f8)][_0x856e51(0x200)],()=>l[_0x856e51(0x1f2)](_0x121f38[_0x856e51(0x1fd)]['subscribe'](_0x34b1f0=>{const _0x562d25=_0x856e51;_0x34b1f0['type']===e[_0x562d25(0x210)][_0x562d25(0x200)]&&this[_0x562d25(0x218)](this[_0x562d25(0x1f8)]['McpToolCallReceived'],_0x34b1f0[_0x562d25(0x206)]);}))),this[_0x856e51(0x213)](this[_0x856e51(0x1f8)]['McpToolCallExecuted'],()=>l[_0x856e51(0x1f2)](_0x121f38['event$'][_0x856e51(0x1fa)](_0x14e2ba=>{const _0x1d2b8f=_0x856e51;_0x14e2ba[_0x1d2b8f(0x1ff)]===e[_0x1d2b8f(0x210)][_0x1d2b8f(0x21c)]&&this[_0x1d2b8f(0x218)](this[_0x1d2b8f(0x1f8)][_0x1d2b8f(0x21c)],_0x14e2ba[_0x1d2b8f(0x206)]);}))),this[_0x856e51(0x213)](this[_0x856e51(0x1f8)]['McpToolCallFailed'],()=>l[_0x856e51(0x1f2)](_0x121f38[_0x856e51(0x1fd)][_0x856e51(0x1fa)](_0x4904df=>{const _0x1673f3=_0x856e51;_0x4904df['type']===e[_0x1673f3(0x210)][_0x1673f3(0x215)]&&this[_0x1673f3(0x218)](this['Event'][_0x1673f3(0x215)],_0x4904df[_0x1673f3(0x206)]);})));}[_0x522137(0x212)](_0x505bd6,_0x20ff70){const _0x352270=_0x522137;return this[_0x352270(0x202)]['get'](e[_0x352270(0x20e)])[_0x352270(0x201)](_0x505bd6,_0x20ff70);}[_0x522137(0x204)](){const _0xe13a98=_0x522137;return this[_0xe13a98(0x202)][_0xe13a98(0x21a)](e[_0xe13a98(0x20e)])[_0xe13a98(0x209)]();}[_0x522137(0x21b)](_0xd676f9,_0x32655c){const _0x5e3964=_0x522137;return this[_0x5e3964(0x202)][_0x5e3964(0x21a)](e['IMCPToolRegistry'])[_0x5e3964(0x214)](_0xd676f9,_0x32655c);}[_0x522137(0x211)](){const _0x58f933=_0x522137;return this['_injector'][_0x58f933(0x21a)](e['MCPConnectionController'])[_0x58f933(0x1f7)]();}[_0x522137(0x219)](){const _0xb30b2d=_0x522137;this[_0xb30b2d(0x202)][_0xb30b2d(0x21a)](e[_0xb30b2d(0x20b)])[_0xb30b2d(0x1fb)]();}['disconnectMCP'](){const _0x533917=_0x522137;this[_0x533917(0x202)][_0x533917(0x21a)](e[_0x533917(0x20b)])[_0x533917(0x20d)]();}}i['FUniver'][_0x522137(0x203)](s);
1
+ 'use strict';const _0x1ebed6=_0x115e;function _0x115e(_0xfd2802,_0xaf76a9){const _0x13ba2a=_0x13ba();return _0x115e=function(_0x115e24,_0x26e841){_0x115e24=_0x115e24-0xc6;let _0x398848=_0x13ba2a[_0x115e24];return _0x398848;},_0x115e(_0xfd2802,_0xaf76a9);}function _0x13ba(){const _0x1aaf34=['getAllMCPTools','disconnect','type','5316462oAePKj','event$','getAllTools','325017Pyryys','McpToolCallExecuted','MCPEventId','707550FwyOSL','119sVLLrc','134106csjmxm','3JcsmSD','validateToolCall','357915bIlWqM','488086vKjydj','executeTool','callMCPTool','McpToolCallReceived','Event','_injector','McpToolCallFailed','McpConnectionStatusChanged','MCPEventService','subscribe','_registerMCPFacadeEvents','get','extend','fireEvent','toDisposable','validateMCPToolCall','registerEventHandler','FUniver','getMCPConnectionStatus','data','getConnectionStatus','12paiZPp','IMCPToolRegistry','6031192oLuGyk','disconnectMCP','MCPConnectionController'];_0x13ba=function(){return _0x1aaf34;};return _0x13ba();}(function(_0x5086d0,_0x3080c2){const _0x485f86=_0x115e,_0x856a94=_0x5086d0();while(!![]){try{const _0x584ada=-parseInt(_0x485f86(0xd9))/0x1*(-parseInt(_0x485f86(0xdc))/0x2)+parseInt(_0x485f86(0xd3))/0x3+parseInt(_0x485f86(0xc8))/0x4*(parseInt(_0x485f86(0xdb))/0x5)+parseInt(_0x485f86(0xd8))/0x6*(-parseInt(_0x485f86(0xd7))/0x7)+-parseInt(_0x485f86(0xca))/0x8+parseInt(_0x485f86(0xd0))/0x9+-parseInt(_0x485f86(0xd6))/0xa;if(_0x584ada===_0x3080c2)break;else _0x856a94['push'](_0x856a94['shift']());}catch(_0x5112fb){_0x856a94['push'](_0x856a94['shift']());}}}(_0x13ba,0x6bbe2));const e=require('@univerjs-pro/mcp'),i=require('@univerjs/core/facade'),l=require('@univerjs/core');class r{get[_0x1ebed6(0xe3)](){const _0x5f5328=_0x1ebed6;return e[_0x5f5328(0xd5)]['McpConnectionStatusChanged'];}get[_0x1ebed6(0xdf)](){const _0x5dff77=_0x1ebed6;return e[_0x5dff77(0xd5)][_0x5dff77(0xdf)];}get['McpToolCallExecuted'](){const _0x572f05=_0x1ebed6;return e['MCPEventId'][_0x572f05(0xd4)];}get[_0x1ebed6(0xe2)](){const _0x460476=_0x1ebed6;return e[_0x460476(0xd5)]['McpToolCallFailed'];}}i['FEventName'][_0x1ebed6(0xe8)](r);class s extends i[_0x1ebed6(0xed)]{['_initialize'](_0x199dde){const _0x564180=_0x1ebed6;this[_0x564180(0xe6)](_0x199dde);}[_0x1ebed6(0xe6)](_0x11fd60){const _0x4916a9=_0x1ebed6,_0x5f2ee5=_0x11fd60[_0x4916a9(0xe7)](e[_0x4916a9(0xe4)]);this[_0x4916a9(0xec)](this[_0x4916a9(0xe0)][_0x4916a9(0xe3)],()=>l[_0x4916a9(0xea)](_0x5f2ee5[_0x4916a9(0xd1)]['subscribe'](_0xe4aba8=>{const _0x5ad030=_0x4916a9;_0xe4aba8['type']===e[_0x5ad030(0xd5)][_0x5ad030(0xe3)]&&this[_0x5ad030(0xe9)](this[_0x5ad030(0xe0)]['McpConnectionStatusChanged'],_0xe4aba8[_0x5ad030(0xc6)]);}))),this[_0x4916a9(0xec)](this[_0x4916a9(0xe0)]['McpToolCallReceived'],()=>l[_0x4916a9(0xea)](_0x5f2ee5[_0x4916a9(0xd1)][_0x4916a9(0xe5)](_0x4b91f3=>{const _0x206a3b=_0x4916a9;_0x4b91f3[_0x206a3b(0xcf)]===e[_0x206a3b(0xd5)][_0x206a3b(0xdf)]&&this[_0x206a3b(0xe9)](this[_0x206a3b(0xe0)][_0x206a3b(0xdf)],_0x4b91f3['data']);}))),this['registerEventHandler'](this['Event'][_0x4916a9(0xd4)],()=>l[_0x4916a9(0xea)](_0x5f2ee5[_0x4916a9(0xd1)][_0x4916a9(0xe5)](_0x76bdf5=>{const _0x16e0bd=_0x4916a9;_0x76bdf5[_0x16e0bd(0xcf)]===e[_0x16e0bd(0xd5)][_0x16e0bd(0xd4)]&&this['fireEvent'](this[_0x16e0bd(0xe0)][_0x16e0bd(0xd4)],_0x76bdf5[_0x16e0bd(0xc6)]);}))),this[_0x4916a9(0xec)](this[_0x4916a9(0xe0)][_0x4916a9(0xe2)],()=>l[_0x4916a9(0xea)](_0x5f2ee5['event$'][_0x4916a9(0xe5)](_0x330655=>{const _0x495f02=_0x4916a9;_0x330655[_0x495f02(0xcf)]===e['MCPEventId'][_0x495f02(0xe2)]&&this[_0x495f02(0xe9)](this[_0x495f02(0xe0)]['McpToolCallFailed'],_0x330655[_0x495f02(0xc6)]);})));}[_0x1ebed6(0xeb)](_0x81ba48,_0x5d0039){const _0x11836f=_0x1ebed6;return this['_injector'][_0x11836f(0xe7)](e[_0x11836f(0xc9)])[_0x11836f(0xda)](_0x81ba48,_0x5d0039);}[_0x1ebed6(0xcd)](){const _0xb51973=_0x1ebed6;return this[_0xb51973(0xe1)][_0xb51973(0xe7)](e[_0xb51973(0xc9)])[_0xb51973(0xd2)]();}[_0x1ebed6(0xde)](_0x2822c9,_0x738a02){const _0x38557b=_0x1ebed6;return this[_0x38557b(0xe1)][_0x38557b(0xe7)](e['IMCPToolRegistry'])[_0x38557b(0xdd)](_0x2822c9,_0x738a02);}[_0x1ebed6(0xee)](){const _0x5c4ad5=_0x1ebed6;return this[_0x5c4ad5(0xe1)][_0x5c4ad5(0xe7)](e[_0x5c4ad5(0xcc)])[_0x5c4ad5(0xc7)]();}['connectMCP'](){const _0x22036e=_0x1ebed6;this[_0x22036e(0xe1)][_0x22036e(0xe7)](e[_0x22036e(0xcc)])['connect']();}[_0x1ebed6(0xcb)](){const _0x3c307d=_0x1ebed6;this[_0x3c307d(0xe1)]['get'](e[_0x3c307d(0xcc)])[_0x3c307d(0xce)]();}}i[_0x1ebed6(0xed)][_0x1ebed6(0xe8)](s);