@univerjs-pro/mcp 0.10.10-experimental.20251010-3f807c5 → 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 _0x3a57c2=_0x5473;(function(_0x287c2a,_0x667acf){const _0xb82151=_0x5473,_0x623c8d=_0x287c2a();while(!![]){try{const _0x1157e2=-parseInt(_0xb82151(0x1ca))/0x1+-parseInt(_0xb82151(0x1ba))/0x2+-parseInt(_0xb82151(0x1a9))/0x3+-parseInt(_0xb82151(0x1d1))/0x4+parseInt(_0xb82151(0x1c8))/0x5*(parseInt(_0xb82151(0x1c3))/0x6)+-parseInt(_0xb82151(0x1b5))/0x7+parseInt(_0xb82151(0x1cc))/0x8;if(_0x1157e2===_0x667acf)break;else _0x623c8d['push'](_0x623c8d['shift']());}catch(_0x2b9786){_0x623c8d['push'](_0x623c8d['shift']());}}}(_0x98b6,0x9c804));const e=require('@univerjs-pro/mcp'),i=require('@univerjs/core/facade'),l=require('@univerjs/core');function _0x5473(_0x213286,_0x3dbe50){const _0x98b68=_0x98b6();return _0x5473=function(_0x5473bc,_0x2cf1e0){_0x5473bc=_0x5473bc-0x1a9;let _0x143213=_0x98b68[_0x5473bc];return _0x143213;},_0x5473(_0x213286,_0x3dbe50);}class r{get[_0x3a57c2(0x1cf)](){const _0x4704f3=_0x3a57c2;return e[_0x4704f3(0x1ce)][_0x4704f3(0x1cf)];}get[_0x3a57c2(0x1b0)](){return e['MCPEventId']['McpToolCallReceived'];}get[_0x3a57c2(0x1d0)](){const _0x219f24=_0x3a57c2;return e['MCPEventId'][_0x219f24(0x1d0)];}get[_0x3a57c2(0x1bd)](){const _0x24e22e=_0x3a57c2;return e[_0x24e22e(0x1ce)][_0x24e22e(0x1bd)];}}function _0x98b6(){const _0x220119=['getConnectionStatus','toDisposable','FEventName','getAllTools','24aaisNr','connect','executeTool','getMCPConnectionStatus','IMCPToolRegistry','1531335Oagcaw','get','346243lQQZJm','_registerMCPFacadeEvents','19431728uJHugF','type','MCPEventId','McpConnectionStatusChanged','McpToolCallExecuted','5037312MzbUhG','1526988jRgyIV','event$','FUniver','fireEvent','extend','data','callMCPTool','McpToolCallReceived','subscribe','disconnectMCP','getAllMCPTools','_initialize','1724352jAeWgL','validateToolCall','registerEventHandler','disconnect','MCPConnectionController','1304206fBdlsN','Event','_injector','McpToolCallFailed','validateMCPToolCall'];_0x98b6=function(){return _0x220119;};return _0x98b6();}i[_0x3a57c2(0x1c1)][_0x3a57c2(0x1ad)](r);class s extends i['FUniver']{[_0x3a57c2(0x1b4)](_0x307ca4){const _0x383502=_0x3a57c2;this[_0x383502(0x1cb)](_0x307ca4);}[_0x3a57c2(0x1cb)](_0x3c7e97){const _0x563593=_0x3a57c2,_0x3c46d0=_0x3c7e97[_0x563593(0x1c9)](e['MCPEventService']);this['registerEventHandler'](this[_0x563593(0x1bb)][_0x563593(0x1cf)],()=>l[_0x563593(0x1c0)](_0x3c46d0[_0x563593(0x1aa)]['subscribe'](_0x3aad6a=>{const _0x14961d=_0x563593;_0x3aad6a[_0x14961d(0x1cd)]===e[_0x14961d(0x1ce)][_0x14961d(0x1cf)]&&this[_0x14961d(0x1ac)](this[_0x14961d(0x1bb)][_0x14961d(0x1cf)],_0x3aad6a[_0x14961d(0x1ae)]);}))),this[_0x563593(0x1b7)](this[_0x563593(0x1bb)]['McpToolCallReceived'],()=>l[_0x563593(0x1c0)](_0x3c46d0['event$'][_0x563593(0x1b1)](_0x33e632=>{const _0x534d60=_0x563593;_0x33e632[_0x534d60(0x1cd)]===e[_0x534d60(0x1ce)][_0x534d60(0x1b0)]&&this['fireEvent'](this['Event'][_0x534d60(0x1b0)],_0x33e632['data']);}))),this[_0x563593(0x1b7)](this[_0x563593(0x1bb)][_0x563593(0x1d0)],()=>l[_0x563593(0x1c0)](_0x3c46d0[_0x563593(0x1aa)][_0x563593(0x1b1)](_0x3d917a=>{const _0x2af158=_0x563593;_0x3d917a['type']===e[_0x2af158(0x1ce)][_0x2af158(0x1d0)]&&this[_0x2af158(0x1ac)](this[_0x2af158(0x1bb)][_0x2af158(0x1d0)],_0x3d917a[_0x2af158(0x1ae)]);}))),this[_0x563593(0x1b7)](this[_0x563593(0x1bb)][_0x563593(0x1bd)],()=>l[_0x563593(0x1c0)](_0x3c46d0[_0x563593(0x1aa)][_0x563593(0x1b1)](_0x32ca2e=>{const _0x540195=_0x563593;_0x32ca2e[_0x540195(0x1cd)]===e[_0x540195(0x1ce)]['McpToolCallFailed']&&this['fireEvent'](this[_0x540195(0x1bb)][_0x540195(0x1bd)],_0x32ca2e[_0x540195(0x1ae)]);})));}[_0x3a57c2(0x1be)](_0x4a3851,_0x177c08){const _0x370e4d=_0x3a57c2;return this['_injector'][_0x370e4d(0x1c9)](e[_0x370e4d(0x1c7)])[_0x370e4d(0x1b6)](_0x4a3851,_0x177c08);}[_0x3a57c2(0x1b3)](){const _0x4c74fd=_0x3a57c2;return this[_0x4c74fd(0x1bc)]['get'](e[_0x4c74fd(0x1c7)])[_0x4c74fd(0x1c2)]();}[_0x3a57c2(0x1af)](_0x41c2c2,_0x317f1e){const _0x30d6aa=_0x3a57c2;return this[_0x30d6aa(0x1bc)][_0x30d6aa(0x1c9)](e[_0x30d6aa(0x1c7)])[_0x30d6aa(0x1c5)](_0x41c2c2,_0x317f1e);}[_0x3a57c2(0x1c6)](){const _0xb55cd9=_0x3a57c2;return this[_0xb55cd9(0x1bc)][_0xb55cd9(0x1c9)](e['MCPConnectionController'])[_0xb55cd9(0x1bf)]();}['connectMCP'](){const _0x45dc79=_0x3a57c2;this[_0x45dc79(0x1bc)]['get'](e[_0x45dc79(0x1b9)])[_0x45dc79(0x1c4)]();}[_0x3a57c2(0x1b2)](){const _0x5630b8=_0x3a57c2;this[_0x5630b8(0x1bc)][_0x5630b8(0x1c9)](e[_0x5630b8(0x1b9)])[_0x5630b8(0x1b8)]();}}i[_0x3a57c2(0x1ab)][_0x3a57c2(0x1ad)](s);
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);