@univerjs-pro/mcp 0.10.9-nightly.202509260614 → 0.10.10

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 _0x1e07(){const _0x1f50ca=['toDisposable','event$','_injector','McpToolCallExecuted','extend','7466YtiZiW','UniverCoreFacade','@univerjs/core','16418208klxgAO','@univerjs/core/facade','MCPEventId','@univerjs-pro/mcp','data','McpConnectionStatusChanged','IMCPToolRegistry','7AlxeJn','786952CzdMFI','30NxsBmw','connect','validateToolCall','Event','MCPConnectionController','type','McpToolCallReceived','function','get','179oYLQmo','McpToolCallFailed','getAllTools','FEventName','subscribe','getConnectionStatus','fireEvent','MCPEventService','_registerMCPFacadeEvents','UniverProMcp','3yLwXGI','3565WlJGLX','registerEventHandler','6654VOUOfc','8842064qoaJOS','3232791gWuHBj','disconnectMCP','3091188kQlNza','executeTool','disconnect','_initialize','FUniver'];_0x1e07=function(){return _0x1f50ca;};return _0x1e07();}function _0x34ee(_0x70256d,_0x2b557d){const _0x1e07e3=_0x1e07();return _0x34ee=function(_0x34eece,_0x2f6e7c){_0x34eece=_0x34eece-0x64;let _0x45a26b=_0x1e07e3[_0x34eece];return _0x45a26b;},_0x34ee(_0x70256d,_0x2b557d);}(function(_0x181b36,_0x438e34){const _0x3f7012=_0x34ee,_0x259507=_0x181b36();while(!![]){try{const _0x1b59a4=-parseInt(_0x3f7012(0x92))/0x1*(-parseInt(_0x3f7012(0x7d))/0x2)+parseInt(_0x3f7012(0x6c))/0x3*(-parseInt(_0x3f7012(0x73))/0x4)+parseInt(_0x3f7012(0x6d))/0x5*(-parseInt(_0x3f7012(0x6f))/0x6)+parseInt(_0x3f7012(0x87))/0x7*(-parseInt(_0x3f7012(0x88))/0x8)+-parseInt(_0x3f7012(0x71))/0x9*(-parseInt(_0x3f7012(0x89))/0xa)+-parseInt(_0x3f7012(0x70))/0xb+parseInt(_0x3f7012(0x80))/0xc;if(_0x1b59a4===_0x438e34)break;else _0x259507['push'](_0x259507['shift']());}catch(_0x186a95){_0x259507['push'](_0x259507['shift']());}}}(_0x1e07,0x9e459),function(_0x2d51dc,_0x3d870c){const _0x537046=_0x34ee;typeof exports=='object'&&typeof module<'u'?_0x3d870c(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x537046(0x90)&&define['amd']?define([_0x537046(0x83),_0x537046(0x81),_0x537046(0x7f)],_0x3d870c):(_0x2d51dc=typeof globalThis<'u'?globalThis:_0x2d51dc||self,_0x3d870c(_0x2d51dc[_0x537046(0x6b)],_0x2d51dc[_0x537046(0x7e)],_0x2d51dc['UniverCore']));}(this,function(_0x528b23,_0x4f2cc2,_0x456302){'use strict';const _0x2926b7=_0x34ee;class _0x51eccc{get[_0x2926b7(0x85)](){const _0x2dda36=_0x2926b7;return _0x528b23[_0x2dda36(0x82)][_0x2dda36(0x85)];}get[_0x2926b7(0x8f)](){const _0x239b4e=_0x2926b7;return _0x528b23[_0x239b4e(0x82)]['McpToolCallReceived'];}get[_0x2926b7(0x7b)](){const _0x1aedb4=_0x2926b7;return _0x528b23['MCPEventId'][_0x1aedb4(0x7b)];}get[_0x2926b7(0x93)](){const _0x3acd18=_0x2926b7;return _0x528b23[_0x3acd18(0x82)]['McpToolCallFailed'];}}_0x4f2cc2[_0x2926b7(0x65)]['extend'](_0x51eccc);class _0x53a117 extends _0x4f2cc2[_0x2926b7(0x77)]{[_0x2926b7(0x76)](_0x34c044){const _0xf5ef8c=_0x2926b7;this[_0xf5ef8c(0x6a)](_0x34c044);}[_0x2926b7(0x6a)](_0x2b296a){const _0x62a35b=_0x2926b7,_0x582dac=_0x2b296a[_0x62a35b(0x91)](_0x528b23[_0x62a35b(0x69)]);this[_0x62a35b(0x6e)](this[_0x62a35b(0x8c)][_0x62a35b(0x85)],()=>_0x456302[_0x62a35b(0x78)](_0x582dac[_0x62a35b(0x79)][_0x62a35b(0x66)](_0x35283e=>{const _0x233737=_0x62a35b;_0x35283e[_0x233737(0x8e)]===_0x528b23['MCPEventId'][_0x233737(0x85)]&&this[_0x233737(0x68)](this[_0x233737(0x8c)]['McpConnectionStatusChanged'],_0x35283e['data']);}))),this['registerEventHandler'](this[_0x62a35b(0x8c)]['McpToolCallReceived'],()=>_0x456302[_0x62a35b(0x78)](_0x582dac[_0x62a35b(0x79)][_0x62a35b(0x66)](_0x30ec04=>{const _0x3f5527=_0x62a35b;_0x30ec04[_0x3f5527(0x8e)]===_0x528b23['MCPEventId'][_0x3f5527(0x8f)]&&this[_0x3f5527(0x68)](this[_0x3f5527(0x8c)][_0x3f5527(0x8f)],_0x30ec04['data']);}))),this[_0x62a35b(0x6e)](this[_0x62a35b(0x8c)][_0x62a35b(0x7b)],()=>_0x456302['toDisposable'](_0x582dac[_0x62a35b(0x79)][_0x62a35b(0x66)](_0x328497=>{const _0x13e125=_0x62a35b;_0x328497['type']===_0x528b23['MCPEventId'][_0x13e125(0x7b)]&&this[_0x13e125(0x68)](this[_0x13e125(0x8c)][_0x13e125(0x7b)],_0x328497['data']);}))),this[_0x62a35b(0x6e)](this[_0x62a35b(0x8c)][_0x62a35b(0x93)],()=>_0x456302[_0x62a35b(0x78)](_0x582dac[_0x62a35b(0x79)][_0x62a35b(0x66)](_0x3bc5fc=>{const _0x583f51=_0x62a35b;_0x3bc5fc[_0x583f51(0x8e)]===_0x528b23[_0x583f51(0x82)][_0x583f51(0x93)]&&this['fireEvent'](this[_0x583f51(0x8c)]['McpToolCallFailed'],_0x3bc5fc[_0x583f51(0x84)]);})));}['validateMCPToolCall'](_0x46048b,_0x29091a){const _0x469cd1=_0x2926b7;return this['_injector']['get'](_0x528b23[_0x469cd1(0x86)])[_0x469cd1(0x8b)](_0x46048b,_0x29091a);}['getAllMCPTools'](){const _0x14b802=_0x2926b7;return this[_0x14b802(0x7a)][_0x14b802(0x91)](_0x528b23['IMCPToolRegistry'])[_0x14b802(0x64)]();}['callMCPTool'](_0x597335,_0xf852ca){const _0x473227=_0x2926b7;return this[_0x473227(0x7a)][_0x473227(0x91)](_0x528b23[_0x473227(0x86)])[_0x473227(0x74)](_0x597335,_0xf852ca);}['getMCPConnectionStatus'](){const _0xdf3c31=_0x2926b7;return this[_0xdf3c31(0x7a)][_0xdf3c31(0x91)](_0x528b23[_0xdf3c31(0x8d)])[_0xdf3c31(0x67)]();}['connectMCP'](){const _0x33cd73=_0x2926b7;this[_0x33cd73(0x7a)][_0x33cd73(0x91)](_0x528b23[_0x33cd73(0x8d)])[_0x33cd73(0x8a)]();}[_0x2926b7(0x72)](){const _0x34175e=_0x2926b7;this['_injector'][_0x34175e(0x91)](_0x528b23[_0x34175e(0x8d)])[_0x34175e(0x75)]();}}_0x4f2cc2['FUniver'][_0x2926b7(0x7c)](_0x53a117);}));
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);}));