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

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 _0x3078fd=_0x1ad4;(function(_0x1e86ab,_0x5d847d){const _0x3f33e7=_0x1ad4,_0x1a0e11=_0x1e86ab();while(!![]){try{const _0x5dc88a=-parseInt(_0x3f33e7(0xef))/0x1+parseInt(_0x3f33e7(0xf6))/0x2*(parseInt(_0x3f33e7(0x10c))/0x3)+-parseInt(_0x3f33e7(0xf3))/0x4*(-parseInt(_0x3f33e7(0x112))/0x5)+parseInt(_0x3f33e7(0x101))/0x6+parseInt(_0x3f33e7(0x109))/0x7*(parseInt(_0x3f33e7(0x107))/0x8)+-parseInt(_0x3f33e7(0x104))/0x9+parseInt(_0x3f33e7(0xf5))/0xa;if(_0x5dc88a===_0x5d847d)break;else _0x1a0e11['push'](_0x1a0e11['shift']());}catch(_0x33a8b2){_0x1a0e11['push'](_0x1a0e11['shift']());}}}(_0x2749,0x514aa));function _0x1ad4(_0x2bfda4,_0x190b8c){const _0x274901=_0x2749();return _0x1ad4=function(_0x1ad4e1,_0x4a904a){_0x1ad4e1=_0x1ad4e1-0xea;let _0x3aa37d=_0x274901[_0x1ad4e1];return _0x3aa37d;},_0x1ad4(_0x2bfda4,_0x190b8c);}const e=require('@univerjs-pro/mcp'),i=require('@univerjs/core/facade'),l=require('@univerjs/core');class r{get[_0x3078fd(0xfd)](){const _0x5ce0d9=_0x3078fd;return e[_0x5ce0d9(0x10e)]['McpConnectionStatusChanged'];}get[_0x3078fd(0xf0)](){const _0x313645=_0x3078fd;return e[_0x313645(0x10e)][_0x313645(0xf0)];}get['McpToolCallExecuted'](){const _0x3d5154=_0x3078fd;return e[_0x3d5154(0x10e)][_0x3d5154(0xfb)];}get[_0x3078fd(0x110)](){const _0x18caa6=_0x3078fd;return e[_0x18caa6(0x10e)][_0x18caa6(0x110)];}}i[_0x3078fd(0xfc)]['extend'](r);function _0x2749(){const _0x59b0f4=['validateToolCall','MCPEventService','registerEventHandler','disconnect','getMCPConnectionStatus','436104FbNian','McpToolCallReceived','FUniver','MCPConnectionController','236yiVXTd','_injector','3251170RpHBFz','8rWQNLx','getAllMCPTools','event$','type','_registerMCPFacadeEvents','McpToolCallExecuted','FEventName','McpConnectionStatusChanged','get','validateMCPToolCall','getAllTools','1414824OQtPnd','getConnectionStatus','Event','3587823mNTxFV','subscribe','fireEvent','8HYOqKM','connect','333893RDKWEe','extend','toDisposable','365208pUWZfy','disconnectMCP','MCPEventId','connectMCP','McpToolCallFailed','data','6115sxskao','IMCPToolRegistry'];_0x2749=function(){return _0x59b0f4;};return _0x2749();}class s extends i[_0x3078fd(0xf1)]{['_initialize'](_0x12a295){this['_registerMCPFacadeEvents'](_0x12a295);}[_0x3078fd(0xfa)](_0x8714ce){const _0x44fb2b=_0x3078fd,_0x49ffe9=_0x8714ce['get'](e[_0x44fb2b(0xeb)]);this[_0x44fb2b(0xec)](this[_0x44fb2b(0x103)]['McpConnectionStatusChanged'],()=>l['toDisposable'](_0x49ffe9[_0x44fb2b(0xf8)]['subscribe'](_0x1a08c3=>{const _0x4103ac=_0x44fb2b;_0x1a08c3[_0x4103ac(0xf9)]===e['MCPEventId']['McpConnectionStatusChanged']&&this[_0x4103ac(0x106)](this[_0x4103ac(0x103)][_0x4103ac(0xfd)],_0x1a08c3[_0x4103ac(0x111)]);}))),this[_0x44fb2b(0xec)](this[_0x44fb2b(0x103)][_0x44fb2b(0xf0)],()=>l[_0x44fb2b(0x10b)](_0x49ffe9[_0x44fb2b(0xf8)]['subscribe'](_0x2edd35=>{const _0xafcaee=_0x44fb2b;_0x2edd35[_0xafcaee(0xf9)]===e[_0xafcaee(0x10e)][_0xafcaee(0xf0)]&&this[_0xafcaee(0x106)](this[_0xafcaee(0x103)][_0xafcaee(0xf0)],_0x2edd35[_0xafcaee(0x111)]);}))),this[_0x44fb2b(0xec)](this[_0x44fb2b(0x103)]['McpToolCallExecuted'],()=>l['toDisposable'](_0x49ffe9[_0x44fb2b(0xf8)][_0x44fb2b(0x105)](_0x268cb7=>{const _0x21da18=_0x44fb2b;_0x268cb7[_0x21da18(0xf9)]===e[_0x21da18(0x10e)][_0x21da18(0xfb)]&&this[_0x21da18(0x106)](this[_0x21da18(0x103)]['McpToolCallExecuted'],_0x268cb7['data']);}))),this['registerEventHandler'](this['Event'][_0x44fb2b(0x110)],()=>l[_0x44fb2b(0x10b)](_0x49ffe9[_0x44fb2b(0xf8)][_0x44fb2b(0x105)](_0x46ada9=>{const _0x5c868c=_0x44fb2b;_0x46ada9[_0x5c868c(0xf9)]===e[_0x5c868c(0x10e)][_0x5c868c(0x110)]&&this['fireEvent'](this[_0x5c868c(0x103)][_0x5c868c(0x110)],_0x46ada9[_0x5c868c(0x111)]);})));}[_0x3078fd(0xff)](_0x44c2e8,_0x20a4bf){const _0x19171f=_0x3078fd;return this['_injector'][_0x19171f(0xfe)](e[_0x19171f(0x113)])[_0x19171f(0xea)](_0x44c2e8,_0x20a4bf);}[_0x3078fd(0xf7)](){const _0x41d606=_0x3078fd;return this[_0x41d606(0xf4)][_0x41d606(0xfe)](e[_0x41d606(0x113)])[_0x41d606(0x100)]();}['callMCPTool'](_0x1aceb9,_0x45ca37){const _0x51ac54=_0x3078fd;return this[_0x51ac54(0xf4)]['get'](e[_0x51ac54(0x113)])['executeTool'](_0x1aceb9,_0x45ca37);}[_0x3078fd(0xee)](){const _0x783ecc=_0x3078fd;return this[_0x783ecc(0xf4)][_0x783ecc(0xfe)](e[_0x783ecc(0xf2)])[_0x783ecc(0x102)]();}[_0x3078fd(0x10f)](){const _0x294c3b=_0x3078fd;this['_injector'][_0x294c3b(0xfe)](e[_0x294c3b(0xf2)])[_0x294c3b(0x108)]();}[_0x3078fd(0x10d)](){const _0x1954d9=_0x3078fd;this[_0x1954d9(0xf4)][_0x1954d9(0xfe)](e[_0x1954d9(0xf2)])[_0x1954d9(0xed)]();}}i[_0x3078fd(0xf1)][_0x3078fd(0x10a)](s);