@univerjs-pro/mcp 0.10.10 → 0.10.11-nightly.202510220308

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/umd/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x56d3(_0x484495,_0x2a72d5){const _0x3f1b7a=_0x3f1b();return _0x56d3=function(_0x56d399,_0x4396ae){_0x56d399=_0x56d399-0x1e6;let _0x550bd0=_0x3f1b7a[_0x56d399];return _0x550bd0;},_0x56d3(_0x484495,_0x2a72d5);}function _0x3f1b(){const _0x417f79=['McpToolCallFailed','get','3385712pFOtUL','disconnect','validateToolCall','_registerMCPFacadeEvents','getConnectionStatus','339NENPrQ','44153GyIipA','amd','McpToolCallReceived','toDisposable','object','event$','UniverCoreFacade','type','subscribe','1299198uasKvz','executeTool','273552bKXPeh','disconnectMCP','data','_injector','MCPEventService','MCPEventId','5aKFcnp','getAllMCPTools','McpConnectionStatusChanged','extend','4530rvkpmZ','callMCPTool','connectMCP','MCPConnectionController','@univerjs/core/facade','McpToolCallExecuted','6528ntstby','3646224PfDszw','getAllTools','fireEvent','IMCPToolRegistry','Event','@univerjs-pro/mcp','FEventName','10VKKjDJ','getMCPConnectionStatus','function','FUniver','3591QqESpT','connect','35dpWSMn','registerEventHandler','validateMCPToolCall'];_0x3f1b=function(){return _0x417f79;};return _0x3f1b();}(function(_0x40d8b0,_0x3a70e9){const _0x351a79=_0x56d3,_0x166518=_0x40d8b0();while(!![]){try{const _0x3437e3=parseInt(_0x351a79(0x1e6))/0x1*(-parseInt(_0x351a79(0x209))/0x2)+parseInt(_0x351a79(0x219))/0x3*(parseInt(_0x351a79(0x201))/0x4)+-parseInt(_0x351a79(0x1f7))/0x5*(-parseInt(_0x351a79(0x1ef))/0x6)+parseInt(_0x351a79(0x20f))/0x7*(parseInt(_0x351a79(0x1f1))/0x8)+parseInt(_0x351a79(0x20d))/0x9*(-parseInt(_0x351a79(0x1fb))/0xa)+-parseInt(_0x351a79(0x214))/0xb+parseInt(_0x351a79(0x202))/0xc;if(_0x3437e3===_0x3a70e9)break;else _0x166518['push'](_0x166518['shift']());}catch(_0x221e01){_0x166518['push'](_0x166518['shift']());}}}(_0x3f1b,0x28a43),function(_0x4a1882,_0x37bdd7){const _0x4f42e5=_0x56d3;typeof exports==_0x4f42e5(0x1ea)&&typeof module<'u'?_0x37bdd7(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x4f42e5(0x20b)&&define[_0x4f42e5(0x1e7)]?define([_0x4f42e5(0x207),_0x4f42e5(0x1ff),'@univerjs/core'],_0x37bdd7):(_0x4a1882=typeof globalThis<'u'?globalThis:_0x4a1882||self,_0x37bdd7(_0x4a1882['UniverProMcp'],_0x4a1882[_0x4f42e5(0x1ec)],_0x4a1882['UniverCore']));}(this,function(_0x2fccc9,_0x37ecd3,_0x56a95d){'use strict';const _0x173eb8=_0x56d3;class _0x4764ad{get[_0x173eb8(0x1f9)](){const _0x51d8f9=_0x173eb8;return _0x2fccc9[_0x51d8f9(0x1f6)]['McpConnectionStatusChanged'];}get['McpToolCallReceived'](){const _0x202ba2=_0x173eb8;return _0x2fccc9[_0x202ba2(0x1f6)][_0x202ba2(0x1e8)];}get[_0x173eb8(0x200)](){const _0x206d70=_0x173eb8;return _0x2fccc9[_0x206d70(0x1f6)][_0x206d70(0x200)];}get[_0x173eb8(0x212)](){return _0x2fccc9['MCPEventId']['McpToolCallFailed'];}}_0x37ecd3[_0x173eb8(0x208)][_0x173eb8(0x1fa)](_0x4764ad);class _0x3edca7 extends _0x37ecd3[_0x173eb8(0x20c)]{['_initialize'](_0x2c5bae){this['_registerMCPFacadeEvents'](_0x2c5bae);}[_0x173eb8(0x217)](_0x4f85c4){const _0x3735e7=_0x173eb8,_0x4832df=_0x4f85c4[_0x3735e7(0x213)](_0x2fccc9[_0x3735e7(0x1f5)]);this[_0x3735e7(0x210)](this['Event'][_0x3735e7(0x1f9)],()=>_0x56a95d[_0x3735e7(0x1e9)](_0x4832df[_0x3735e7(0x1eb)][_0x3735e7(0x1ee)](_0x1aba0e=>{const _0x44552=_0x3735e7;_0x1aba0e['type']===_0x2fccc9[_0x44552(0x1f6)][_0x44552(0x1f9)]&&this[_0x44552(0x204)](this[_0x44552(0x206)]['McpConnectionStatusChanged'],_0x1aba0e[_0x44552(0x1f3)]);}))),this[_0x3735e7(0x210)](this[_0x3735e7(0x206)][_0x3735e7(0x1e8)],()=>_0x56a95d['toDisposable'](_0x4832df[_0x3735e7(0x1eb)][_0x3735e7(0x1ee)](_0x2ad600=>{const _0x2eeabf=_0x3735e7;_0x2ad600[_0x2eeabf(0x1ed)]===_0x2fccc9['MCPEventId'][_0x2eeabf(0x1e8)]&&this[_0x2eeabf(0x204)](this[_0x2eeabf(0x206)][_0x2eeabf(0x1e8)],_0x2ad600[_0x2eeabf(0x1f3)]);}))),this[_0x3735e7(0x210)](this[_0x3735e7(0x206)][_0x3735e7(0x200)],()=>_0x56a95d[_0x3735e7(0x1e9)](_0x4832df['event$'][_0x3735e7(0x1ee)](_0x5f42a1=>{const _0x363f49=_0x3735e7;_0x5f42a1[_0x363f49(0x1ed)]===_0x2fccc9[_0x363f49(0x1f6)][_0x363f49(0x200)]&&this[_0x363f49(0x204)](this[_0x363f49(0x206)][_0x363f49(0x200)],_0x5f42a1[_0x363f49(0x1f3)]);}))),this[_0x3735e7(0x210)](this['Event'][_0x3735e7(0x212)],()=>_0x56a95d[_0x3735e7(0x1e9)](_0x4832df[_0x3735e7(0x1eb)][_0x3735e7(0x1ee)](_0x4a76c4=>{const _0x560036=_0x3735e7;_0x4a76c4[_0x560036(0x1ed)]===_0x2fccc9['MCPEventId'][_0x560036(0x212)]&&this[_0x560036(0x204)](this[_0x560036(0x206)][_0x560036(0x212)],_0x4a76c4[_0x560036(0x1f3)]);})));}[_0x173eb8(0x211)](_0x1df198,_0x31f389){const _0x259495=_0x173eb8;return this[_0x259495(0x1f4)][_0x259495(0x213)](_0x2fccc9['IMCPToolRegistry'])[_0x259495(0x216)](_0x1df198,_0x31f389);}[_0x173eb8(0x1f8)](){const _0x1c5bdb=_0x173eb8;return this['_injector'][_0x1c5bdb(0x213)](_0x2fccc9[_0x1c5bdb(0x205)])[_0x1c5bdb(0x203)]();}[_0x173eb8(0x1fc)](_0x1ca975,_0x5d97c6){const _0x1002a2=_0x173eb8;return this[_0x1002a2(0x1f4)][_0x1002a2(0x213)](_0x2fccc9['IMCPToolRegistry'])[_0x1002a2(0x1f0)](_0x1ca975,_0x5d97c6);}[_0x173eb8(0x20a)](){const _0x1e7ccf=_0x173eb8;return this['_injector'][_0x1e7ccf(0x213)](_0x2fccc9[_0x1e7ccf(0x1fe)])[_0x1e7ccf(0x218)]();}[_0x173eb8(0x1fd)](){const _0x1bfc99=_0x173eb8;this[_0x1bfc99(0x1f4)][_0x1bfc99(0x213)](_0x2fccc9[_0x1bfc99(0x1fe)])[_0x1bfc99(0x20e)]();}[_0x173eb8(0x1f2)](){const _0x41cacf=_0x173eb8;this[_0x41cacf(0x1f4)][_0x41cacf(0x213)](_0x2fccc9[_0x41cacf(0x1fe)])[_0x41cacf(0x215)]();}}_0x37ecd3[_0x173eb8(0x20c)]['extend'](_0x3edca7);}));
1
+ function _0x1129(_0x3bd429,_0x3fea30){const _0x2f6010=_0x2f60();return _0x1129=function(_0x1129cd,_0x561780){_0x1129cd=_0x1129cd-0x1e3;let _0x5dffd9=_0x2f6010[_0x1129cd];return _0x5dffd9;},_0x1129(_0x3bd429,_0x3fea30);}function _0x2f60(){const _0x5286a3=['McpConnectionStatusChanged','type','4AeGmbm','extend','842988gywppA','function','Event','FEventName','@univerjs/core','executeTool','_injector','McpToolCallExecuted','get','_registerMCPFacadeEvents','fireEvent','2020375LnNFyu','5866030jOzjqR','event$','validateToolCall','4204071uTqLup','202974dvqoBC','callMCPTool','FUniver','UniverCore','280104cEtNJI','getAllTools','MCPEventId','11hwViZY','McpToolCallReceived','4HpiZVu','UniverProMcp','IMCPToolRegistry','connect','getAllMCPTools','registerEventHandler','UniverCoreFacade','getMCPConnectionStatus','MCPConnectionController','McpToolCallFailed','MCPEventService','data','45868zHOSvN','35hZVFwG','connectMCP','toDisposable','subscribe','amd'];_0x2f60=function(){return _0x5286a3;};return _0x2f60();}(function(_0x45c79d,_0x17e18b){const _0x13f825=_0x1129,_0x365e33=_0x45c79d();while(!![]){try{const _0x4dfa07=parseInt(_0x13f825(0x20d))/0x1*(-parseInt(_0x13f825(0x1e6))/0x2)+parseInt(_0x13f825(0x1e8))/0x3*(-parseInt(_0x13f825(0x201))/0x4)+-parseInt(_0x13f825(0x20e))/0x5*(-parseInt(_0x13f825(0x1f8))/0x6)+parseInt(_0x13f825(0x1f3))/0x7+-parseInt(_0x13f825(0x1fc))/0x8+-parseInt(_0x13f825(0x1f7))/0x9+-parseInt(_0x13f825(0x1f4))/0xa*(-parseInt(_0x13f825(0x1ff))/0xb);if(_0x4dfa07===_0x17e18b)break;else _0x365e33['push'](_0x365e33['shift']());}catch(_0x20fe44){_0x365e33['push'](_0x365e33['shift']());}}}(_0x2f60,0x39e6f),function(_0xed46f4,_0x2f610b){const _0x4c9a82=_0x1129;typeof exports=='object'&&typeof module<'u'?_0x2f610b(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x4c9a82(0x1e9)&&define[_0x4c9a82(0x1e3)]?define(['@univerjs-pro/mcp','@univerjs/core/facade',_0x4c9a82(0x1ec)],_0x2f610b):(_0xed46f4=typeof globalThis<'u'?globalThis:_0xed46f4||self,_0x2f610b(_0xed46f4[_0x4c9a82(0x202)],_0xed46f4[_0x4c9a82(0x207)],_0xed46f4[_0x4c9a82(0x1fb)]));}(this,function(_0x1e257a,_0xf38066,_0x22b949){'use strict';const _0x47ae49=_0x1129;class _0x4daf5d{get[_0x47ae49(0x1e4)](){const _0x30f19b=_0x47ae49;return _0x1e257a[_0x30f19b(0x1fe)][_0x30f19b(0x1e4)];}get[_0x47ae49(0x200)](){const _0x5a885b=_0x47ae49;return _0x1e257a[_0x5a885b(0x1fe)][_0x5a885b(0x200)];}get['McpToolCallExecuted'](){const _0x2b2ac0=_0x47ae49;return _0x1e257a[_0x2b2ac0(0x1fe)][_0x2b2ac0(0x1ef)];}get[_0x47ae49(0x20a)](){const _0xb4f71e=_0x47ae49;return _0x1e257a[_0xb4f71e(0x1fe)][_0xb4f71e(0x20a)];}}_0xf38066[_0x47ae49(0x1eb)][_0x47ae49(0x1e7)](_0x4daf5d);class _0x35d427 extends _0xf38066[_0x47ae49(0x1fa)]{['_initialize'](_0x926ad){const _0x3213a5=_0x47ae49;this[_0x3213a5(0x1f1)](_0x926ad);}[_0x47ae49(0x1f1)](_0x36dd7f){const _0x4e3b5b=_0x47ae49,_0xfd8c86=_0x36dd7f[_0x4e3b5b(0x1f0)](_0x1e257a[_0x4e3b5b(0x20b)]);this[_0x4e3b5b(0x206)](this['Event'][_0x4e3b5b(0x1e4)],()=>_0x22b949[_0x4e3b5b(0x210)](_0xfd8c86[_0x4e3b5b(0x1f5)][_0x4e3b5b(0x211)](_0x2bbd92=>{const _0x4ed3b9=_0x4e3b5b;_0x2bbd92[_0x4ed3b9(0x1e5)]===_0x1e257a[_0x4ed3b9(0x1fe)][_0x4ed3b9(0x1e4)]&&this[_0x4ed3b9(0x1f2)](this['Event'][_0x4ed3b9(0x1e4)],_0x2bbd92[_0x4ed3b9(0x20c)]);}))),this[_0x4e3b5b(0x206)](this['Event'][_0x4e3b5b(0x200)],()=>_0x22b949[_0x4e3b5b(0x210)](_0xfd8c86['event$'][_0x4e3b5b(0x211)](_0xa6d6c0=>{const _0x94dd99=_0x4e3b5b;_0xa6d6c0[_0x94dd99(0x1e5)]===_0x1e257a[_0x94dd99(0x1fe)][_0x94dd99(0x200)]&&this[_0x94dd99(0x1f2)](this[_0x94dd99(0x1ea)][_0x94dd99(0x200)],_0xa6d6c0[_0x94dd99(0x20c)]);}))),this[_0x4e3b5b(0x206)](this[_0x4e3b5b(0x1ea)]['McpToolCallExecuted'],()=>_0x22b949[_0x4e3b5b(0x210)](_0xfd8c86['event$']['subscribe'](_0x2b2f9d=>{const _0x3569b4=_0x4e3b5b;_0x2b2f9d[_0x3569b4(0x1e5)]===_0x1e257a[_0x3569b4(0x1fe)][_0x3569b4(0x1ef)]&&this[_0x3569b4(0x1f2)](this['Event']['McpToolCallExecuted'],_0x2b2f9d[_0x3569b4(0x20c)]);}))),this[_0x4e3b5b(0x206)](this[_0x4e3b5b(0x1ea)][_0x4e3b5b(0x20a)],()=>_0x22b949[_0x4e3b5b(0x210)](_0xfd8c86[_0x4e3b5b(0x1f5)][_0x4e3b5b(0x211)](_0x5da29d=>{const _0xd64a21=_0x4e3b5b;_0x5da29d['type']===_0x1e257a[_0xd64a21(0x1fe)][_0xd64a21(0x20a)]&&this[_0xd64a21(0x1f2)](this['Event'][_0xd64a21(0x20a)],_0x5da29d['data']);})));}['validateMCPToolCall'](_0x1be6a,_0x4826d1){const _0x588bc7=_0x47ae49;return this[_0x588bc7(0x1ee)][_0x588bc7(0x1f0)](_0x1e257a[_0x588bc7(0x203)])[_0x588bc7(0x1f6)](_0x1be6a,_0x4826d1);}[_0x47ae49(0x205)](){const _0x151338=_0x47ae49;return this[_0x151338(0x1ee)][_0x151338(0x1f0)](_0x1e257a[_0x151338(0x203)])[_0x151338(0x1fd)]();}[_0x47ae49(0x1f9)](_0x1f04d7,_0x1749d4){const _0x542afb=_0x47ae49;return this[_0x542afb(0x1ee)][_0x542afb(0x1f0)](_0x1e257a[_0x542afb(0x203)])[_0x542afb(0x1ed)](_0x1f04d7,_0x1749d4);}[_0x47ae49(0x208)](){const _0x5654b4=_0x47ae49;return this[_0x5654b4(0x1ee)][_0x5654b4(0x1f0)](_0x1e257a[_0x5654b4(0x209)])['getConnectionStatus']();}[_0x47ae49(0x20f)](){const _0x60d79b=_0x47ae49;this[_0x60d79b(0x1ee)]['get'](_0x1e257a[_0x60d79b(0x209)])[_0x60d79b(0x204)]();}['disconnectMCP'](){const _0x566e72=_0x47ae49;this[_0x566e72(0x1ee)]['get'](_0x1e257a[_0x566e72(0x209)])['disconnect']();}}_0xf38066[_0x47ae49(0x1fa)][_0x47ae49(0x1e7)](_0x35d427);}));