@univerjs-pro/mcp 0.13.0-insiders.20251216-1519cb7 → 0.13.0-insiders.20251220-0a5ea4d

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 _0x39ac(_0x1183d7,_0x51da8a){_0x1183d7=_0x1183d7-0x1de;const _0x364565=_0x3645();let _0x39ac33=_0x364565[_0x1183d7];return _0x39ac33;}function _0x3645(){const _0x4b8f82=['McpToolCallReceived','7EWXxeb','disconnect','amd','850869KBIGcb','4qozIKw','McpToolCallExecuted','getAllTools','FUniver','FEventName','116499TPJiuf','_injector','_initialize','subscribe','@univerjs-pro/mcp','173PAkxXy','982xAZVKY','toDisposable','type','1023RpjTKz','MCPConnectionController','McpConnectionStatusChanged','validateMCPToolCall','McpToolCallFailed','UniverCore','disconnectMCP','getMCPConnectionStatus','UniverProMcp','function','fireEvent','registerEventHandler','data','53160sAvjLS','MCPEventId','getConnectionStatus','@univerjs/core/facade','object','1835jNHriP','validateToolCall','_registerMCPFacadeEvents','MCPEventService','IMCPToolRegistry','11211900ZdkOPb','2526zzhVlr','Event','5857976uvkvaX','getAllMCPTools','executeTool','get','event$','callMCPTool','extend'];_0x3645=function(){return _0x4b8f82;};return _0x3645();}(function(_0x324330,_0x164126){const _0x2c61a5=_0x39ac,_0x323ec6=_0x324330();while(!![]){try{const _0x181b9e=-parseInt(_0x2c61a5(0x1ec))/0x1*(parseInt(_0x2c61a5(0x1ed))/0x2)+-parseInt(_0x2c61a5(0x1e7))/0x3*(parseInt(_0x2c61a5(0x1e2))/0x4)+-parseInt(_0x2c61a5(0x202))/0x5*(-parseInt(_0x2c61a5(0x208))/0x6)+parseInt(_0x2c61a5(0x1de))/0x7*(parseInt(_0x2c61a5(0x20a))/0x8)+parseInt(_0x2c61a5(0x1e1))/0x9+-parseInt(_0x2c61a5(0x1fd))/0xa*(-parseInt(_0x2c61a5(0x1f0))/0xb)+-parseInt(_0x2c61a5(0x207))/0xc;if(_0x181b9e===_0x164126)break;else _0x323ec6['push'](_0x323ec6['shift']());}catch(_0x2f987c){_0x323ec6['push'](_0x323ec6['shift']());}}}(_0x3645,0x65f2e),function(_0x33d044,_0x4dbf3b){const _0x25b8a8=_0x39ac;typeof exports==_0x25b8a8(0x201)&&typeof module<'u'?_0x4dbf3b(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x25b8a8(0x1f9)&&define[_0x25b8a8(0x1e0)]?define([_0x25b8a8(0x1eb),_0x25b8a8(0x200),'@univerjs/core'],_0x4dbf3b):(_0x33d044=typeof globalThis<'u'?globalThis:_0x33d044||self,_0x4dbf3b(_0x33d044[_0x25b8a8(0x1f8)],_0x33d044['UniverCoreFacade'],_0x33d044[_0x25b8a8(0x1f5)]));}(this,function(_0x56b29f,_0x9b91e3,_0x5ba174){'use strict';const _0x2465b2=_0x39ac;class _0x15b646{get[_0x2465b2(0x1f2)](){const _0x19b673=_0x2465b2;return _0x56b29f[_0x19b673(0x1fe)]['McpConnectionStatusChanged'];}get['McpToolCallReceived'](){const _0x315b44=_0x2465b2;return _0x56b29f['MCPEventId'][_0x315b44(0x211)];}get[_0x2465b2(0x1e3)](){const _0x30abe3=_0x2465b2;return _0x56b29f['MCPEventId'][_0x30abe3(0x1e3)];}get['McpToolCallFailed'](){const _0xb6e6fb=_0x2465b2;return _0x56b29f['MCPEventId'][_0xb6e6fb(0x1f4)];}}_0x9b91e3[_0x2465b2(0x1e6)][_0x2465b2(0x210)](_0x15b646);class _0x19d396 extends _0x9b91e3['FUniver']{[_0x2465b2(0x1e9)](_0x2328c1){const _0x5b567d=_0x2465b2;this[_0x5b567d(0x204)](_0x2328c1);}[_0x2465b2(0x204)](_0x44718f){const _0x352730=_0x2465b2,_0xb078a0=_0x44718f[_0x352730(0x20d)](_0x56b29f[_0x352730(0x205)]);this[_0x352730(0x1fb)](this[_0x352730(0x209)]['McpConnectionStatusChanged'],()=>_0x5ba174['toDisposable'](_0xb078a0[_0x352730(0x20e)]['subscribe'](_0x8da2ee=>{const _0x1d069a=_0x352730;_0x8da2ee[_0x1d069a(0x1ef)]===_0x56b29f['MCPEventId'][_0x1d069a(0x1f2)]&&this[_0x1d069a(0x1fa)](this[_0x1d069a(0x209)][_0x1d069a(0x1f2)],_0x8da2ee['data']);}))),this[_0x352730(0x1fb)](this[_0x352730(0x209)]['McpToolCallReceived'],()=>_0x5ba174[_0x352730(0x1ee)](_0xb078a0[_0x352730(0x20e)]['subscribe'](_0x2e70d7=>{const _0x5b4799=_0x352730;_0x2e70d7[_0x5b4799(0x1ef)]===_0x56b29f['MCPEventId'][_0x5b4799(0x211)]&&this[_0x5b4799(0x1fa)](this[_0x5b4799(0x209)]['McpToolCallReceived'],_0x2e70d7[_0x5b4799(0x1fc)]);}))),this['registerEventHandler'](this[_0x352730(0x209)][_0x352730(0x1e3)],()=>_0x5ba174['toDisposable'](_0xb078a0[_0x352730(0x20e)][_0x352730(0x1ea)](_0x215cda=>{const _0x202501=_0x352730;_0x215cda['type']===_0x56b29f[_0x202501(0x1fe)][_0x202501(0x1e3)]&&this[_0x202501(0x1fa)](this[_0x202501(0x209)][_0x202501(0x1e3)],_0x215cda[_0x202501(0x1fc)]);}))),this['registerEventHandler'](this[_0x352730(0x209)][_0x352730(0x1f4)],()=>_0x5ba174[_0x352730(0x1ee)](_0xb078a0[_0x352730(0x20e)][_0x352730(0x1ea)](_0x52f650=>{const _0xc2b5b3=_0x352730;_0x52f650[_0xc2b5b3(0x1ef)]===_0x56b29f[_0xc2b5b3(0x1fe)][_0xc2b5b3(0x1f4)]&&this[_0xc2b5b3(0x1fa)](this[_0xc2b5b3(0x209)]['McpToolCallFailed'],_0x52f650['data']);})));}[_0x2465b2(0x1f3)](_0x229e55,_0x3fbd85){const _0x49ad45=_0x2465b2;return this[_0x49ad45(0x1e8)][_0x49ad45(0x20d)](_0x56b29f[_0x49ad45(0x206)])[_0x49ad45(0x203)](_0x229e55,_0x3fbd85);}[_0x2465b2(0x20b)](){const _0x43d1d8=_0x2465b2;return this[_0x43d1d8(0x1e8)]['get'](_0x56b29f[_0x43d1d8(0x206)])[_0x43d1d8(0x1e4)]();}[_0x2465b2(0x20f)](_0x4ddcd4,_0x3f2de0){const _0x49c3f3=_0x2465b2;return this[_0x49c3f3(0x1e8)][_0x49c3f3(0x20d)](_0x56b29f[_0x49c3f3(0x206)])[_0x49c3f3(0x20c)](_0x4ddcd4,_0x3f2de0);}[_0x2465b2(0x1f7)](){const _0x209745=_0x2465b2;return this['_injector']['get'](_0x56b29f['MCPConnectionController'])[_0x209745(0x1ff)]();}['connectMCP'](){const _0x232b8c=_0x2465b2;this[_0x232b8c(0x1e8)]['get'](_0x56b29f[_0x232b8c(0x1f1)])['connect']();}[_0x2465b2(0x1f6)](){const _0x298aed=_0x2465b2;this[_0x298aed(0x1e8)][_0x298aed(0x20d)](_0x56b29f['MCPConnectionController'])[_0x298aed(0x1df)]();}}_0x9b91e3[_0x2465b2(0x1e5)][_0x2465b2(0x210)](_0x19d396);}));