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

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(_0x11a935,_0x4898f4){const _0xb2e45b=_0x2940,_0x5cf14a=_0x11a935();while(!![]){try{const _0x4def3c=-parseInt(_0xb2e45b(0x1aa))/0x1+parseInt(_0xb2e45b(0x1b2))/0x2+parseInt(_0xb2e45b(0x1a3))/0x3*(parseInt(_0xb2e45b(0x1b1))/0x4)+-parseInt(_0xb2e45b(0x1b7))/0x5*(-parseInt(_0xb2e45b(0x1d6))/0x6)+-parseInt(_0xb2e45b(0x1d3))/0x7*(-parseInt(_0xb2e45b(0x1ae))/0x8)+parseInt(_0xb2e45b(0x1ab))/0x9+-parseInt(_0xb2e45b(0x1a4))/0xa;if(_0x4def3c===_0x4898f4)break;else _0x5cf14a['push'](_0x5cf14a['shift']());}catch(_0x26b0c2){_0x5cf14a['push'](_0x5cf14a['shift']());}}}(_0x19ee,0xb208c),function(_0x3e5d6f,_0x417a14){const _0x4bfd95=_0x2940;typeof exports==_0x4bfd95(0x1d0)&&typeof module<'u'?_0x417a14(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x4bfd95(0x1c8)&&define[_0x4bfd95(0x1c7)]?define([_0x4bfd95(0x1cd),_0x4bfd95(0x1bf),_0x4bfd95(0x1cc)],_0x417a14):(_0x3e5d6f=typeof globalThis<'u'?globalThis:_0x3e5d6f||self,_0x417a14(_0x3e5d6f[_0x4bfd95(0x1b3)],_0x3e5d6f[_0x4bfd95(0x1cb)],_0x3e5d6f[_0x4bfd95(0x1c1)]));}(this,function(_0x20215d,_0x1f2af2,_0x2895ed){'use strict';const _0x4c0204=_0x2940;class _0x2a2843{get[_0x4c0204(0x1a2)](){const _0x4b5345=_0x4c0204;return _0x20215d[_0x4b5345(0x1c3)][_0x4b5345(0x1a2)];}get[_0x4c0204(0x1b4)](){const _0x11277c=_0x4c0204;return _0x20215d[_0x11277c(0x1c3)][_0x11277c(0x1b4)];}get[_0x4c0204(0x1af)](){const _0x4b233b=_0x4c0204;return _0x20215d[_0x4b233b(0x1c3)][_0x4b233b(0x1af)];}get[_0x4c0204(0x1c4)](){const _0x50a597=_0x4c0204;return _0x20215d[_0x50a597(0x1c3)]['McpToolCallFailed'];}}_0x1f2af2[_0x4c0204(0x1b5)][_0x4c0204(0x1b0)](_0x2a2843);class _0x38261b extends _0x1f2af2[_0x4c0204(0x1a7)]{[_0x4c0204(0x1a6)](_0xd30f43){const _0x2895b2=_0x4c0204;this[_0x2895b2(0x1bb)](_0xd30f43);}['_registerMCPFacadeEvents'](_0x6e08bb){const _0x265425=_0x4c0204,_0x4e5314=_0x6e08bb[_0x265425(0x1be)](_0x20215d[_0x265425(0x1ba)]);this[_0x265425(0x1ad)](this[_0x265425(0x1c6)][_0x265425(0x1a2)],()=>_0x2895ed[_0x265425(0x1d4)](_0x4e5314[_0x265425(0x1ac)][_0x265425(0x1b9)](_0x2f02ea=>{const _0x1cd34c=_0x265425;_0x2f02ea['type']===_0x20215d[_0x1cd34c(0x1c3)][_0x1cd34c(0x1a2)]&&this[_0x1cd34c(0x1b6)](this['Event'][_0x1cd34c(0x1a2)],_0x2f02ea[_0x1cd34c(0x1c0)]);}))),this[_0x265425(0x1ad)](this[_0x265425(0x1c6)]['McpToolCallReceived'],()=>_0x2895ed[_0x265425(0x1d4)](_0x4e5314[_0x265425(0x1ac)]['subscribe'](_0x39f8d2=>{const _0x2c6e57=_0x265425;_0x39f8d2[_0x2c6e57(0x1ce)]===_0x20215d['MCPEventId'][_0x2c6e57(0x1b4)]&&this[_0x2c6e57(0x1b6)](this['Event'][_0x2c6e57(0x1b4)],_0x39f8d2[_0x2c6e57(0x1c0)]);}))),this[_0x265425(0x1ad)](this[_0x265425(0x1c6)][_0x265425(0x1af)],()=>_0x2895ed[_0x265425(0x1d4)](_0x4e5314[_0x265425(0x1ac)]['subscribe'](_0x1f6f90=>{const _0x55d9c9=_0x265425;_0x1f6f90[_0x55d9c9(0x1ce)]===_0x20215d[_0x55d9c9(0x1c3)][_0x55d9c9(0x1af)]&&this['fireEvent'](this[_0x55d9c9(0x1c6)][_0x55d9c9(0x1af)],_0x1f6f90[_0x55d9c9(0x1c0)]);}))),this[_0x265425(0x1ad)](this[_0x265425(0x1c6)]['McpToolCallFailed'],()=>_0x2895ed[_0x265425(0x1d4)](_0x4e5314[_0x265425(0x1ac)][_0x265425(0x1b9)](_0x1b1e36=>{const _0x2152d0=_0x265425;_0x1b1e36['type']===_0x20215d['MCPEventId'][_0x2152d0(0x1c4)]&&this[_0x2152d0(0x1b6)](this[_0x2152d0(0x1c6)][_0x2152d0(0x1c4)],_0x1b1e36[_0x2152d0(0x1c0)]);})));}[_0x4c0204(0x1c5)](_0x3ffc7d,_0x1420b7){const _0x5330e6=_0x4c0204;return this['_injector'][_0x5330e6(0x1be)](_0x20215d[_0x5330e6(0x1d2)])['validateToolCall'](_0x3ffc7d,_0x1420b7);}[_0x4c0204(0x1c9)](){const _0x34e6cf=_0x4c0204;return this[_0x34e6cf(0x1d1)]['get'](_0x20215d[_0x34e6cf(0x1d2)])[_0x34e6cf(0x1a5)]();}[_0x4c0204(0x1d5)](_0x3b4b97,_0x2f21e8){const _0x26b00c=_0x4c0204;return this[_0x26b00c(0x1d1)][_0x26b00c(0x1be)](_0x20215d[_0x26b00c(0x1d2)])[_0x26b00c(0x1a9)](_0x3b4b97,_0x2f21e8);}[_0x4c0204(0x1a8)](){const _0x555c72=_0x4c0204;return this['_injector'][_0x555c72(0x1be)](_0x20215d[_0x555c72(0x1cf)])[_0x555c72(0x1c2)]();}[_0x4c0204(0x1ca)](){const _0x5097b8=_0x4c0204;this[_0x5097b8(0x1d1)][_0x5097b8(0x1be)](_0x20215d[_0x5097b8(0x1cf)])[_0x5097b8(0x1bd)]();}[_0x4c0204(0x1b8)](){const _0x5132c2=_0x4c0204;this[_0x5132c2(0x1d1)][_0x5132c2(0x1be)](_0x20215d['MCPConnectionController'])[_0x5132c2(0x1bc)]();}}_0x1f2af2[_0x4c0204(0x1a7)][_0x4c0204(0x1b0)](_0x38261b);}));function _0x2940(_0x29a655,_0x40bf1b){_0x29a655=_0x29a655-0x1a2;const _0x19ee08=_0x19ee();let _0x29406c=_0x19ee08[_0x29a655];return _0x29406c;}function _0x19ee(){const _0x406cc4=['subscribe','MCPEventService','_registerMCPFacadeEvents','disconnect','connect','get','@univerjs/core/facade','data','UniverCore','getConnectionStatus','MCPEventId','McpToolCallFailed','validateMCPToolCall','Event','amd','function','getAllMCPTools','connectMCP','UniverCoreFacade','@univerjs/core','@univerjs-pro/mcp','type','MCPConnectionController','object','_injector','IMCPToolRegistry','1631VGwEFg','toDisposable','callMCPTool','12SKHCen','McpConnectionStatusChanged','5067FDYiMR','37584750IWsfKK','getAllTools','_initialize','FUniver','getMCPConnectionStatus','executeTool','22087pFoOIt','12262167OWkDPl','event$','registerEventHandler','31184rcZOPw','McpToolCallExecuted','extend','2756WLzvrE','739808KvrrlO','UniverProMcp','McpToolCallReceived','FEventName','fireEvent','1763670vMcXPz','disconnectMCP'];_0x19ee=function(){return _0x406cc4;};return _0x19ee();}