@univerjs-pro/mcp 0.14.0 → 0.15.0-insiders.20251227-dafc157

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(_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();}
1
+ function _0x52de(){const _0x552d0d=['getConnectionStatus','MCPEventService','disconnect','UniverCoreFacade','getMCPConnectionStatus','connect','3227675CwxNAn','get','FUniver','380bwcWBY','MCPEventId','6870269USectl','9CmtNca','toDisposable','IMCPToolRegistry','3747936LFBXon','UniverCore','@univerjs/core/facade','FEventName','subscribe','McpConnectionStatusChanged','MCPConnectionController','McpToolCallReceived','Event','5082840tMsqFj','McpToolCallExecuted','2014710zXcVDp','data','validateToolCall','registerEventHandler','event$','639804nhkVLW','fireEvent','UniverProMcp','function','McpToolCallFailed','_registerMCPFacadeEvents','_injector','extend','connectMCP','type','8633ISXTRd','callMCPTool'];_0x52de=function(){return _0x552d0d;};return _0x52de();}function _0x2a4c(_0x5cf156,_0x5004cc){_0x5cf156=_0x5cf156-0x117;const _0x52dea6=_0x52de();let _0x2a4c73=_0x52dea6[_0x5cf156];return _0x2a4c73;}(function(_0x2f6e2c,_0x447d09){const _0x44c427=_0x2a4c,_0x559b66=_0x2f6e2c();while(!![]){try{const _0x3c8b38=parseInt(_0x44c427(0x11e))/0x1*(-parseInt(_0x44c427(0x129))/0x2)+parseInt(_0x44c427(0x13a))/0x3+-parseInt(_0x44c427(0x13f))/0x4+parseInt(_0x44c427(0x126))/0x5+parseInt(_0x44c427(0x138))/0x6+parseInt(_0x44c427(0x12b))/0x7+parseInt(_0x44c427(0x12f))/0x8*(-parseInt(_0x44c427(0x12c))/0x9);if(_0x3c8b38===_0x447d09)break;else _0x559b66['push'](_0x559b66['shift']());}catch(_0x1b3bab){_0x559b66['push'](_0x559b66['shift']());}}}(_0x52de,0xd61c7),function(_0x118c5b,_0x43bf61){const _0xeae230=_0x2a4c;typeof exports=='object'&&typeof module<'u'?_0x43bf61(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0xeae230(0x117)&&define['amd']?define(['@univerjs-pro/mcp',_0xeae230(0x131),'@univerjs/core'],_0x43bf61):(_0x118c5b=typeof globalThis<'u'?globalThis:_0x118c5b||self,_0x43bf61(_0x118c5b[_0xeae230(0x141)],_0x118c5b[_0xeae230(0x123)],_0x118c5b[_0xeae230(0x130)]));}(this,function(_0xab4f37,_0x4e028b,_0x3b3157){'use strict';const _0x1da5d0=_0x2a4c;class _0x27066e{get[_0x1da5d0(0x134)](){const _0x43f0e9=_0x1da5d0;return _0xab4f37['MCPEventId'][_0x43f0e9(0x134)];}get[_0x1da5d0(0x136)](){const _0x1cca93=_0x1da5d0;return _0xab4f37['MCPEventId'][_0x1cca93(0x136)];}get[_0x1da5d0(0x139)](){const _0x4512db=_0x1da5d0;return _0xab4f37[_0x4512db(0x12a)]['McpToolCallExecuted'];}get[_0x1da5d0(0x118)](){return _0xab4f37['MCPEventId']['McpToolCallFailed'];}}_0x4e028b[_0x1da5d0(0x132)][_0x1da5d0(0x11b)](_0x27066e);class _0x59771e extends _0x4e028b[_0x1da5d0(0x128)]{['_initialize'](_0x4910eb){this['_registerMCPFacadeEvents'](_0x4910eb);}[_0x1da5d0(0x119)](_0xc6fffe){const _0x289967=_0x1da5d0,_0x42518b=_0xc6fffe[_0x289967(0x127)](_0xab4f37[_0x289967(0x121)]);this['registerEventHandler'](this[_0x289967(0x137)]['McpConnectionStatusChanged'],()=>_0x3b3157[_0x289967(0x12d)](_0x42518b['event$'][_0x289967(0x133)](_0x399586=>{const _0x3a5211=_0x289967;_0x399586['type']===_0xab4f37['MCPEventId'][_0x3a5211(0x134)]&&this['fireEvent'](this[_0x3a5211(0x137)][_0x3a5211(0x134)],_0x399586['data']);}))),this[_0x289967(0x13d)](this['Event']['McpToolCallReceived'],()=>_0x3b3157[_0x289967(0x12d)](_0x42518b[_0x289967(0x13e)][_0x289967(0x133)](_0x200cff=>{const _0x350de3=_0x289967;_0x200cff[_0x350de3(0x11d)]===_0xab4f37['MCPEventId'][_0x350de3(0x136)]&&this[_0x350de3(0x140)](this['Event'][_0x350de3(0x136)],_0x200cff[_0x350de3(0x13b)]);}))),this[_0x289967(0x13d)](this[_0x289967(0x137)]['McpToolCallExecuted'],()=>_0x3b3157['toDisposable'](_0x42518b['event$']['subscribe'](_0x47d10c=>{const _0x3c0676=_0x289967;_0x47d10c[_0x3c0676(0x11d)]===_0xab4f37[_0x3c0676(0x12a)]['McpToolCallExecuted']&&this[_0x3c0676(0x140)](this[_0x3c0676(0x137)][_0x3c0676(0x139)],_0x47d10c[_0x3c0676(0x13b)]);}))),this[_0x289967(0x13d)](this[_0x289967(0x137)][_0x289967(0x118)],()=>_0x3b3157[_0x289967(0x12d)](_0x42518b[_0x289967(0x13e)][_0x289967(0x133)](_0x47f602=>{const _0x1939f9=_0x289967;_0x47f602[_0x1939f9(0x11d)]===_0xab4f37[_0x1939f9(0x12a)][_0x1939f9(0x118)]&&this[_0x1939f9(0x140)](this['Event'][_0x1939f9(0x118)],_0x47f602[_0x1939f9(0x13b)]);})));}['validateMCPToolCall'](_0x4fc1fd,_0x4c9688){const _0x4aa3d7=_0x1da5d0;return this['_injector'][_0x4aa3d7(0x127)](_0xab4f37[_0x4aa3d7(0x12e)])[_0x4aa3d7(0x13c)](_0x4fc1fd,_0x4c9688);}['getAllMCPTools'](){const _0x56b98e=_0x1da5d0;return this[_0x56b98e(0x11a)][_0x56b98e(0x127)](_0xab4f37[_0x56b98e(0x12e)])['getAllTools']();}[_0x1da5d0(0x11f)](_0x44f2d1,_0x54fcc7){const _0x238dc7=_0x1da5d0;return this['_injector']['get'](_0xab4f37[_0x238dc7(0x12e)])['executeTool'](_0x44f2d1,_0x54fcc7);}[_0x1da5d0(0x124)](){const _0x1f4b31=_0x1da5d0;return this['_injector'][_0x1f4b31(0x127)](_0xab4f37[_0x1f4b31(0x135)])[_0x1f4b31(0x120)]();}[_0x1da5d0(0x11c)](){const _0x43d57c=_0x1da5d0;this[_0x43d57c(0x11a)][_0x43d57c(0x127)](_0xab4f37[_0x43d57c(0x135)])[_0x43d57c(0x125)]();}['disconnectMCP'](){const _0x58583e=_0x1da5d0;this[_0x58583e(0x11a)][_0x58583e(0x127)](_0xab4f37[_0x58583e(0x135)])[_0x58583e(0x122)]();}}_0x4e028b[_0x1da5d0(0x128)][_0x1da5d0(0x11b)](_0x59771e);}));