@univerjs-pro/mcp 0.13.0-insiders.20251218-2062647 → 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 _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);}));
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);}));