@univerjs-pro/mcp 0.13.0-insiders.20251220-0a5ea4d → 0.14.0-insiders.20251222-4efcfbb

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 _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);}));
1
+ function _0x2de8(){const _0x4fb86c=['Event','connect','disconnectMCP','6168mAWvKU','2061567ZogUBA','FUniver','@univerjs-pro/mcp','_injector','validateMCPToolCall','3itbVpb','9kzsfYf','getConnectionStatus','McpToolCallFailed','_registerMCPFacadeEvents','event$','56VqaBUn','getAllMCPTools','toDisposable','type','MCPConnectionController','IMCPToolRegistry','_initialize','1292568NSMgVB','registerEventHandler','getAllTools','subscribe','UniverCoreFacade','object','McpToolCallExecuted','McpToolCallReceived','data','12675960BdRjur','get','validateToolCall','@univerjs/core/facade','executeTool','function','10829270YQWoVt','extend','805aHnwXx','McpConnectionStatusChanged','602838CdWKIf','MCPEventId','MCPEventService','22621668bGELDZ','fireEvent','8SjvAbL'];_0x2de8=function(){return _0x4fb86c;};return _0x2de8();}function _0x2355(_0x164466,_0x42703d){_0x164466=_0x164466-0x12f;const _0x2de87e=_0x2de8();let _0x235551=_0x2de87e[_0x164466];return _0x235551;}(function(_0x48729b,_0x230a8a){const _0x5aedc1=_0x2355,_0x5f343e=_0x48729b();while(!![]){try{const _0x4fd03b=parseInt(_0x5aedc1(0x154))/0x1*(-parseInt(_0x5aedc1(0x145))/0x2)+parseInt(_0x5aedc1(0x14f))/0x3*(-parseInt(_0x5aedc1(0x14a))/0x4)+-parseInt(_0x5aedc1(0x143))/0x5*(-parseInt(_0x5aedc1(0x14e))/0x6)+parseInt(_0x5aedc1(0x15a))/0x7*(-parseInt(_0x5aedc1(0x132))/0x8)+parseInt(_0x5aedc1(0x155))/0x9*(parseInt(_0x5aedc1(0x141))/0xa)+parseInt(_0x5aedc1(0x13b))/0xb+parseInt(_0x5aedc1(0x148))/0xc;if(_0x4fd03b===_0x230a8a)break;else _0x5f343e['push'](_0x5f343e['shift']());}catch(_0x5db728){_0x5f343e['push'](_0x5f343e['shift']());}}}(_0x2de8,0xae7eb),function(_0x2ed7bc,_0x289a0b){const _0x4127cb=_0x2355;typeof exports==_0x4127cb(0x137)&&typeof module<'u'?_0x289a0b(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x4127cb(0x140)&&define['amd']?define([_0x4127cb(0x151),_0x4127cb(0x13e),'@univerjs/core'],_0x289a0b):(_0x2ed7bc=typeof globalThis<'u'?globalThis:_0x2ed7bc||self,_0x289a0b(_0x2ed7bc['UniverProMcp'],_0x2ed7bc[_0x4127cb(0x136)],_0x2ed7bc['UniverCore']));}(this,function(_0xea6ac8,_0x4b2d71,_0x4bb7d7){'use strict';const _0xde6b8b=_0x2355;class _0x3c7455{get[_0xde6b8b(0x144)](){const _0x27b23c=_0xde6b8b;return _0xea6ac8[_0x27b23c(0x146)][_0x27b23c(0x144)];}get['McpToolCallReceived'](){const _0x2b3678=_0xde6b8b;return _0xea6ac8[_0x2b3678(0x146)][_0x2b3678(0x139)];}get['McpToolCallExecuted'](){const _0x36e46a=_0xde6b8b;return _0xea6ac8[_0x36e46a(0x146)][_0x36e46a(0x138)];}get['McpToolCallFailed'](){const _0x5358a5=_0xde6b8b;return _0xea6ac8[_0x5358a5(0x146)][_0x5358a5(0x157)];}}_0x4b2d71['FEventName'][_0xde6b8b(0x142)](_0x3c7455);class _0x4c327c extends _0x4b2d71[_0xde6b8b(0x150)]{[_0xde6b8b(0x131)](_0x42797b){const _0x40d707=_0xde6b8b;this[_0x40d707(0x158)](_0x42797b);}['_registerMCPFacadeEvents'](_0x2b77a7){const _0x4851b7=_0xde6b8b,_0x1e7d8f=_0x2b77a7[_0x4851b7(0x13c)](_0xea6ac8[_0x4851b7(0x147)]);this[_0x4851b7(0x133)](this[_0x4851b7(0x14b)]['McpConnectionStatusChanged'],()=>_0x4bb7d7['toDisposable'](_0x1e7d8f[_0x4851b7(0x159)]['subscribe'](_0x3a0ba8=>{const _0x5586f0=_0x4851b7;_0x3a0ba8[_0x5586f0(0x15d)]===_0xea6ac8['MCPEventId'][_0x5586f0(0x144)]&&this[_0x5586f0(0x149)](this[_0x5586f0(0x14b)][_0x5586f0(0x144)],_0x3a0ba8['data']);}))),this[_0x4851b7(0x133)](this['Event']['McpToolCallReceived'],()=>_0x4bb7d7[_0x4851b7(0x15c)](_0x1e7d8f[_0x4851b7(0x159)][_0x4851b7(0x135)](_0x2cf972=>{const _0x4a1fb2=_0x4851b7;_0x2cf972[_0x4a1fb2(0x15d)]===_0xea6ac8['MCPEventId'][_0x4a1fb2(0x139)]&&this['fireEvent'](this['Event']['McpToolCallReceived'],_0x2cf972[_0x4a1fb2(0x13a)]);}))),this[_0x4851b7(0x133)](this['Event'][_0x4851b7(0x138)],()=>_0x4bb7d7['toDisposable'](_0x1e7d8f['event$']['subscribe'](_0xfcf552=>{const _0x1f483d=_0x4851b7;_0xfcf552[_0x1f483d(0x15d)]===_0xea6ac8[_0x1f483d(0x146)][_0x1f483d(0x138)]&&this[_0x1f483d(0x149)](this[_0x1f483d(0x14b)]['McpToolCallExecuted'],_0xfcf552[_0x1f483d(0x13a)]);}))),this[_0x4851b7(0x133)](this[_0x4851b7(0x14b)]['McpToolCallFailed'],()=>_0x4bb7d7[_0x4851b7(0x15c)](_0x1e7d8f[_0x4851b7(0x159)][_0x4851b7(0x135)](_0x54ec34=>{const _0x48db75=_0x4851b7;_0x54ec34['type']===_0xea6ac8[_0x48db75(0x146)][_0x48db75(0x157)]&&this['fireEvent'](this[_0x48db75(0x14b)]['McpToolCallFailed'],_0x54ec34[_0x48db75(0x13a)]);})));}[_0xde6b8b(0x153)](_0x5cae1f,_0x54cadc){const _0x315203=_0xde6b8b;return this[_0x315203(0x152)]['get'](_0xea6ac8[_0x315203(0x130)])[_0x315203(0x13d)](_0x5cae1f,_0x54cadc);}[_0xde6b8b(0x15b)](){const _0x44441e=_0xde6b8b;return this['_injector'][_0x44441e(0x13c)](_0xea6ac8[_0x44441e(0x130)])[_0x44441e(0x134)]();}['callMCPTool'](_0x3bf348,_0x24bd2a){const _0x5fe1e0=_0xde6b8b;return this[_0x5fe1e0(0x152)][_0x5fe1e0(0x13c)](_0xea6ac8[_0x5fe1e0(0x130)])[_0x5fe1e0(0x13f)](_0x3bf348,_0x24bd2a);}['getMCPConnectionStatus'](){const _0x52390b=_0xde6b8b;return this[_0x52390b(0x152)]['get'](_0xea6ac8[_0x52390b(0x12f)])[_0x52390b(0x156)]();}['connectMCP'](){const _0x41a764=_0xde6b8b;this[_0x41a764(0x152)]['get'](_0xea6ac8[_0x41a764(0x12f)])[_0x41a764(0x14c)]();}[_0xde6b8b(0x14d)](){const _0x250ff3=_0xde6b8b;this[_0x250ff3(0x152)][_0x250ff3(0x13c)](_0xea6ac8[_0x250ff3(0x12f)])['disconnect']();}}_0x4b2d71[_0xde6b8b(0x150)][_0xde6b8b(0x142)](_0x4c327c);}));