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

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 _0x4cdb8d=_0x3b36;(function(_0x134aa7,_0x4e19b4){const _0x79e063=_0x3b36,_0x1e4307=_0x134aa7();while(!![]){try{const _0x1efa7b=parseInt(_0x79e063(0x1e6))/0x1+-parseInt(_0x79e063(0x1e0))/0x2+-parseInt(_0x79e063(0x1d9))/0x3+-parseInt(_0x79e063(0x1e5))/0x4+parseInt(_0x79e063(0x1dd))/0x5+-parseInt(_0x79e063(0x1e7))/0x6+parseInt(_0x79e063(0x1da))/0x7*(parseInt(_0x79e063(0x1df))/0x8);if(_0x1efa7b===_0x4e19b4)break;else _0x1e4307['push'](_0x1e4307['shift']());}catch(_0x506cad){_0x1e4307['push'](_0x1e4307['shift']());}}}(_0xbc07,0xa70da));function _0xbc07(){const _0x22c0fd=['_injector','validateToolCall','4934180BwRsNZ','1261085nzLxGM','4237398uBJTJw','getAllMCPTools','validateMCPToolCall','FUniver','3531285sYZxqg','23415287TwvECX','executeTool','callMCPTool','662440kSrQcr','getAllTools','8AawuQV','1874982fVLIJU','get','IMCPToolRegistry'];_0xbc07=function(){return _0x22c0fd;};return _0xbc07();}function _0x3b36(_0x478f41,_0x5000c1){const _0xbc07e1=_0xbc07();return _0x3b36=function(_0x3b3624,_0x3b155e){_0x3b3624=_0x3b3624-0x1d6;let _0x2eea69=_0xbc07e1[_0x3b3624];return _0x2eea69;},_0x3b36(_0x478f41,_0x5000c1);}const t=require('@univerjs-pro/mcp'),l=require('@univerjs/core/facade');class i extends l['FUniver']{[_0x4cdb8d(0x1d7)](_0x255776,_0x197b9f){const _0xedb4ff=_0x4cdb8d;return this[_0xedb4ff(0x1e3)][_0xedb4ff(0x1e1)](t[_0xedb4ff(0x1e2)])[_0xedb4ff(0x1e4)](_0x255776,_0x197b9f);}[_0x4cdb8d(0x1d6)](){const _0x2dc070=_0x4cdb8d;return this['_injector'][_0x2dc070(0x1e1)](t[_0x2dc070(0x1e2)])[_0x2dc070(0x1de)]();}[_0x4cdb8d(0x1dc)](_0x28ca4b,_0x32afbf){const _0x253d0f=_0x4cdb8d;return this['_injector']['get'](t['IMCPToolRegistry'])[_0x253d0f(0x1db)](_0x28ca4b,_0x32afbf);}}l[_0x4cdb8d(0x1d8)]['extend'](i);
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);