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

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 _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);
1
+ 'use strict';const _0x5f2432=_0x2a3f;(function(_0x4577d0,_0x48f067){const _0x2471af=_0x2a3f,_0x21f733=_0x4577d0();while(!![]){try{const _0x571143=-parseInt(_0x2471af(0x12b))/0x1*(parseInt(_0x2471af(0x11b))/0x2)+-parseInt(_0x2471af(0x114))/0x3+-parseInt(_0x2471af(0x128))/0x4*(parseInt(_0x2471af(0x120))/0x5)+parseInt(_0x2471af(0x122))/0x6*(-parseInt(_0x2471af(0x10a))/0x7)+parseInt(_0x2471af(0x113))/0x8*(parseInt(_0x2471af(0x10b))/0x9)+-parseInt(_0x2471af(0x11e))/0xa+-parseInt(_0x2471af(0x10e))/0xb*(-parseInt(_0x2471af(0x10f))/0xc);if(_0x571143===_0x48f067)break;else _0x21f733['push'](_0x21f733['shift']());}catch(_0x37ea14){_0x21f733['push'](_0x21f733['shift']());}}}(_0x42a0,0x28fae));function _0x2a3f(_0x5ccff9,_0x1eaeb2){const _0x42a0a2=_0x42a0();return _0x2a3f=function(_0x2a3fd0,_0x334775){_0x2a3fd0=_0x2a3fd0-0x104;let _0x412f59=_0x42a0a2[_0x2a3fd0];return _0x412f59;},_0x2a3f(_0x5ccff9,_0x1eaeb2);}function _0x42a0(){const _0x1d22b9=['5PqpOmO','type','24eXReJT','subscribe','MCPEventId','disconnectMCP','data','extend','517612EYsRtX','getAllMCPTools','McpConnectionStatusChanged','84961sSysWG','get','getAllTools','McpToolCallExecuted','IMCPToolRegistry','McpToolCallFailed','validateMCPToolCall','_registerMCPFacadeEvents','545461akecQT','9lepjnf','MCPConnectionController','_injector','11lNbFoN','9935340YGwJaK','callMCPTool','toDisposable','Event','1635864MUTWHh','785823snQuus','fireEvent','McpToolCallReceived','getMCPConnectionStatus','MCPEventService','executeTool','event$','2vtmnnL','connectMCP','FUniver','765770bxfgTZ','registerEventHandler'];_0x42a0=function(){return _0x1d22b9;};return _0x42a0();}const e=require('@univerjs-pro/mcp'),i=require('@univerjs/core/facade'),l=require('@univerjs/core');class r{get[_0x5f2432(0x12a)](){const _0x435e4a=_0x5f2432;return e[_0x435e4a(0x124)][_0x435e4a(0x12a)];}get[_0x5f2432(0x116)](){const _0x3a1e2b=_0x5f2432;return e[_0x3a1e2b(0x124)][_0x3a1e2b(0x116)];}get['McpToolCallExecuted'](){const _0x565e20=_0x5f2432;return e[_0x565e20(0x124)][_0x565e20(0x105)];}get['McpToolCallFailed'](){const _0x1d5917=_0x5f2432;return e[_0x1d5917(0x124)][_0x1d5917(0x107)];}}i['FEventName']['extend'](r);class s extends i['FUniver']{['_initialize'](_0x444217){const _0x59f234=_0x5f2432;this[_0x59f234(0x109)](_0x444217);}[_0x5f2432(0x109)](_0x48265c){const _0xf259c5=_0x5f2432,_0x4f1569=_0x48265c[_0xf259c5(0x12c)](e[_0xf259c5(0x118)]);this[_0xf259c5(0x11f)](this[_0xf259c5(0x112)]['McpConnectionStatusChanged'],()=>l[_0xf259c5(0x111)](_0x4f1569[_0xf259c5(0x11a)][_0xf259c5(0x123)](_0xdd9b7b=>{const _0x310652=_0xf259c5;_0xdd9b7b[_0x310652(0x121)]===e[_0x310652(0x124)][_0x310652(0x12a)]&&this['fireEvent'](this[_0x310652(0x112)][_0x310652(0x12a)],_0xdd9b7b['data']);}))),this['registerEventHandler'](this[_0xf259c5(0x112)][_0xf259c5(0x116)],()=>l['toDisposable'](_0x4f1569[_0xf259c5(0x11a)][_0xf259c5(0x123)](_0x4c7f52=>{const _0x5a14d4=_0xf259c5;_0x4c7f52[_0x5a14d4(0x121)]===e['MCPEventId'][_0x5a14d4(0x116)]&&this[_0x5a14d4(0x115)](this[_0x5a14d4(0x112)]['McpToolCallReceived'],_0x4c7f52[_0x5a14d4(0x126)]);}))),this[_0xf259c5(0x11f)](this[_0xf259c5(0x112)][_0xf259c5(0x105)],()=>l['toDisposable'](_0x4f1569['event$'][_0xf259c5(0x123)](_0x46ff75=>{const _0x245700=_0xf259c5;_0x46ff75[_0x245700(0x121)]===e[_0x245700(0x124)][_0x245700(0x105)]&&this[_0x245700(0x115)](this[_0x245700(0x112)][_0x245700(0x105)],_0x46ff75[_0x245700(0x126)]);}))),this[_0xf259c5(0x11f)](this[_0xf259c5(0x112)][_0xf259c5(0x107)],()=>l[_0xf259c5(0x111)](_0x4f1569[_0xf259c5(0x11a)][_0xf259c5(0x123)](_0x5bb057=>{const _0x27f894=_0xf259c5;_0x5bb057[_0x27f894(0x121)]===e[_0x27f894(0x124)]['McpToolCallFailed']&&this[_0x27f894(0x115)](this[_0x27f894(0x112)][_0x27f894(0x107)],_0x5bb057[_0x27f894(0x126)]);})));}[_0x5f2432(0x108)](_0x52ca23,_0x2bc27c){const _0x5a5216=_0x5f2432;return this[_0x5a5216(0x10d)][_0x5a5216(0x12c)](e['IMCPToolRegistry'])['validateToolCall'](_0x52ca23,_0x2bc27c);}[_0x5f2432(0x129)](){const _0x562ab6=_0x5f2432;return this[_0x562ab6(0x10d)][_0x562ab6(0x12c)](e[_0x562ab6(0x106)])[_0x562ab6(0x104)]();}[_0x5f2432(0x110)](_0x440cfa,_0x3f7f7b){const _0x27883a=_0x5f2432;return this[_0x27883a(0x10d)][_0x27883a(0x12c)](e['IMCPToolRegistry'])[_0x27883a(0x119)](_0x440cfa,_0x3f7f7b);}[_0x5f2432(0x117)](){const _0x4e6b0e=_0x5f2432;return this[_0x4e6b0e(0x10d)][_0x4e6b0e(0x12c)](e[_0x4e6b0e(0x10c)])['getConnectionStatus']();}[_0x5f2432(0x11c)](){const _0x5a724c=_0x5f2432;this[_0x5a724c(0x10d)][_0x5a724c(0x12c)](e[_0x5a724c(0x10c)])['connect']();}[_0x5f2432(0x125)](){const _0x3cf87b=_0x5f2432;this['_injector'][_0x3cf87b(0x12c)](e['MCPConnectionController'])['disconnect']();}}i[_0x5f2432(0x11d)][_0x5f2432(0x127)](s);