@univerjs-pro/mcp 0.11.0 → 0.12.0-nightly.202511220628

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(_0x18a62f,_0x401f3c){const _0x1e8c0a=_0x3763,_0x44522c=_0x18a62f();while(!![]){try{const _0x156dad=parseInt(_0x1e8c0a(0x1ba))/0x1+-parseInt(_0x1e8c0a(0x1a7))/0x2*(-parseInt(_0x1e8c0a(0x19a))/0x3)+-parseInt(_0x1e8c0a(0x19d))/0x4+parseInt(_0x1e8c0a(0x1a6))/0x5*(-parseInt(_0x1e8c0a(0x1b2))/0x6)+-parseInt(_0x1e8c0a(0x1a4))/0x7*(parseInt(_0x1e8c0a(0x1ac))/0x8)+parseInt(_0x1e8c0a(0x1bc))/0x9*(parseInt(_0x1e8c0a(0x1ae))/0xa)+parseInt(_0x1e8c0a(0x1b3))/0xb*(parseInt(_0x1e8c0a(0x195))/0xc);if(_0x156dad===_0x401f3c)break;else _0x44522c['push'](_0x44522c['shift']());}catch(_0x36332c){_0x44522c['push'](_0x44522c['shift']());}}}(_0x5c42,0xc1458),function(_0x4453ba,_0x5578cc){const _0x25b957=_0x3763;typeof exports=='object'&&typeof module<'u'?_0x5578cc(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x25b957(0x1a9)&&define[_0x25b957(0x1c2)]?define([_0x25b957(0x191),_0x25b957(0x1bd),_0x25b957(0x1a5)],_0x5578cc):(_0x4453ba=typeof globalThis<'u'?globalThis:_0x4453ba||self,_0x5578cc(_0x4453ba[_0x25b957(0x1a8)],_0x4453ba[_0x25b957(0x1a0)],_0x4453ba['UniverCore']));}(this,function(_0x1760eb,_0x3186df,_0x2aad53){'use strict';const _0x5a67b1=_0x3763;class _0x3bde9a{get[_0x5a67b1(0x1bb)](){const _0x3fff32=_0x5a67b1;return _0x1760eb[_0x3fff32(0x1c1)]['McpConnectionStatusChanged'];}get[_0x5a67b1(0x196)](){const _0x40c4cd=_0x5a67b1;return _0x1760eb[_0x40c4cd(0x1c1)][_0x40c4cd(0x196)];}get[_0x5a67b1(0x194)](){return _0x1760eb['MCPEventId']['McpToolCallExecuted'];}get[_0x5a67b1(0x1c0)](){const _0x17352c=_0x5a67b1;return _0x1760eb[_0x17352c(0x1c1)][_0x17352c(0x1c0)];}}_0x3186df[_0x5a67b1(0x197)]['extend'](_0x3bde9a);class _0x5836b1 extends _0x3186df['FUniver']{[_0x5a67b1(0x1a3)](_0x2f8214){const _0x4ccb36=_0x5a67b1;this[_0x4ccb36(0x1b8)](_0x2f8214);}['_registerMCPFacadeEvents'](_0x537d4f){const _0x410889=_0x5a67b1,_0x28d94d=_0x537d4f[_0x410889(0x19e)](_0x1760eb[_0x410889(0x1aa)]);this[_0x410889(0x199)](this[_0x410889(0x1ad)][_0x410889(0x1bb)],()=>_0x2aad53[_0x410889(0x1b1)](_0x28d94d[_0x410889(0x192)][_0x410889(0x1b0)](_0x54e136=>{const _0x374ba6=_0x410889;_0x54e136[_0x374ba6(0x193)]===_0x1760eb[_0x374ba6(0x1c1)][_0x374ba6(0x1bb)]&&this[_0x374ba6(0x1ab)](this[_0x374ba6(0x1ad)][_0x374ba6(0x1bb)],_0x54e136[_0x374ba6(0x1af)]);}))),this[_0x410889(0x199)](this[_0x410889(0x1ad)]['McpToolCallReceived'],()=>_0x2aad53[_0x410889(0x1b1)](_0x28d94d[_0x410889(0x192)][_0x410889(0x1b0)](_0xf21029=>{const _0x319399=_0x410889;_0xf21029[_0x319399(0x193)]===_0x1760eb[_0x319399(0x1c1)][_0x319399(0x196)]&&this['fireEvent'](this[_0x319399(0x1ad)][_0x319399(0x196)],_0xf21029[_0x319399(0x1af)]);}))),this['registerEventHandler'](this[_0x410889(0x1ad)][_0x410889(0x194)],()=>_0x2aad53[_0x410889(0x1b1)](_0x28d94d[_0x410889(0x192)][_0x410889(0x1b0)](_0x4128d1=>{const _0x4da860=_0x410889;_0x4128d1[_0x4da860(0x193)]===_0x1760eb[_0x4da860(0x1c1)]['McpToolCallExecuted']&&this['fireEvent'](this[_0x4da860(0x1ad)]['McpToolCallExecuted'],_0x4128d1[_0x4da860(0x1af)]);}))),this[_0x410889(0x199)](this['Event'][_0x410889(0x1c0)],()=>_0x2aad53[_0x410889(0x1b1)](_0x28d94d[_0x410889(0x192)][_0x410889(0x1b0)](_0x293997=>{const _0x1d2f30=_0x410889;_0x293997[_0x1d2f30(0x193)]===_0x1760eb['MCPEventId'][_0x1d2f30(0x1c0)]&&this[_0x1d2f30(0x1ab)](this[_0x1d2f30(0x1ad)][_0x1d2f30(0x1c0)],_0x293997['data']);})));}[_0x5a67b1(0x1b7)](_0x3546ce,_0x3cd4c1){const _0x136671=_0x5a67b1;return this[_0x136671(0x1b4)][_0x136671(0x19e)](_0x1760eb[_0x136671(0x1b9)])[_0x136671(0x1a1)](_0x3546ce,_0x3cd4c1);}[_0x5a67b1(0x19c)](){const _0xf30d12=_0x5a67b1;return this[_0xf30d12(0x1b4)]['get'](_0x1760eb[_0xf30d12(0x1b9)])[_0xf30d12(0x19f)]();}[_0x5a67b1(0x1b5)](_0x310ae8,_0x2caa8b){const _0x59e20f=_0x5a67b1;return this['_injector'][_0x59e20f(0x19e)](_0x1760eb[_0x59e20f(0x1b9)])['executeTool'](_0x310ae8,_0x2caa8b);}['getMCPConnectionStatus'](){const _0x5d7694=_0x5a67b1;return this['_injector']['get'](_0x1760eb[_0x5d7694(0x19b)])['getConnectionStatus']();}['connectMCP'](){const _0x22ac19=_0x5a67b1;this[_0x22ac19(0x1b4)][_0x22ac19(0x19e)](_0x1760eb[_0x22ac19(0x19b)])[_0x22ac19(0x198)]();}[_0x5a67b1(0x1a2)](){const _0xd3645b=_0x5a67b1;this[_0xd3645b(0x1b4)][_0xd3645b(0x19e)](_0x1760eb['MCPConnectionController'])[_0xd3645b(0x1bf)]();}}_0x3186df[_0x5a67b1(0x1b6)][_0x5a67b1(0x1be)](_0x5836b1);}));function _0x3763(_0x94ae5c,_0x33e2af){const _0x5c42b8=_0x5c42();return _0x3763=function(_0x376389,_0x294b5d){_0x376389=_0x376389-0x191;let _0xefeed0=_0x5c42b8[_0x376389];return _0xefeed0;},_0x3763(_0x94ae5c,_0x33e2af);}function _0x5c42(){const _0x5ddcfc=['MCPConnectionController','getAllMCPTools','2773968YNEtHm','get','getAllTools','UniverCoreFacade','validateToolCall','disconnectMCP','_initialize','2071279ZJaEgU','@univerjs/core','385XQwGYp','58abPygq','UniverProMcp','function','MCPEventService','fireEvent','24HjAraM','Event','8783730QsgzoO','data','subscribe','toDisposable','25698wqhGSd','10054CtxiZb','_injector','callMCPTool','FUniver','validateMCPToolCall','_registerMCPFacadeEvents','IMCPToolRegistry','1361921sHTluo','McpConnectionStatusChanged','9wsRuiH','@univerjs/core/facade','extend','disconnect','McpToolCallFailed','MCPEventId','amd','@univerjs-pro/mcp','event$','type','McpToolCallExecuted','1788plXeYK','McpToolCallReceived','FEventName','connect','registerEventHandler','33738yLqKPR'];_0x5c42=function(){return _0x5ddcfc;};return _0x5c42();}
1
+ function _0x4159(_0x10cc4b,_0x5e9fc2){const _0x1feef7=_0x1fee();return _0x4159=function(_0x4159c9,_0xacf0f){_0x4159c9=_0x4159c9-0x10b;let _0x4863ae=_0x1feef7[_0x4159c9];return _0x4863ae;},_0x4159(_0x10cc4b,_0x5e9fc2);}(function(_0x3ddfdb,_0x243ffe){const _0x3beea2=_0x4159,_0x33cbbf=_0x3ddfdb();while(!![]){try{const _0x4e4de7=parseInt(_0x3beea2(0x117))/0x1*(parseInt(_0x3beea2(0x134))/0x2)+parseInt(_0x3beea2(0x122))/0x3*(-parseInt(_0x3beea2(0x10d))/0x4)+parseInt(_0x3beea2(0x138))/0x5*(parseInt(_0x3beea2(0x118))/0x6)+-parseInt(_0x3beea2(0x130))/0x7+parseInt(_0x3beea2(0x12e))/0x8*(-parseInt(_0x3beea2(0x121))/0x9)+parseInt(_0x3beea2(0x110))/0xa*(parseInt(_0x3beea2(0x10c))/0xb)+parseInt(_0x3beea2(0x13c))/0xc;if(_0x4e4de7===_0x243ffe)break;else _0x33cbbf['push'](_0x33cbbf['shift']());}catch(_0x3e5964){_0x33cbbf['push'](_0x33cbbf['shift']());}}}(_0x1fee,0x85463),function(_0x868e14,_0x525901){const _0x5995ef=_0x4159;typeof exports=='object'&&typeof module<'u'?_0x525901(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x5995ef(0x131)&&define[_0x5995ef(0x135)]?define(['@univerjs-pro/mcp','@univerjs/core/facade',_0x5995ef(0x112)],_0x525901):(_0x868e14=typeof globalThis<'u'?globalThis:_0x868e14||self,_0x525901(_0x868e14[_0x5995ef(0x115)],_0x868e14[_0x5995ef(0x13a)],_0x868e14[_0x5995ef(0x133)]));}(this,function(_0x52e897,_0x38e749,_0x3e95a2){'use strict';const _0x28eab7=_0x4159;class _0x539867{get['McpConnectionStatusChanged'](){const _0x17e70d=_0x4159;return _0x52e897[_0x17e70d(0x12a)][_0x17e70d(0x113)];}get['McpToolCallReceived'](){const _0x7ff8d6=_0x4159;return _0x52e897[_0x7ff8d6(0x12a)][_0x7ff8d6(0x116)];}get['McpToolCallExecuted'](){const _0x53d25a=_0x4159;return _0x52e897[_0x53d25a(0x12a)]['McpToolCallExecuted'];}get['McpToolCallFailed'](){const _0x3ad32e=_0x4159;return _0x52e897['MCPEventId'][_0x3ad32e(0x11e)];}}_0x38e749[_0x28eab7(0x11c)]['extend'](_0x539867);class _0x5962ca extends _0x38e749[_0x28eab7(0x123)]{[_0x28eab7(0x11f)](_0x57ebe4){this['_registerMCPFacadeEvents'](_0x57ebe4);}['_registerMCPFacadeEvents'](_0x282673){const _0x1bb6b2=_0x28eab7,_0x29d84f=_0x282673[_0x1bb6b2(0x11d)](_0x52e897[_0x1bb6b2(0x114)]);this['registerEventHandler'](this[_0x1bb6b2(0x11b)]['McpConnectionStatusChanged'],()=>_0x3e95a2[_0x1bb6b2(0x12c)](_0x29d84f[_0x1bb6b2(0x13b)][_0x1bb6b2(0x12d)](_0x1c14fb=>{const _0xf8a597=_0x1bb6b2;_0x1c14fb['type']===_0x52e897[_0xf8a597(0x12a)]['McpConnectionStatusChanged']&&this['fireEvent'](this[_0xf8a597(0x11b)]['McpConnectionStatusChanged'],_0x1c14fb[_0xf8a597(0x111)]);}))),this['registerEventHandler'](this[_0x1bb6b2(0x11b)][_0x1bb6b2(0x116)],()=>_0x3e95a2['toDisposable'](_0x29d84f[_0x1bb6b2(0x13b)]['subscribe'](_0x5e7de4=>{const _0x4698a2=_0x1bb6b2;_0x5e7de4['type']===_0x52e897[_0x4698a2(0x12a)]['McpToolCallReceived']&&this['fireEvent'](this[_0x4698a2(0x11b)][_0x4698a2(0x116)],_0x5e7de4[_0x4698a2(0x111)]);}))),this[_0x1bb6b2(0x120)](this[_0x1bb6b2(0x11b)]['McpToolCallExecuted'],()=>_0x3e95a2[_0x1bb6b2(0x12c)](_0x29d84f['event$'][_0x1bb6b2(0x12d)](_0x515c00=>{const _0xf92d35=_0x1bb6b2;_0x515c00[_0xf92d35(0x12b)]===_0x52e897[_0xf92d35(0x12a)][_0xf92d35(0x119)]&&this[_0xf92d35(0x10e)](this['Event'][_0xf92d35(0x119)],_0x515c00[_0xf92d35(0x111)]);}))),this['registerEventHandler'](this['Event'][_0x1bb6b2(0x11e)],()=>_0x3e95a2[_0x1bb6b2(0x12c)](_0x29d84f['event$'][_0x1bb6b2(0x12d)](_0x4d1550=>{const _0x51832f=_0x1bb6b2;_0x4d1550[_0x51832f(0x12b)]===_0x52e897[_0x51832f(0x12a)][_0x51832f(0x11e)]&&this['fireEvent'](this[_0x51832f(0x11b)][_0x51832f(0x11e)],_0x4d1550[_0x51832f(0x111)]);})));}[_0x28eab7(0x11a)](_0x4b2aea,_0x5dd428){const _0x55700d=_0x28eab7;return this[_0x55700d(0x127)]['get'](_0x52e897['IMCPToolRegistry'])[_0x55700d(0x12f)](_0x4b2aea,_0x5dd428);}[_0x28eab7(0x128)](){const _0x2e9ed7=_0x28eab7;return this['_injector']['get'](_0x52e897[_0x2e9ed7(0x126)])[_0x2e9ed7(0x124)]();}[_0x28eab7(0x125)](_0x921fb7,_0x4c6f8a){const _0x3c5b0a=_0x28eab7;return this[_0x3c5b0a(0x127)][_0x3c5b0a(0x11d)](_0x52e897[_0x3c5b0a(0x126)])[_0x3c5b0a(0x132)](_0x921fb7,_0x4c6f8a);}[_0x28eab7(0x136)](){const _0x4c88e2=_0x28eab7;return this[_0x4c88e2(0x127)]['get'](_0x52e897[_0x4c88e2(0x10f)])[_0x4c88e2(0x10b)]();}['connectMCP'](){const _0x116855=_0x28eab7;this[_0x116855(0x127)][_0x116855(0x11d)](_0x52e897['MCPConnectionController'])[_0x116855(0x139)]();}[_0x28eab7(0x129)](){const _0x2d5299=_0x28eab7;this[_0x2d5299(0x127)][_0x2d5299(0x11d)](_0x52e897[_0x2d5299(0x10f)])['disconnect']();}}_0x38e749[_0x28eab7(0x123)][_0x28eab7(0x137)](_0x5962ca);}));function _0x1fee(){const _0x2d8ab5=['getAllTools','callMCPTool','IMCPToolRegistry','_injector','getAllMCPTools','disconnectMCP','MCPEventId','type','toDisposable','subscribe','4043752CYbkql','validateToolCall','5448296lIimdb','function','executeTool','UniverCore','105584qYHLvA','amd','getMCPConnectionStatus','extend','1730UOEsZW','connect','UniverCoreFacade','event$','5496888igMXVv','getConnectionStatus','180543GgHOwq','58732sAHaEN','fireEvent','MCPConnectionController','610WIyWqY','data','@univerjs/core','McpConnectionStatusChanged','MCPEventService','UniverProMcp','McpToolCallReceived','14pmQByj','5574AaeJLe','McpToolCallExecuted','validateMCPToolCall','Event','FEventName','get','McpToolCallFailed','_initialize','registerEventHandler','9YHJJqw','141guBBos','FUniver'];_0x1fee=function(){return _0x2d8ab5;};return _0x1fee();}