@univerjs-pro/mcp 0.13.0-insiders.20251216-1519cb7 → 0.13.0-insiders.20251218-2062647

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(_0x44b3b3,_0x52dc3e){const _0x103eb8=_0x36fd,_0x33f5a1=_0x44b3b3();while(!![]){try{const _0x2c6386=-parseInt(_0x103eb8(0x8b))/0x1*(parseInt(_0x103eb8(0x76))/0x2)+-parseInt(_0x103eb8(0x9e))/0x3*(-parseInt(_0x103eb8(0x93))/0x4)+parseInt(_0x103eb8(0xa8))/0x5+-parseInt(_0x103eb8(0xa7))/0x6*(parseInt(_0x103eb8(0x79))/0x7)+parseInt(_0x103eb8(0x7f))/0x8+parseInt(_0x103eb8(0x98))/0x9*(parseInt(_0x103eb8(0x87))/0xa)+-parseInt(_0x103eb8(0x7c))/0xb*(parseInt(_0x103eb8(0x7a))/0xc);if(_0x2c6386===_0x52dc3e)break;else _0x33f5a1['push'](_0x33f5a1['shift']());}catch(_0x5172ec){_0x33f5a1['push'](_0x33f5a1['shift']());}}}(_0x2ee7,0xebb07),function(_0x1524ba,_0x314001){const _0x51dc83=_0x36fd;typeof exports==_0x51dc83(0x96)&&typeof module<'u'?_0x314001(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x51dc83(0x8e)&&define[_0x51dc83(0x8d)]?define([_0x51dc83(0xa4),'@univerjs/core/facade','@univerjs/core'],_0x314001):(_0x1524ba=typeof globalThis<'u'?globalThis:_0x1524ba||self,_0x314001(_0x1524ba[_0x51dc83(0xa3)],_0x1524ba[_0x51dc83(0x88)],_0x1524ba[_0x51dc83(0x95)]));}(this,function(_0x21978e,_0x1c414f,_0x56ec6e){'use strict';const _0x2a1260=_0x36fd;class _0x217e40{get[_0x2a1260(0x81)](){const _0x148381=_0x2a1260;return _0x21978e[_0x148381(0x78)][_0x148381(0x81)];}get[_0x2a1260(0x89)](){const _0x5eb1fd=_0x2a1260;return _0x21978e[_0x5eb1fd(0x78)][_0x5eb1fd(0x89)];}get[_0x2a1260(0x9b)](){const _0x379de3=_0x2a1260;return _0x21978e[_0x379de3(0x78)]['McpToolCallExecuted'];}get[_0x2a1260(0x7b)](){const _0x3f1f20=_0x2a1260;return _0x21978e[_0x3f1f20(0x78)]['McpToolCallFailed'];}}_0x1c414f['FEventName'][_0x2a1260(0x9d)](_0x217e40);class _0x54d669 extends _0x1c414f[_0x2a1260(0x92)]{[_0x2a1260(0xa6)](_0x36aaf9){const _0x2a7267=_0x2a1260;this[_0x2a7267(0x97)](_0x36aaf9);}[_0x2a1260(0x97)](_0x6fe6ae){const _0x459f3c=_0x2a1260,_0x367008=_0x6fe6ae[_0x459f3c(0x8a)](_0x21978e[_0x459f3c(0xa1)]);this[_0x459f3c(0x86)](this['Event'][_0x459f3c(0x81)],()=>_0x56ec6e['toDisposable'](_0x367008[_0x459f3c(0x9f)][_0x459f3c(0xa0)](_0x187f63=>{const _0x2b0761=_0x459f3c;_0x187f63[_0x2b0761(0x8c)]===_0x21978e[_0x2b0761(0x78)][_0x2b0761(0x81)]&&this['fireEvent'](this[_0x2b0761(0x7e)]['McpConnectionStatusChanged'],_0x187f63[_0x2b0761(0x7d)]);}))),this[_0x459f3c(0x86)](this['Event'][_0x459f3c(0x89)],()=>_0x56ec6e[_0x459f3c(0x9c)](_0x367008['event$'][_0x459f3c(0xa0)](_0x17ea51=>{const _0x2de91d=_0x459f3c;_0x17ea51[_0x2de91d(0x8c)]===_0x21978e[_0x2de91d(0x78)][_0x2de91d(0x89)]&&this[_0x2de91d(0xa5)](this[_0x2de91d(0x7e)][_0x2de91d(0x89)],_0x17ea51[_0x2de91d(0x7d)]);}))),this[_0x459f3c(0x86)](this[_0x459f3c(0x7e)][_0x459f3c(0x9b)],()=>_0x56ec6e['toDisposable'](_0x367008[_0x459f3c(0x9f)][_0x459f3c(0xa0)](_0x49c79e=>{const _0xc91d5=_0x459f3c;_0x49c79e[_0xc91d5(0x8c)]===_0x21978e[_0xc91d5(0x78)][_0xc91d5(0x9b)]&&this[_0xc91d5(0xa5)](this[_0xc91d5(0x7e)]['McpToolCallExecuted'],_0x49c79e['data']);}))),this[_0x459f3c(0x86)](this[_0x459f3c(0x7e)][_0x459f3c(0x7b)],()=>_0x56ec6e[_0x459f3c(0x9c)](_0x367008[_0x459f3c(0x9f)]['subscribe'](_0x345c1d=>{const _0x4074f6=_0x459f3c;_0x345c1d[_0x4074f6(0x8c)]===_0x21978e[_0x4074f6(0x78)][_0x4074f6(0x7b)]&&this[_0x4074f6(0xa5)](this[_0x4074f6(0x7e)][_0x4074f6(0x7b)],_0x345c1d['data']);})));}[_0x2a1260(0x82)](_0x46e8b3,_0x318cc4){const _0xd0a3d3=_0x2a1260;return this[_0xd0a3d3(0x91)]['get'](_0x21978e[_0xd0a3d3(0x9a)])[_0xd0a3d3(0xa2)](_0x46e8b3,_0x318cc4);}[_0x2a1260(0x80)](){const _0x3df5af=_0x2a1260;return this[_0x3df5af(0x91)]['get'](_0x21978e[_0x3df5af(0x9a)])['getAllTools']();}[_0x2a1260(0x99)](_0x39c04c,_0x4bbd1d){const _0x4c9c3c=_0x2a1260;return this[_0x4c9c3c(0x91)][_0x4c9c3c(0x8a)](_0x21978e[_0x4c9c3c(0x9a)])[_0x4c9c3c(0x90)](_0x39c04c,_0x4bbd1d);}[_0x2a1260(0x84)](){const _0xb76b79=_0x2a1260;return this[_0xb76b79(0x91)][_0xb76b79(0x8a)](_0x21978e['MCPConnectionController'])[_0xb76b79(0x83)]();}[_0x2a1260(0x85)](){const _0xce334e=_0x2a1260;this[_0xce334e(0x91)][_0xce334e(0x8a)](_0x21978e[_0xce334e(0x8f)])[_0xce334e(0x77)]();}[_0x2a1260(0x94)](){const _0x57f163=_0x2a1260;this[_0x57f163(0x91)]['get'](_0x21978e[_0x57f163(0x8f)])[_0x57f163(0x75)]();}}_0x1c414f[_0x2a1260(0x92)][_0x2a1260(0x9d)](_0x54d669);}));function _0x36fd(_0x463e68,_0x1ea29b){_0x463e68=_0x463e68-0x75;const _0x2ee701=_0x2ee7();let _0x36fd4a=_0x2ee701[_0x463e68];return _0x36fd4a;}function _0x2ee7(){const _0x157f74=['77236bmDMxC','connect','MCPEventId','7KSkhEc','37452gAvsiA','McpToolCallFailed','1474hfqdkt','data','Event','1619824HPUirS','getAllMCPTools','McpConnectionStatusChanged','validateMCPToolCall','getConnectionStatus','getMCPConnectionStatus','connectMCP','registerEventHandler','210cWFUMY','UniverCoreFacade','McpToolCallReceived','get','17IoCYCZ','type','amd','function','MCPConnectionController','executeTool','_injector','FUniver','2136608gcwuJW','disconnectMCP','UniverCore','object','_registerMCPFacadeEvents','204885pBKmwk','callMCPTool','IMCPToolRegistry','McpToolCallExecuted','toDisposable','extend','3jrQkGX','event$','subscribe','MCPEventService','validateToolCall','UniverProMcp','@univerjs-pro/mcp','fireEvent','_initialize','3503010BhtPsZ','7046215XrHduz','disconnect'];_0x2ee7=function(){return _0x157f74;};return _0x2ee7();}
1
+ function _0x5d42(){const _0x32dadd=['fireEvent','subscribe','callMCPTool','toDisposable','UniverProMcp','693690DzlTvb','IMCPToolRegistry','687lgNATZ','validateMCPToolCall','419157hTCGdn','FEventName','_registerMCPFacadeEvents','object','McpConnectionStatusChanged','amd','MCPConnectionController','7YdVPEv','getAllMCPTools','extend','McpToolCallExecuted','Event','validateToolCall','event$','function','MCPEventId','McpToolCallReceived','get','getAllTools','3513145tEIWxw','disconnectMCP','UniverCoreFacade','getConnectionStatus','10460752UYxhhI','MCPEventService','15508GDctvq','UniverCore','data','connectMCP','_injector','7901718JEpusH','2049566pnVGUb','@univerjs/core/facade','@univerjs-pro/mcp','registerEventHandler','type','disconnect','McpToolCallFailed'];_0x5d42=function(){return _0x32dadd;};return _0x5d42();}function _0x1dd1(_0x311d35,_0x30cb92){_0x311d35=_0x311d35-0x16d;const _0x5d4247=_0x5d42();let _0x1dd10c=_0x5d4247[_0x311d35];return _0x1dd10c;}(function(_0x2430b3,_0x5f5882){const _0x217eee=_0x1dd1,_0x47fbec=_0x2430b3();while(!![]){try{const _0x30c2a0=parseInt(_0x217eee(0x17c))/0x1+-parseInt(_0x217eee(0x170))/0x2+-parseInt(_0x217eee(0x17e))/0x3*(parseInt(_0x217eee(0x199))/0x4)+-parseInt(_0x217eee(0x193))/0x5+-parseInt(_0x217eee(0x16f))/0x6*(-parseInt(_0x217eee(0x187))/0x7)+parseInt(_0x217eee(0x197))/0x8+parseInt(_0x217eee(0x180))/0x9;if(_0x30c2a0===_0x5f5882)break;else _0x47fbec['push'](_0x47fbec['shift']());}catch(_0x49bdd7){_0x47fbec['push'](_0x47fbec['shift']());}}}(_0x5d42,0xb6ffd),function(_0x1de943,_0x331e19){const _0x4ba49d=_0x1dd1;typeof exports==_0x4ba49d(0x183)&&typeof module<'u'?_0x331e19(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x4ba49d(0x18e)&&define[_0x4ba49d(0x185)]?define([_0x4ba49d(0x172),_0x4ba49d(0x171),'@univerjs/core'],_0x331e19):(_0x1de943=typeof globalThis<'u'?globalThis:_0x1de943||self,_0x331e19(_0x1de943[_0x4ba49d(0x17b)],_0x1de943[_0x4ba49d(0x195)],_0x1de943[_0x4ba49d(0x19a)]));}(this,function(_0x43db3d,_0x30b4f6,_0x40dac8){'use strict';const _0x58743d=_0x1dd1;class _0x26fec2{get[_0x58743d(0x184)](){const _0x1ac8f7=_0x58743d;return _0x43db3d[_0x1ac8f7(0x18f)][_0x1ac8f7(0x184)];}get[_0x58743d(0x190)](){const _0x144418=_0x58743d;return _0x43db3d[_0x144418(0x18f)]['McpToolCallReceived'];}get['McpToolCallExecuted'](){const _0x1a9b4e=_0x58743d;return _0x43db3d[_0x1a9b4e(0x18f)][_0x1a9b4e(0x18a)];}get[_0x58743d(0x176)](){const _0x5415c9=_0x58743d;return _0x43db3d['MCPEventId'][_0x5415c9(0x176)];}}_0x30b4f6[_0x58743d(0x181)][_0x58743d(0x189)](_0x26fec2);class _0x47e928 extends _0x30b4f6['FUniver']{['_initialize'](_0xa10696){const _0x2a64c9=_0x58743d;this[_0x2a64c9(0x182)](_0xa10696);}[_0x58743d(0x182)](_0x14941f){const _0xcf7ba1=_0x58743d,_0x4c01b1=_0x14941f['get'](_0x43db3d[_0xcf7ba1(0x198)]);this[_0xcf7ba1(0x173)](this[_0xcf7ba1(0x18b)][_0xcf7ba1(0x184)],()=>_0x40dac8[_0xcf7ba1(0x17a)](_0x4c01b1[_0xcf7ba1(0x18d)][_0xcf7ba1(0x178)](_0x238812=>{const _0x49c52f=_0xcf7ba1;_0x238812[_0x49c52f(0x174)]===_0x43db3d[_0x49c52f(0x18f)]['McpConnectionStatusChanged']&&this['fireEvent'](this[_0x49c52f(0x18b)]['McpConnectionStatusChanged'],_0x238812['data']);}))),this[_0xcf7ba1(0x173)](this[_0xcf7ba1(0x18b)][_0xcf7ba1(0x190)],()=>_0x40dac8[_0xcf7ba1(0x17a)](_0x4c01b1[_0xcf7ba1(0x18d)][_0xcf7ba1(0x178)](_0x56a164=>{const _0x201ebc=_0xcf7ba1;_0x56a164[_0x201ebc(0x174)]===_0x43db3d[_0x201ebc(0x18f)][_0x201ebc(0x190)]&&this['fireEvent'](this[_0x201ebc(0x18b)][_0x201ebc(0x190)],_0x56a164['data']);}))),this[_0xcf7ba1(0x173)](this['Event'][_0xcf7ba1(0x18a)],()=>_0x40dac8[_0xcf7ba1(0x17a)](_0x4c01b1['event$']['subscribe'](_0x403e1f=>{const _0x5ce67f=_0xcf7ba1;_0x403e1f[_0x5ce67f(0x174)]===_0x43db3d[_0x5ce67f(0x18f)][_0x5ce67f(0x18a)]&&this['fireEvent'](this['Event'][_0x5ce67f(0x18a)],_0x403e1f['data']);}))),this[_0xcf7ba1(0x173)](this['Event'][_0xcf7ba1(0x176)],()=>_0x40dac8[_0xcf7ba1(0x17a)](_0x4c01b1[_0xcf7ba1(0x18d)][_0xcf7ba1(0x178)](_0x53fd54=>{const _0x2fa9f1=_0xcf7ba1;_0x53fd54[_0x2fa9f1(0x174)]===_0x43db3d[_0x2fa9f1(0x18f)][_0x2fa9f1(0x176)]&&this[_0x2fa9f1(0x177)](this['Event'][_0x2fa9f1(0x176)],_0x53fd54[_0x2fa9f1(0x19b)]);})));}[_0x58743d(0x17f)](_0x1a89ed,_0x28b71b){const _0x19d613=_0x58743d;return this[_0x19d613(0x16e)]['get'](_0x43db3d[_0x19d613(0x17d)])[_0x19d613(0x18c)](_0x1a89ed,_0x28b71b);}[_0x58743d(0x188)](){const _0x5c0643=_0x58743d;return this[_0x5c0643(0x16e)][_0x5c0643(0x191)](_0x43db3d[_0x5c0643(0x17d)])[_0x5c0643(0x192)]();}[_0x58743d(0x179)](_0x2c7c3e,_0x5f18c5){const _0x727cc0=_0x58743d;return this[_0x727cc0(0x16e)][_0x727cc0(0x191)](_0x43db3d[_0x727cc0(0x17d)])['executeTool'](_0x2c7c3e,_0x5f18c5);}['getMCPConnectionStatus'](){const _0x32f540=_0x58743d;return this['_injector'][_0x32f540(0x191)](_0x43db3d['MCPConnectionController'])[_0x32f540(0x196)]();}[_0x58743d(0x16d)](){const _0x116455=_0x58743d;this[_0x116455(0x16e)][_0x116455(0x191)](_0x43db3d[_0x116455(0x186)])['connect']();}[_0x58743d(0x194)](){const _0x87d06f=_0x58743d;this[_0x87d06f(0x16e)]['get'](_0x43db3d[_0x87d06f(0x186)])[_0x87d06f(0x175)]();}}_0x30b4f6['FUniver'][_0x58743d(0x189)](_0x47e928);}));