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

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 _0x1793(_0x1ff735,_0x1d35d0){_0x1ff735=_0x1ff735-0xa2;const _0x504f1a=_0x504f();let _0x1793e4=_0x504f1a[_0x1ff735];return _0x1793e4;}(function(_0x21eb54,_0x1cda18){const _0xc45fc9=_0x1793,_0x44e6ff=_0x21eb54();while(!![]){try{const _0x511ec2=-parseInt(_0xc45fc9(0xc7))/0x1*(-parseInt(_0xc45fc9(0xbf))/0x2)+-parseInt(_0xc45fc9(0xb2))/0x3+-parseInt(_0xc45fc9(0xa7))/0x4*(-parseInt(_0xc45fc9(0xad))/0x5)+-parseInt(_0xc45fc9(0xae))/0x6+parseInt(_0xc45fc9(0xa3))/0x7*(-parseInt(_0xc45fc9(0xc5))/0x8)+parseInt(_0xc45fc9(0xc6))/0x9*(-parseInt(_0xc45fc9(0xb1))/0xa)+parseInt(_0xc45fc9(0xc9))/0xb;if(_0x511ec2===_0x1cda18)break;else _0x44e6ff['push'](_0x44e6ff['shift']());}catch(_0x573cc5){_0x44e6ff['push'](_0x44e6ff['shift']());}}}(_0x504f,0x60bd0),function(_0x542aaa,_0x5530e6){const _0x136a12=_0x1793;typeof exports==_0x136a12(0xb0)&&typeof module<'u'?_0x5530e6(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define=='function'&&define[_0x136a12(0xc8)]?define(['@univerjs-pro/mcp','@univerjs/core/facade',_0x136a12(0xb9)],_0x5530e6):(_0x542aaa=typeof globalThis<'u'?globalThis:_0x542aaa||self,_0x5530e6(_0x542aaa[_0x136a12(0xcf)],_0x542aaa[_0x136a12(0xc3)],_0x542aaa['UniverCore']));}(this,function(_0x11d1ce,_0xdfa0fd,_0x358be9){'use strict';const _0x25d1be=_0x1793;class _0x57308f{get[_0x25d1be(0xbc)](){const _0x227478=_0x25d1be;return _0x11d1ce[_0x227478(0xaa)]['McpConnectionStatusChanged'];}get['McpToolCallReceived'](){const _0x2c654f=_0x25d1be;return _0x11d1ce[_0x2c654f(0xaa)][_0x2c654f(0xb4)];}get[_0x25d1be(0xc4)](){const _0x4fab61=_0x25d1be;return _0x11d1ce[_0x4fab61(0xaa)][_0x4fab61(0xc4)];}get[_0x25d1be(0xc0)](){const _0x2981e2=_0x25d1be;return _0x11d1ce[_0x2981e2(0xaa)][_0x2981e2(0xc0)];}}_0xdfa0fd[_0x25d1be(0xba)][_0x25d1be(0xa6)](_0x57308f);class _0x3aff2f extends _0xdfa0fd[_0x25d1be(0xab)]{[_0x25d1be(0xd0)](_0x4f7a51){const _0x419ec8=_0x25d1be;this[_0x419ec8(0xcb)](_0x4f7a51);}[_0x25d1be(0xcb)](_0x51304c){const _0x4457cb=_0x25d1be,_0x1bf4e6=_0x51304c[_0x4457cb(0xac)](_0x11d1ce[_0x4457cb(0xbd)]);this[_0x4457cb(0xcd)](this[_0x4457cb(0xa2)]['McpConnectionStatusChanged'],()=>_0x358be9['toDisposable'](_0x1bf4e6[_0x4457cb(0xd1)]['subscribe'](_0x38e00a=>{const _0x17fcf5=_0x4457cb;_0x38e00a[_0x17fcf5(0xd2)]===_0x11d1ce['MCPEventId']['McpConnectionStatusChanged']&&this[_0x17fcf5(0xca)](this[_0x17fcf5(0xa2)]['McpConnectionStatusChanged'],_0x38e00a['data']);}))),this['registerEventHandler'](this[_0x4457cb(0xa2)]['McpToolCallReceived'],()=>_0x358be9[_0x4457cb(0xb3)](_0x1bf4e6[_0x4457cb(0xd1)][_0x4457cb(0xc2)](_0x325c6c=>{const _0x23aa4c=_0x4457cb;_0x325c6c[_0x23aa4c(0xd2)]===_0x11d1ce[_0x23aa4c(0xaa)]['McpToolCallReceived']&&this[_0x23aa4c(0xca)](this['Event'][_0x23aa4c(0xb4)],_0x325c6c[_0x23aa4c(0xaf)]);}))),this[_0x4457cb(0xcd)](this['Event'][_0x4457cb(0xc4)],()=>_0x358be9[_0x4457cb(0xb3)](_0x1bf4e6[_0x4457cb(0xd1)][_0x4457cb(0xc2)](_0x182837=>{const _0x4249dd=_0x4457cb;_0x182837['type']===_0x11d1ce[_0x4249dd(0xaa)][_0x4249dd(0xc4)]&&this[_0x4249dd(0xca)](this['Event'][_0x4249dd(0xc4)],_0x182837[_0x4249dd(0xaf)]);}))),this[_0x4457cb(0xcd)](this[_0x4457cb(0xa2)]['McpToolCallFailed'],()=>_0x358be9[_0x4457cb(0xb3)](_0x1bf4e6[_0x4457cb(0xd1)][_0x4457cb(0xc2)](_0x516e3d=>{const _0x5df40a=_0x4457cb;_0x516e3d[_0x5df40a(0xd2)]===_0x11d1ce[_0x5df40a(0xaa)][_0x5df40a(0xc0)]&&this[_0x5df40a(0xca)](this['Event'][_0x5df40a(0xc0)],_0x516e3d[_0x5df40a(0xaf)]);})));}[_0x25d1be(0xb8)](_0x3425f8,_0x144cb0){const _0x2c8206=_0x25d1be;return this[_0x2c8206(0xce)]['get'](_0x11d1ce[_0x2c8206(0xa4)])['validateToolCall'](_0x3425f8,_0x144cb0);}[_0x25d1be(0xa9)](){const _0x21dac1=_0x25d1be;return this[_0x21dac1(0xce)]['get'](_0x11d1ce['IMCPToolRegistry'])[_0x21dac1(0xbe)]();}[_0x25d1be(0xb5)](_0x469f27,_0x4ff8f5){const _0x3b5655=_0x25d1be;return this[_0x3b5655(0xce)]['get'](_0x11d1ce[_0x3b5655(0xa4)])[_0x3b5655(0xc1)](_0x469f27,_0x4ff8f5);}['getMCPConnectionStatus'](){const _0x1ddd00=_0x25d1be;return this[_0x1ddd00(0xce)]['get'](_0x11d1ce['MCPConnectionController'])[_0x1ddd00(0xa5)]();}[_0x25d1be(0xa8)](){const _0x46f579=_0x25d1be;this[_0x46f579(0xce)][_0x46f579(0xac)](_0x11d1ce['MCPConnectionController'])[_0x46f579(0xbb)]();}[_0x25d1be(0xb7)](){const _0x220213=_0x25d1be;this[_0x220213(0xce)][_0x220213(0xac)](_0x11d1ce[_0x220213(0xb6)])[_0x220213(0xcc)]();}}_0xdfa0fd[_0x25d1be(0xab)][_0x25d1be(0xa6)](_0x3aff2f);}));function _0x504f(){const _0x103f52=['Event','7PXxtCk','IMCPToolRegistry','getConnectionStatus','extend','108976GBVmvz','connectMCP','getAllMCPTools','MCPEventId','FUniver','get','55cLwqvD','4095522nXFHpE','data','object','10ljiWlq','450168JXyEsb','toDisposable','McpToolCallReceived','callMCPTool','MCPConnectionController','disconnectMCP','validateMCPToolCall','@univerjs/core','FEventName','connect','McpConnectionStatusChanged','MCPEventService','getAllTools','195230qSCmza','McpToolCallFailed','executeTool','subscribe','UniverCoreFacade','McpToolCallExecuted','3900920QEGJZR','704007rOXLxn','2OlJKRP','amd','14297877BjQrjK','fireEvent','_registerMCPFacadeEvents','disconnect','registerEventHandler','_injector','UniverProMcp','_initialize','event$','type'];_0x504f=function(){return _0x103f52;};return _0x504f();}