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

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 _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);}));
1
+ (function(_0x1bf7ba,_0x5dc1df){const _0x95c79b=_0x1fdf,_0x3ef579=_0x1bf7ba();while(!![]){try{const _0x5424de=-parseInt(_0x95c79b(0xe0))/0x1*(-parseInt(_0x95c79b(0xb4))/0x2)+-parseInt(_0x95c79b(0xdf))/0x3+parseInt(_0x95c79b(0xdc))/0x4+-parseInt(_0x95c79b(0xce))/0x5*(parseInt(_0x95c79b(0xbb))/0x6)+parseInt(_0x95c79b(0xcf))/0x7*(parseInt(_0x95c79b(0xb8))/0x8)+parseInt(_0x95c79b(0xba))/0x9+-parseInt(_0x95c79b(0xc4))/0xa*(parseInt(_0x95c79b(0xc3))/0xb);if(_0x5424de===_0x5dc1df)break;else _0x3ef579['push'](_0x3ef579['shift']());}catch(_0x1a3a17){_0x3ef579['push'](_0x3ef579['shift']());}}}(_0x3725,0x853ce),function(_0x1b7bad,_0x55cca2){const _0x1fa86b=_0x1fdf;typeof exports==_0x1fa86b(0xb3)&&typeof module<'u'?_0x55cca2(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define=='function'&&define['amd']?define([_0x1fa86b(0xe1),_0x1fa86b(0xc2),'@univerjs/core'],_0x55cca2):(_0x1b7bad=typeof globalThis<'u'?globalThis:_0x1b7bad||self,_0x55cca2(_0x1b7bad[_0x1fa86b(0xb6)],_0x1b7bad[_0x1fa86b(0xb7)],_0x1b7bad[_0x1fa86b(0xc5)]));}(this,function(_0x8a38f7,_0x37f073,_0x5f4598){'use strict';const _0x1725a5=_0x1fdf;class _0x41799e{get[_0x1725a5(0xb9)](){const _0x577ff9=_0x1725a5;return _0x8a38f7[_0x577ff9(0xbd)][_0x577ff9(0xb9)];}get[_0x1725a5(0xc8)](){const _0xf15074=_0x1725a5;return _0x8a38f7[_0xf15074(0xbd)][_0xf15074(0xc8)];}get[_0x1725a5(0xbc)](){const _0x128752=_0x1725a5;return _0x8a38f7[_0x128752(0xbd)][_0x128752(0xbc)];}get[_0x1725a5(0xde)](){const _0x788a57=_0x1725a5;return _0x8a38f7['MCPEventId'][_0x788a57(0xde)];}}_0x37f073[_0x1725a5(0xcb)][_0x1725a5(0xd6)](_0x41799e);class _0x2fa81e extends _0x37f073['FUniver']{[_0x1725a5(0xdb)](_0x2ba50d){const _0x270d25=_0x1725a5;this[_0x270d25(0xca)](_0x2ba50d);}[_0x1725a5(0xca)](_0x107971){const _0x1403fb=_0x1725a5,_0x25ef7e=_0x107971[_0x1403fb(0xd3)](_0x8a38f7[_0x1403fb(0xd7)]);this[_0x1403fb(0xd4)](this[_0x1403fb(0xbe)][_0x1403fb(0xb9)],()=>_0x5f4598[_0x1403fb(0xd8)](_0x25ef7e['event$']['subscribe'](_0x7301f5=>{const _0x1a0191=_0x1403fb;_0x7301f5[_0x1a0191(0xb5)]===_0x8a38f7[_0x1a0191(0xbd)]['McpConnectionStatusChanged']&&this[_0x1a0191(0xda)](this[_0x1a0191(0xbe)]['McpConnectionStatusChanged'],_0x7301f5[_0x1a0191(0xbf)]);}))),this['registerEventHandler'](this[_0x1403fb(0xbe)][_0x1403fb(0xc8)],()=>_0x5f4598[_0x1403fb(0xd8)](_0x25ef7e[_0x1403fb(0xc7)][_0x1403fb(0xd9)](_0x3a3535=>{const _0x26ff44=_0x1403fb;_0x3a3535[_0x26ff44(0xb5)]===_0x8a38f7['MCPEventId']['McpToolCallReceived']&&this[_0x26ff44(0xda)](this[_0x26ff44(0xbe)][_0x26ff44(0xc8)],_0x3a3535[_0x26ff44(0xbf)]);}))),this[_0x1403fb(0xd4)](this[_0x1403fb(0xbe)][_0x1403fb(0xbc)],()=>_0x5f4598[_0x1403fb(0xd8)](_0x25ef7e['event$'][_0x1403fb(0xd9)](_0x3eb79b=>{const _0x4a4f5c=_0x1403fb;_0x3eb79b[_0x4a4f5c(0xb5)]===_0x8a38f7[_0x4a4f5c(0xbd)]['McpToolCallExecuted']&&this[_0x4a4f5c(0xda)](this[_0x4a4f5c(0xbe)][_0x4a4f5c(0xbc)],_0x3eb79b[_0x4a4f5c(0xbf)]);}))),this[_0x1403fb(0xd4)](this[_0x1403fb(0xbe)][_0x1403fb(0xde)],()=>_0x5f4598[_0x1403fb(0xd8)](_0x25ef7e[_0x1403fb(0xc7)]['subscribe'](_0x5e66d2=>{const _0x4c8117=_0x1403fb;_0x5e66d2[_0x4c8117(0xb5)]===_0x8a38f7[_0x4c8117(0xbd)][_0x4c8117(0xde)]&&this['fireEvent'](this[_0x4c8117(0xbe)][_0x4c8117(0xde)],_0x5e66d2['data']);})));}[_0x1725a5(0xd2)](_0x1da2a9,_0x34effe){const _0x322261=_0x1725a5;return this[_0x322261(0xd0)][_0x322261(0xd3)](_0x8a38f7[_0x322261(0xc0)])[_0x322261(0xcc)](_0x1da2a9,_0x34effe);}[_0x1725a5(0xc9)](){const _0x90d72d=_0x1725a5;return this[_0x90d72d(0xd0)]['get'](_0x8a38f7['IMCPToolRegistry'])['getAllTools']();}['callMCPTool'](_0x2e32d5,_0x3fdc67){const _0x25b905=_0x1725a5;return this['_injector'][_0x25b905(0xd3)](_0x8a38f7['IMCPToolRegistry'])[_0x25b905(0xcd)](_0x2e32d5,_0x3fdc67);}[_0x1725a5(0xb2)](){const _0x31f771=_0x1725a5;return this[_0x31f771(0xd0)][_0x31f771(0xd3)](_0x8a38f7[_0x31f771(0xc6)])[_0x31f771(0xd1)]();}[_0x1725a5(0xe2)](){const _0xe30dca=_0x1725a5;this[_0xe30dca(0xd0)][_0xe30dca(0xd3)](_0x8a38f7[_0xe30dca(0xc6)])[_0xe30dca(0xc1)]();}['disconnectMCP'](){const _0x208cf6=_0x1725a5;this[_0x208cf6(0xd0)]['get'](_0x8a38f7[_0x208cf6(0xc6)])[_0x208cf6(0xd5)]();}}_0x37f073[_0x1725a5(0xdd)]['extend'](_0x2fa81e);}));function _0x1fdf(_0x516bbb,_0x4a551c){_0x516bbb=_0x516bbb-0xb2;const _0x37258d=_0x3725();let _0x1fdf9a=_0x37258d[_0x516bbb];return _0x1fdf9a;}function _0x3725(){const _0x9da102=['2RoopPv','@univerjs-pro/mcp','connectMCP','getMCPConnectionStatus','object','843032zDeFmi','type','UniverProMcp','UniverCoreFacade','6144ZRkAnk','McpConnectionStatusChanged','7674102hYUUSe','48YYEpxJ','McpToolCallExecuted','MCPEventId','Event','data','IMCPToolRegistry','connect','@univerjs/core/facade','75757ioyWTt','970cnWaNc','UniverCore','MCPConnectionController','event$','McpToolCallReceived','getAllMCPTools','_registerMCPFacadeEvents','FEventName','validateToolCall','executeTool','664060WaRMcN','2499avSegj','_injector','getConnectionStatus','validateMCPToolCall','get','registerEventHandler','disconnect','extend','MCPEventService','toDisposable','subscribe','fireEvent','_initialize','1782040kZRYUA','FUniver','McpToolCallFailed','417357LqJbqH'];_0x3725=function(){return _0x9da102;};return _0x3725();}