@univerjs-pro/mcp 0.10.10-experimental.20251016-33b0941 → 0.10.10-nightly.202510180256

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 _0x3ee323=_0x5610;function _0x37b7(){const _0xcb8e0e=['21hcheXn','event$','IMCPToolRegistry','type','_registerMCPFacadeEvents','Event','FUniver','subscribe','fireEvent','356032CqIYPw','getMCPConnectionStatus','McpToolCallReceived','McpToolCallFailed','getConnectionStatus','disconnect','826495fYnUDV','189EswIDL','toDisposable','MCPEventId','data','connectMCP','connect','get','executeTool','5IOpuVM','McpToolCallExecuted','_injector','registerEventHandler','validateMCPToolCall','MCPConnectionController','7340064EwDWFE','callMCPTool','3179916iBiODf','disconnectMCP','101414xmbQDD','30852000RFhoUd','McpConnectionStatusChanged','getAllTools','11065398hFRzqg'];_0x37b7=function(){return _0xcb8e0e;};return _0x37b7();}(function(_0x23623e,_0x58bb18){const _0x2b1e4a=_0x5610,_0x5f1953=_0x23623e();while(!![]){try{const _0x9b35c4=parseInt(_0x2b1e4a(0xaa))/0x1+-parseInt(_0x2b1e4a(0xbd))/0x2*(-parseInt(_0x2b1e4a(0x9b))/0x3)+-parseInt(_0x2b1e4a(0xb9))/0x4*(-parseInt(_0x2b1e4a(0xb3))/0x5)+parseInt(_0x2b1e4a(0x9a))/0x6+parseInt(_0x2b1e4a(0xab))/0x7*(-parseInt(_0x2b1e4a(0xa4))/0x8)+parseInt(_0x2b1e4a(0xbb))/0x9+-parseInt(_0x2b1e4a(0xbe))/0xa;if(_0x9b35c4===_0x58bb18)break;else _0x5f1953['push'](_0x5f1953['shift']());}catch(_0x382a27){_0x5f1953['push'](_0x5f1953['shift']());}}}(_0x37b7,0xe25e9));function _0x5610(_0x3d1057,_0x235b43){const _0x37b790=_0x37b7();return _0x5610=function(_0x56108c,_0x21cb9b){_0x56108c=_0x56108c-0x98;let _0x56df62=_0x37b790[_0x56108c];return _0x56df62;},_0x5610(_0x3d1057,_0x235b43);}const e=require('@univerjs-pro/mcp'),i=require('@univerjs/core/facade'),l=require('@univerjs/core');class r{get[_0x3ee323(0x98)](){const _0x246840=_0x3ee323;return e[_0x246840(0xad)][_0x246840(0x98)];}get[_0x3ee323(0xa6)](){const _0x2d8614=_0x3ee323;return e[_0x2d8614(0xad)][_0x2d8614(0xa6)];}get[_0x3ee323(0xb4)](){const _0x2ef917=_0x3ee323;return e['MCPEventId'][_0x2ef917(0xb4)];}get[_0x3ee323(0xa7)](){const _0x438d8a=_0x3ee323;return e[_0x438d8a(0xad)][_0x438d8a(0xa7)];}}i['FEventName']['extend'](r);class s extends i[_0x3ee323(0xa1)]{['_initialize'](_0x5b868d){const _0x2a7030=_0x3ee323;this[_0x2a7030(0x9f)](_0x5b868d);}[_0x3ee323(0x9f)](_0x31b78f){const _0x52e30e=_0x3ee323,_0x2c2f03=_0x31b78f[_0x52e30e(0xb1)](e['MCPEventService']);this[_0x52e30e(0xb6)](this[_0x52e30e(0xa0)][_0x52e30e(0x98)],()=>l[_0x52e30e(0xac)](_0x2c2f03['event$'][_0x52e30e(0xa2)](_0x255d78=>{const _0x4a5066=_0x52e30e;_0x255d78[_0x4a5066(0x9e)]===e['MCPEventId']['McpConnectionStatusChanged']&&this['fireEvent'](this['Event']['McpConnectionStatusChanged'],_0x255d78['data']);}))),this[_0x52e30e(0xb6)](this['Event']['McpToolCallReceived'],()=>l[_0x52e30e(0xac)](_0x2c2f03[_0x52e30e(0x9c)][_0x52e30e(0xa2)](_0x43f14d=>{const _0x1edfb9=_0x52e30e;_0x43f14d[_0x1edfb9(0x9e)]===e[_0x1edfb9(0xad)][_0x1edfb9(0xa6)]&&this[_0x1edfb9(0xa3)](this[_0x1edfb9(0xa0)][_0x1edfb9(0xa6)],_0x43f14d[_0x1edfb9(0xae)]);}))),this['registerEventHandler'](this[_0x52e30e(0xa0)][_0x52e30e(0xb4)],()=>l[_0x52e30e(0xac)](_0x2c2f03['event$']['subscribe'](_0x4155eb=>{const _0x53fa00=_0x52e30e;_0x4155eb[_0x53fa00(0x9e)]===e[_0x53fa00(0xad)][_0x53fa00(0xb4)]&&this[_0x53fa00(0xa3)](this[_0x53fa00(0xa0)][_0x53fa00(0xb4)],_0x4155eb[_0x53fa00(0xae)]);}))),this[_0x52e30e(0xb6)](this[_0x52e30e(0xa0)][_0x52e30e(0xa7)],()=>l[_0x52e30e(0xac)](_0x2c2f03[_0x52e30e(0x9c)][_0x52e30e(0xa2)](_0x4601fb=>{const _0x1491a8=_0x52e30e;_0x4601fb[_0x1491a8(0x9e)]===e[_0x1491a8(0xad)]['McpToolCallFailed']&&this[_0x1491a8(0xa3)](this[_0x1491a8(0xa0)][_0x1491a8(0xa7)],_0x4601fb[_0x1491a8(0xae)]);})));}[_0x3ee323(0xb7)](_0x5c5e37,_0x1a4b4f){const _0x31f5fd=_0x3ee323;return this[_0x31f5fd(0xb5)][_0x31f5fd(0xb1)](e[_0x31f5fd(0x9d)])['validateToolCall'](_0x5c5e37,_0x1a4b4f);}['getAllMCPTools'](){const _0x5f4bb8=_0x3ee323;return this[_0x5f4bb8(0xb5)][_0x5f4bb8(0xb1)](e[_0x5f4bb8(0x9d)])[_0x5f4bb8(0x99)]();}[_0x3ee323(0xba)](_0x2c979f,_0x2caffe){const _0x1f738c=_0x3ee323;return this['_injector']['get'](e['IMCPToolRegistry'])[_0x1f738c(0xb2)](_0x2c979f,_0x2caffe);}[_0x3ee323(0xa5)](){const _0xaa1a1d=_0x3ee323;return this[_0xaa1a1d(0xb5)][_0xaa1a1d(0xb1)](e['MCPConnectionController'])[_0xaa1a1d(0xa8)]();}[_0x3ee323(0xaf)](){const _0x10ccf1=_0x3ee323;this[_0x10ccf1(0xb5)]['get'](e[_0x10ccf1(0xb8)])[_0x10ccf1(0xb0)]();}[_0x3ee323(0xbc)](){const _0x2ad660=_0x3ee323;this[_0x2ad660(0xb5)][_0x2ad660(0xb1)](e[_0x2ad660(0xb8)])[_0x2ad660(0xa9)]();}}i[_0x3ee323(0xa1)]['extend'](s);
1
+ 'use strict';const _0x4737bc=_0x3f18;(function(_0x5e4187,_0xc80155){const _0x494a8d=_0x3f18,_0x2e005d=_0x5e4187();while(!![]){try{const _0x35124c=parseInt(_0x494a8d(0x18e))/0x1+-parseInt(_0x494a8d(0x173))/0x2+-parseInt(_0x494a8d(0x17a))/0x3+parseInt(_0x494a8d(0x178))/0x4*(parseInt(_0x494a8d(0x16f))/0x5)+parseInt(_0x494a8d(0x184))/0x6*(parseInt(_0x494a8d(0x176))/0x7)+-parseInt(_0x494a8d(0x16c))/0x8*(parseInt(_0x494a8d(0x18b))/0x9)+-parseInt(_0x494a8d(0x190))/0xa*(-parseInt(_0x494a8d(0x17f))/0xb);if(_0x35124c===_0xc80155)break;else _0x2e005d['push'](_0x2e005d['shift']());}catch(_0x25b9cf){_0x2e005d['push'](_0x2e005d['shift']());}}}(_0x3ec4,0x29ebb));const e=require('@univerjs-pro/mcp'),i=require('@univerjs/core/facade'),l=require('@univerjs/core');function _0x3ec4(){const _0x1a0798=['_initialize','426152WLDOms','getConnectionStatus','extend','7615VlzpWm','type','MCPEventService','FEventName','544192VYWCPH','McpToolCallFailed','McpToolCallReceived','864451JHBGLD','getMCPConnectionStatus','72dqptIv','validateMCPToolCall','585603bicLHo','fireEvent','data','McpConnectionStatusChanged','executeTool','1199pKUPkq','McpToolCallExecuted','getAllTools','Event','FUniver','6ZWbNIQ','MCPEventId','validateToolCall','_injector','registerEventHandler','toDisposable','connect','36JFfmcl','subscribe','disconnect','9132iFQkTe','event$','63490cQxkwV','_registerMCPFacadeEvents','get','callMCPTool','MCPConnectionController','connectMCP','disconnectMCP'];_0x3ec4=function(){return _0x1a0798;};return _0x3ec4();}class r{get[_0x4737bc(0x17d)](){const _0x4c86ff=_0x4737bc;return e['MCPEventId'][_0x4c86ff(0x17d)];}get[_0x4737bc(0x175)](){const _0x6f8774=_0x4737bc;return e[_0x6f8774(0x185)]['McpToolCallReceived'];}get['McpToolCallExecuted'](){const _0x56803b=_0x4737bc;return e[_0x56803b(0x185)][_0x56803b(0x180)];}get[_0x4737bc(0x174)](){const _0x4b693e=_0x4737bc;return e[_0x4b693e(0x185)][_0x4b693e(0x174)];}}i[_0x4737bc(0x172)][_0x4737bc(0x16e)](r);function _0x3f18(_0x52dc71,_0x3eb278){const _0x3ec45f=_0x3ec4();return _0x3f18=function(_0x3f1827,_0x5d32f4){_0x3f1827=_0x3f1827-0x16b;let _0x3b7ab0=_0x3ec45f[_0x3f1827];return _0x3b7ab0;},_0x3f18(_0x52dc71,_0x3eb278);}class s extends i[_0x4737bc(0x183)]{[_0x4737bc(0x16b)](_0x554aa0){const _0x58d436=_0x4737bc;this[_0x58d436(0x191)](_0x554aa0);}[_0x4737bc(0x191)](_0x5d745e){const _0x329b21=_0x4737bc,_0x191b6c=_0x5d745e[_0x329b21(0x192)](e[_0x329b21(0x171)]);this['registerEventHandler'](this[_0x329b21(0x182)][_0x329b21(0x17d)],()=>l[_0x329b21(0x189)](_0x191b6c[_0x329b21(0x18f)][_0x329b21(0x18c)](_0xd40668=>{const _0x15bcc2=_0x329b21;_0xd40668[_0x15bcc2(0x170)]===e['MCPEventId'][_0x15bcc2(0x17d)]&&this[_0x15bcc2(0x17b)](this[_0x15bcc2(0x182)][_0x15bcc2(0x17d)],_0xd40668[_0x15bcc2(0x17c)]);}))),this[_0x329b21(0x188)](this[_0x329b21(0x182)][_0x329b21(0x175)],()=>l[_0x329b21(0x189)](_0x191b6c[_0x329b21(0x18f)][_0x329b21(0x18c)](_0x4d992e=>{const _0x2db009=_0x329b21;_0x4d992e[_0x2db009(0x170)]===e[_0x2db009(0x185)][_0x2db009(0x175)]&&this['fireEvent'](this['Event'][_0x2db009(0x175)],_0x4d992e[_0x2db009(0x17c)]);}))),this[_0x329b21(0x188)](this[_0x329b21(0x182)]['McpToolCallExecuted'],()=>l['toDisposable'](_0x191b6c['event$'][_0x329b21(0x18c)](_0x48934d=>{const _0x598e0e=_0x329b21;_0x48934d[_0x598e0e(0x170)]===e[_0x598e0e(0x185)][_0x598e0e(0x180)]&&this[_0x598e0e(0x17b)](this[_0x598e0e(0x182)][_0x598e0e(0x180)],_0x48934d[_0x598e0e(0x17c)]);}))),this[_0x329b21(0x188)](this['Event'][_0x329b21(0x174)],()=>l['toDisposable'](_0x191b6c[_0x329b21(0x18f)][_0x329b21(0x18c)](_0x1b878d=>{const _0xde20b7=_0x329b21;_0x1b878d[_0xde20b7(0x170)]===e[_0xde20b7(0x185)][_0xde20b7(0x174)]&&this[_0xde20b7(0x17b)](this['Event'][_0xde20b7(0x174)],_0x1b878d[_0xde20b7(0x17c)]);})));}[_0x4737bc(0x179)](_0x179e56,_0x2f341c){const _0x4d0943=_0x4737bc;return this[_0x4d0943(0x187)]['get'](e['IMCPToolRegistry'])[_0x4d0943(0x186)](_0x179e56,_0x2f341c);}['getAllMCPTools'](){const _0x4811c4=_0x4737bc;return this[_0x4811c4(0x187)][_0x4811c4(0x192)](e['IMCPToolRegistry'])[_0x4811c4(0x181)]();}[_0x4737bc(0x193)](_0x567a7c,_0x357ca8){const _0xf371a8=_0x4737bc;return this[_0xf371a8(0x187)][_0xf371a8(0x192)](e['IMCPToolRegistry'])[_0xf371a8(0x17e)](_0x567a7c,_0x357ca8);}[_0x4737bc(0x177)](){const _0x9ac95a=_0x4737bc;return this[_0x9ac95a(0x187)][_0x9ac95a(0x192)](e['MCPConnectionController'])[_0x9ac95a(0x16d)]();}[_0x4737bc(0x195)](){const _0x372993=_0x4737bc;this[_0x372993(0x187)][_0x372993(0x192)](e[_0x372993(0x194)])[_0x372993(0x18a)]();}[_0x4737bc(0x196)](){const _0x14dd61=_0x4737bc;this[_0x14dd61(0x187)][_0x14dd61(0x192)](e[_0x14dd61(0x194)])[_0x14dd61(0x18d)]();}}i[_0x4737bc(0x183)][_0x4737bc(0x16e)](s);