@univerjs-pro/mcp 0.10.14-nightly.202511031023 → 0.10.14-nightly.202511070640

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 _0x53b9c3=_0x1b31;(function(_0x4ec052,_0xb62fd7){const _0x1f3ecd=_0x1b31,_0x4cc58a=_0x4ec052();while(!![]){try{const _0x4fa40a=-parseInt(_0x1f3ecd(0xd2))/0x1*(-parseInt(_0x1f3ecd(0xd5))/0x2)+parseInt(_0x1f3ecd(0xc2))/0x3*(parseInt(_0x1f3ecd(0xc7))/0x4)+-parseInt(_0x1f3ecd(0xcd))/0x5*(-parseInt(_0x1f3ecd(0xba))/0x6)+parseInt(_0x1f3ecd(0xd7))/0x7+-parseInt(_0x1f3ecd(0xdb))/0x8+-parseInt(_0x1f3ecd(0xd4))/0x9+parseInt(_0x1f3ecd(0xd6))/0xa;if(_0x4fa40a===_0xb62fd7)break;else _0x4cc58a['push'](_0x4cc58a['shift']());}catch(_0x2f3924){_0x4cc58a['push'](_0x4cc58a['shift']());}}}(_0x1560,0x4ccfe));function _0x1b31(_0x5812b0,_0x21385a){const _0x15604a=_0x1560();return _0x1b31=function(_0x1b311c,_0x425a53){_0x1b311c=_0x1b311c-0xb4;let _0x494f49=_0x15604a[_0x1b311c];return _0x494f49;},_0x1b31(_0x5812b0,_0x21385a);}const e=require('@univerjs-pro/mcp'),i=require('@univerjs/core/facade'),l=require('@univerjs/core');function _0x1560(){const _0x93ad9e=['getMCPConnectionStatus','disconnect','MCPConnectionController','McpToolCallFailed','data','disconnectMCP','2706BbdRUp','callMCPTool','_initialize','McpConnectionStatusChanged','registerEventHandler','connect','McpToolCallExecuted','IMCPToolRegistry','6ARwoPl','validateToolCall','MCPEventId','toDisposable','type','591076sdnAPA','get','getAllTools','MCPEventService','connectMCP','fireEvent','1505CwyebR','McpToolCallReceived','FUniver','getAllMCPTools','getConnectionStatus','9nTfIJS','extend','4484637SmStrg','38886kAdIzq','5987370xJtpVp','741559zplCiQ','_registerMCPFacadeEvents','event$','validateMCPToolCall','3984280JDqqWP','_injector','subscribe','FEventName','Event'];_0x1560=function(){return _0x93ad9e;};return _0x1560();}class r{get['McpConnectionStatusChanged'](){const _0x3b965f=_0x1b31;return e[_0x3b965f(0xc4)][_0x3b965f(0xbd)];}get[_0x53b9c3(0xce)](){const _0x1e1c15=_0x53b9c3;return e[_0x1e1c15(0xc4)]['McpToolCallReceived'];}get[_0x53b9c3(0xc0)](){const _0x190f4b=_0x53b9c3;return e[_0x190f4b(0xc4)][_0x190f4b(0xc0)];}get[_0x53b9c3(0xb7)](){const _0x5c560e=_0x53b9c3;return e['MCPEventId'][_0x5c560e(0xb7)];}}i[_0x53b9c3(0xde)]['extend'](r);class s extends i[_0x53b9c3(0xcf)]{[_0x53b9c3(0xbc)](_0x213e1a){const _0x2eb5a0=_0x53b9c3;this[_0x2eb5a0(0xd8)](_0x213e1a);}[_0x53b9c3(0xd8)](_0x5ac299){const _0x51fda3=_0x53b9c3,_0x42f6f3=_0x5ac299['get'](e[_0x51fda3(0xca)]);this['registerEventHandler'](this['Event'][_0x51fda3(0xbd)],()=>l[_0x51fda3(0xc5)](_0x42f6f3['event$'][_0x51fda3(0xdd)](_0x15aa6b=>{const _0x511a46=_0x51fda3;_0x15aa6b[_0x511a46(0xc6)]===e[_0x511a46(0xc4)][_0x511a46(0xbd)]&&this[_0x511a46(0xcc)](this[_0x511a46(0xdf)][_0x511a46(0xbd)],_0x15aa6b[_0x511a46(0xb8)]);}))),this[_0x51fda3(0xbe)](this[_0x51fda3(0xdf)][_0x51fda3(0xce)],()=>l['toDisposable'](_0x42f6f3['event$']['subscribe'](_0x1f9e26=>{const _0x3f299a=_0x51fda3;_0x1f9e26[_0x3f299a(0xc6)]===e['MCPEventId'][_0x3f299a(0xce)]&&this[_0x3f299a(0xcc)](this[_0x3f299a(0xdf)][_0x3f299a(0xce)],_0x1f9e26[_0x3f299a(0xb8)]);}))),this['registerEventHandler'](this[_0x51fda3(0xdf)][_0x51fda3(0xc0)],()=>l[_0x51fda3(0xc5)](_0x42f6f3['event$'][_0x51fda3(0xdd)](_0x4ae9d1=>{const _0x1822d3=_0x51fda3;_0x4ae9d1[_0x1822d3(0xc6)]===e[_0x1822d3(0xc4)][_0x1822d3(0xc0)]&&this[_0x1822d3(0xcc)](this[_0x1822d3(0xdf)][_0x1822d3(0xc0)],_0x4ae9d1[_0x1822d3(0xb8)]);}))),this[_0x51fda3(0xbe)](this[_0x51fda3(0xdf)][_0x51fda3(0xb7)],()=>l[_0x51fda3(0xc5)](_0x42f6f3[_0x51fda3(0xd9)][_0x51fda3(0xdd)](_0x190366=>{const _0x47b4f0=_0x51fda3;_0x190366[_0x47b4f0(0xc6)]===e['MCPEventId']['McpToolCallFailed']&&this[_0x47b4f0(0xcc)](this[_0x47b4f0(0xdf)][_0x47b4f0(0xb7)],_0x190366[_0x47b4f0(0xb8)]);})));}[_0x53b9c3(0xda)](_0x4aa160,_0x4805f0){const _0x2a22ef=_0x53b9c3;return this['_injector'][_0x2a22ef(0xc8)](e[_0x2a22ef(0xc1)])[_0x2a22ef(0xc3)](_0x4aa160,_0x4805f0);}[_0x53b9c3(0xd0)](){const _0x43a465=_0x53b9c3;return this[_0x43a465(0xdc)]['get'](e[_0x43a465(0xc1)])[_0x43a465(0xc9)]();}[_0x53b9c3(0xbb)](_0x20ca69,_0x43a0f4){const _0x19dd62=_0x53b9c3;return this[_0x19dd62(0xdc)][_0x19dd62(0xc8)](e['IMCPToolRegistry'])['executeTool'](_0x20ca69,_0x43a0f4);}[_0x53b9c3(0xb4)](){const _0x1e69a9=_0x53b9c3;return this[_0x1e69a9(0xdc)][_0x1e69a9(0xc8)](e['MCPConnectionController'])[_0x1e69a9(0xd1)]();}[_0x53b9c3(0xcb)](){const _0x26b982=_0x53b9c3;this[_0x26b982(0xdc)]['get'](e[_0x26b982(0xb6)])[_0x26b982(0xbf)]();}[_0x53b9c3(0xb9)](){const _0xa6b267=_0x53b9c3;this[_0xa6b267(0xdc)][_0xa6b267(0xc8)](e[_0xa6b267(0xb6)])[_0xa6b267(0xb5)]();}}i[_0x53b9c3(0xcf)][_0x53b9c3(0xd3)](s);
1
+ 'use strict';const _0x9e6d95=_0x12ef;(function(_0x5b7870,_0x30e178){const _0x4221e9=_0x12ef,_0x440cf=_0x5b7870();while(!![]){try{const _0xf02eeb=parseInt(_0x4221e9(0x8a))/0x1*(-parseInt(_0x4221e9(0x70))/0x2)+parseInt(_0x4221e9(0x86))/0x3*(-parseInt(_0x4221e9(0x68))/0x4)+parseInt(_0x4221e9(0x67))/0x5*(-parseInt(_0x4221e9(0x84))/0x6)+parseInt(_0x4221e9(0x6e))/0x7*(-parseInt(_0x4221e9(0x87))/0x8)+parseInt(_0x4221e9(0x7e))/0x9+parseInt(_0x4221e9(0x6d))/0xa+parseInt(_0x4221e9(0x77))/0xb;if(_0xf02eeb===_0x30e178)break;else _0x440cf['push'](_0x440cf['shift']());}catch(_0x52c1fd){_0x440cf['push'](_0x440cf['shift']());}}}(_0x1ffe,0x3782f));function _0x1ffe(){const _0x1204a0=['extend','MCPEventId','fireEvent','callMCPTool','6726hnpZdJ','IMCPToolRegistry','33Uxguhi','8FcYFDU','MCPConnectionController','McpToolCallReceived','1591lMqCqy','connectMCP','getMCPConnectionStatus','McpToolCallFailed','_initialize','McpConnectionStatusChanged','805XrvNRD','32684yXxoez','MCPEventService','data','type','Event','3186720QnATxT','792953apBVnP','validateMCPToolCall','466sfWqVx','event$','_registerMCPFacadeEvents','disconnect','getConnectionStatus','FUniver','get','3849406AtvKtN','connect','_injector','getAllMCPTools','McpToolCallExecuted','registerEventHandler','toDisposable','2817909JfpXqO','subscribe'];_0x1ffe=function(){return _0x1204a0;};return _0x1ffe();}function _0x12ef(_0x97db6b,_0x5e254d){const _0x1ffee2=_0x1ffe();return _0x12ef=function(_0x12ef01,_0x31ce6b){_0x12ef01=_0x12ef01-0x65;let _0x29277b=_0x1ffee2[_0x12ef01];return _0x29277b;},_0x12ef(_0x97db6b,_0x5e254d);}const e=require('@univerjs-pro/mcp'),i=require('@univerjs/core/facade'),l=require('@univerjs/core');class r{get[_0x9e6d95(0x66)](){const _0x1972b4=_0x9e6d95;return e[_0x1972b4(0x81)][_0x1972b4(0x66)];}get[_0x9e6d95(0x89)](){const _0x2e0a87=_0x9e6d95;return e[_0x2e0a87(0x81)][_0x2e0a87(0x89)];}get[_0x9e6d95(0x7b)](){const _0x6a8617=_0x9e6d95;return e[_0x6a8617(0x81)][_0x6a8617(0x7b)];}get['McpToolCallFailed'](){const _0x48464e=_0x9e6d95;return e['MCPEventId'][_0x48464e(0x8d)];}}i['FEventName'][_0x9e6d95(0x80)](r);class s extends i[_0x9e6d95(0x75)]{[_0x9e6d95(0x65)](_0x28e930){const _0x43524a=_0x9e6d95;this[_0x43524a(0x72)](_0x28e930);}[_0x9e6d95(0x72)](_0x22e672){const _0xd9cbb3=_0x9e6d95,_0x3846df=_0x22e672[_0xd9cbb3(0x76)](e[_0xd9cbb3(0x69)]);this[_0xd9cbb3(0x7c)](this[_0xd9cbb3(0x6c)][_0xd9cbb3(0x66)],()=>l[_0xd9cbb3(0x7d)](_0x3846df[_0xd9cbb3(0x71)][_0xd9cbb3(0x7f)](_0x53fb36=>{const _0x4fb84c=_0xd9cbb3;_0x53fb36[_0x4fb84c(0x6b)]===e[_0x4fb84c(0x81)][_0x4fb84c(0x66)]&&this[_0x4fb84c(0x82)](this['Event']['McpConnectionStatusChanged'],_0x53fb36[_0x4fb84c(0x6a)]);}))),this[_0xd9cbb3(0x7c)](this[_0xd9cbb3(0x6c)]['McpToolCallReceived'],()=>l[_0xd9cbb3(0x7d)](_0x3846df[_0xd9cbb3(0x71)][_0xd9cbb3(0x7f)](_0x4df38d=>{const _0x536156=_0xd9cbb3;_0x4df38d[_0x536156(0x6b)]===e['MCPEventId'][_0x536156(0x89)]&&this[_0x536156(0x82)](this[_0x536156(0x6c)][_0x536156(0x89)],_0x4df38d['data']);}))),this[_0xd9cbb3(0x7c)](this[_0xd9cbb3(0x6c)][_0xd9cbb3(0x7b)],()=>l[_0xd9cbb3(0x7d)](_0x3846df[_0xd9cbb3(0x71)]['subscribe'](_0xae1a2=>{const _0x69031f=_0xd9cbb3;_0xae1a2['type']===e[_0x69031f(0x81)][_0x69031f(0x7b)]&&this['fireEvent'](this['Event'][_0x69031f(0x7b)],_0xae1a2['data']);}))),this['registerEventHandler'](this[_0xd9cbb3(0x6c)][_0xd9cbb3(0x8d)],()=>l[_0xd9cbb3(0x7d)](_0x3846df[_0xd9cbb3(0x71)][_0xd9cbb3(0x7f)](_0x151bbc=>{const _0x58b6d3=_0xd9cbb3;_0x151bbc[_0x58b6d3(0x6b)]===e['MCPEventId']['McpToolCallFailed']&&this[_0x58b6d3(0x82)](this[_0x58b6d3(0x6c)][_0x58b6d3(0x8d)],_0x151bbc[_0x58b6d3(0x6a)]);})));}[_0x9e6d95(0x6f)](_0x37227d,_0x2f0ade){const _0x1b617c=_0x9e6d95;return this[_0x1b617c(0x79)][_0x1b617c(0x76)](e[_0x1b617c(0x85)])['validateToolCall'](_0x37227d,_0x2f0ade);}[_0x9e6d95(0x7a)](){const _0x23bab5=_0x9e6d95;return this[_0x23bab5(0x79)]['get'](e[_0x23bab5(0x85)])['getAllTools']();}[_0x9e6d95(0x83)](_0x44c7cc,_0x315b55){const _0x11e3c4=_0x9e6d95;return this[_0x11e3c4(0x79)][_0x11e3c4(0x76)](e[_0x11e3c4(0x85)])['executeTool'](_0x44c7cc,_0x315b55);}[_0x9e6d95(0x8c)](){const _0x1f402e=_0x9e6d95;return this[_0x1f402e(0x79)][_0x1f402e(0x76)](e[_0x1f402e(0x88)])[_0x1f402e(0x74)]();}[_0x9e6d95(0x8b)](){const _0x12cd9e=_0x9e6d95;this['_injector'][_0x12cd9e(0x76)](e[_0x12cd9e(0x88)])[_0x12cd9e(0x78)]();}['disconnectMCP'](){const _0x42d646=_0x9e6d95;this[_0x42d646(0x79)]['get'](e['MCPConnectionController'])[_0x42d646(0x73)]();}}i[_0x9e6d95(0x75)][_0x9e6d95(0x80)](s);