@univerjs-pro/mcp 0.10.9-experimental.20250925-61b61a0 → 0.10.9-nightly.202509260614

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(_0x3fc7a6,_0x28602a){const _0xcd5aa6=_0x13bd,_0x100d41=_0x3fc7a6();while(!![]){try{const _0x3e22f1=-parseInt(_0xcd5aa6(0x73))/0x1*(parseInt(_0xcd5aa6(0x77))/0x2)+-parseInt(_0xcd5aa6(0x8b))/0x3*(-parseInt(_0xcd5aa6(0x76))/0x4)+parseInt(_0xcd5aa6(0x88))/0x5+parseInt(_0xcd5aa6(0x7b))/0x6+parseInt(_0xcd5aa6(0x9a))/0x7+-parseInt(_0xcd5aa6(0x7a))/0x8+-parseInt(_0xcd5aa6(0x6a))/0x9;if(_0x3e22f1===_0x28602a)break;else _0x100d41['push'](_0x100d41['shift']());}catch(_0x1019e6){_0x100d41['push'](_0x100d41['shift']());}}}(_0x9e8b,0xba8a0),function(_0x565a65,_0x5036ea){const _0x11e0b2=_0x13bd;typeof exports==_0x11e0b2(0x75)&&typeof module<'u'?_0x5036ea(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x11e0b2(0x6e)&&define[_0x11e0b2(0x94)]?define([_0x11e0b2(0x7d),_0x11e0b2(0x6f),_0x11e0b2(0x86)],_0x5036ea):(_0x565a65=typeof globalThis<'u'?globalThis:_0x565a65||self,_0x5036ea(_0x565a65[_0x11e0b2(0x95)],_0x565a65[_0x11e0b2(0x70)],_0x565a65[_0x11e0b2(0x85)]));}(this,function(_0x75ebb4,_0x2dec25,_0x3de9a4){'use strict';const _0x219183=_0x13bd;class _0x5a2364{get[_0x219183(0x87)](){const _0x404e7d=_0x219183;return _0x75ebb4[_0x404e7d(0x68)][_0x404e7d(0x87)];}get['McpToolCallReceived'](){const _0x18c2b1=_0x219183;return _0x75ebb4[_0x18c2b1(0x68)][_0x18c2b1(0x81)];}get[_0x219183(0x8a)](){const _0x1bef1f=_0x219183;return _0x75ebb4[_0x1bef1f(0x68)][_0x1bef1f(0x8a)];}get[_0x219183(0x78)](){const _0x512019=_0x219183;return _0x75ebb4[_0x512019(0x68)]['McpToolCallFailed'];}}_0x2dec25[_0x219183(0x72)]['extend'](_0x5a2364);class _0x4a6ee4 extends _0x2dec25[_0x219183(0x8e)]{[_0x219183(0x74)](_0x2bf871){const _0x24e4b6=_0x219183;this[_0x24e4b6(0x71)](_0x2bf871);}[_0x219183(0x71)](_0x152e7e){const _0x40857e=_0x219183,_0x930096=_0x152e7e[_0x40857e(0x98)](_0x75ebb4[_0x40857e(0x79)]);this[_0x40857e(0x93)](this['Event'][_0x40857e(0x87)],()=>_0x3de9a4[_0x40857e(0x7e)](_0x930096['event$'][_0x40857e(0x92)](_0x420981=>{const _0x1f83c9=_0x40857e;_0x420981[_0x1f83c9(0x8d)]===_0x75ebb4[_0x1f83c9(0x68)][_0x1f83c9(0x87)]&&this[_0x1f83c9(0x80)](this[_0x1f83c9(0x91)][_0x1f83c9(0x87)],_0x420981[_0x1f83c9(0x6c)]);}))),this[_0x40857e(0x93)](this[_0x40857e(0x91)]['McpToolCallReceived'],()=>_0x3de9a4['toDisposable'](_0x930096[_0x40857e(0x8c)][_0x40857e(0x92)](_0x6d98e6=>{const _0x86c7ee=_0x40857e;_0x6d98e6['type']===_0x75ebb4['MCPEventId'][_0x86c7ee(0x81)]&&this['fireEvent'](this[_0x86c7ee(0x91)][_0x86c7ee(0x81)],_0x6d98e6[_0x86c7ee(0x6c)]);}))),this['registerEventHandler'](this[_0x40857e(0x91)][_0x40857e(0x8a)],()=>_0x3de9a4[_0x40857e(0x7e)](_0x930096['event$'][_0x40857e(0x92)](_0x23bcc5=>{const _0xa69b68=_0x40857e;_0x23bcc5[_0xa69b68(0x8d)]===_0x75ebb4[_0xa69b68(0x68)][_0xa69b68(0x8a)]&&this['fireEvent'](this[_0xa69b68(0x91)][_0xa69b68(0x8a)],_0x23bcc5['data']);}))),this[_0x40857e(0x93)](this['Event'][_0x40857e(0x78)],()=>_0x3de9a4[_0x40857e(0x7e)](_0x930096[_0x40857e(0x8c)]['subscribe'](_0x1fda29=>{const _0x678bbd=_0x40857e;_0x1fda29[_0x678bbd(0x8d)]===_0x75ebb4['MCPEventId'][_0x678bbd(0x78)]&&this[_0x678bbd(0x80)](this[_0x678bbd(0x91)][_0x678bbd(0x78)],_0x1fda29[_0x678bbd(0x6c)]);})));}[_0x219183(0x7f)](_0x3c4fb0,_0x3ae9ea){const _0x5a88e8=_0x219183;return this['_injector'][_0x5a88e8(0x98)](_0x75ebb4[_0x5a88e8(0x8f)])[_0x5a88e8(0x6d)](_0x3c4fb0,_0x3ae9ea);}[_0x219183(0x97)](){const _0x23f74c=_0x219183;return this[_0x23f74c(0x83)]['get'](_0x75ebb4[_0x23f74c(0x8f)])['getAllTools']();}[_0x219183(0x89)](_0x249552,_0x3116bb){const _0x1304e1=_0x219183;return this[_0x1304e1(0x83)]['get'](_0x75ebb4[_0x1304e1(0x8f)])[_0x1304e1(0x90)](_0x249552,_0x3116bb);}[_0x219183(0x84)](){const _0x166d55=_0x219183;return this[_0x166d55(0x83)][_0x166d55(0x98)](_0x75ebb4[_0x166d55(0x99)])[_0x166d55(0x82)]();}[_0x219183(0x6b)](){const _0x53c0d1=_0x219183;this[_0x53c0d1(0x83)]['get'](_0x75ebb4[_0x53c0d1(0x99)])['connect']();}[_0x219183(0x96)](){const _0x4e62c6=_0x219183;this['_injector'][_0x4e62c6(0x98)](_0x75ebb4[_0x4e62c6(0x99)])[_0x4e62c6(0x7c)]();}}_0x2dec25[_0x219183(0x8e)][_0x219183(0x69)](_0x4a6ee4);}));function _0x13bd(_0x161b9d,_0x476625){const _0x9e8ba8=_0x9e8b();return _0x13bd=function(_0x13bd99,_0x4f5ad4){_0x13bd99=_0x13bd99-0x68;let _0xd7ddbc=_0x9e8ba8[_0x13bd99];return _0xd7ddbc;},_0x13bd(_0x161b9d,_0x476625);}function _0x9e8b(){const _0x769ac=['get','MCPConnectionController','5779970njHqtA','MCPEventId','extend','6723144OYLEpy','connectMCP','data','validateToolCall','function','@univerjs/core/facade','UniverCoreFacade','_registerMCPFacadeEvents','FEventName','651569PRVvcH','_initialize','object','8FQdeOG','2SUHcra','McpToolCallFailed','MCPEventService','5142136lpciqn','2429316aylLoV','disconnect','@univerjs-pro/mcp','toDisposable','validateMCPToolCall','fireEvent','McpToolCallReceived','getConnectionStatus','_injector','getMCPConnectionStatus','UniverCore','@univerjs/core','McpConnectionStatusChanged','744060igotii','callMCPTool','McpToolCallExecuted','2139012qBirAJ','event$','type','FUniver','IMCPToolRegistry','executeTool','Event','subscribe','registerEventHandler','amd','UniverProMcp','disconnectMCP','getAllMCPTools'];_0x9e8b=function(){return _0x769ac;};return _0x9e8b();}
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);}));