@univerjs-pro/mcp 0.10.14-nightly.202511070628 → 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 _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);
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);