@univerjs-pro/mcp 0.15.2 → 0.15.3-insiders.20260131-cbd5fac

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(_0x1643e2,_0x4a99fb){const _0x194e92=_0x3146,_0x5253c7=_0x1643e2();while(!![]){try{const _0x2bf509=-parseInt(_0x194e92(0xe5))/0x1*(parseInt(_0x194e92(0xfa))/0x2)+-parseInt(_0x194e92(0x10b))/0x3*(parseInt(_0x194e92(0xe3))/0x4)+parseInt(_0x194e92(0xf3))/0x5*(-parseInt(_0x194e92(0x105))/0x6)+parseInt(_0x194e92(0xf8))/0x7+-parseInt(_0x194e92(0xe6))/0x8*(-parseInt(_0x194e92(0xe0))/0x9)+parseInt(_0x194e92(0xeb))/0xa*(parseInt(_0x194e92(0xfe))/0xb)+-parseInt(_0x194e92(0x10f))/0xc;if(_0x2bf509===_0x4a99fb)break;else _0x5253c7['push'](_0x5253c7['shift']());}catch(_0x315523){_0x5253c7['push'](_0x5253c7['shift']());}}}(_0x1864,0x2d7b3),function(_0x2f984c,_0x5498d2){const _0x207e50=_0x3146;typeof exports==_0x207e50(0xf1)&&typeof module<'u'?_0x5498d2(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x207e50(0x10a)&&define['amd']?define([_0x207e50(0x100),_0x207e50(0xf5),_0x207e50(0xec)],_0x5498d2):(_0x2f984c=typeof globalThis<'u'?globalThis:_0x2f984c||self,_0x5498d2(_0x2f984c[_0x207e50(0xfc)],_0x2f984c['UniverCoreFacade'],_0x2f984c[_0x207e50(0xf7)]));}(this,function(_0x2b16cb,_0x1d0347,_0x4d2a03){'use strict';const _0x638b8a=_0x3146;class _0x28035c{get['McpConnectionStatusChanged'](){const _0x484060=_0x3146;return _0x2b16cb[_0x484060(0xdf)]['McpConnectionStatusChanged'];}get['McpToolCallReceived'](){const _0x1284db=_0x3146;return _0x2b16cb[_0x1284db(0xdf)][_0x1284db(0xf2)];}get[_0x638b8a(0x107)](){const _0x365da3=_0x638b8a;return _0x2b16cb[_0x365da3(0xdf)][_0x365da3(0x107)];}get['McpToolCallFailed'](){const _0x26be44=_0x638b8a;return _0x2b16cb[_0x26be44(0xdf)][_0x26be44(0xe9)];}}_0x1d0347['FEventName'][_0x638b8a(0x10e)](_0x28035c);class _0x311f07 extends _0x1d0347[_0x638b8a(0xe2)]{[_0x638b8a(0x102)](_0x55e59a){const _0x1b4895=_0x638b8a;this[_0x1b4895(0xe7)](_0x55e59a);}[_0x638b8a(0xe7)](_0x5a0759){const _0x3b0d4b=_0x638b8a,_0x3f372e=_0x5a0759[_0x3b0d4b(0x106)](_0x2b16cb[_0x3b0d4b(0xfd)]);this['registerEventHandler'](this[_0x3b0d4b(0xfb)][_0x3b0d4b(0xef)],()=>_0x4d2a03[_0x3b0d4b(0xe4)](_0x3f372e[_0x3b0d4b(0xe1)][_0x3b0d4b(0xe8)](_0x4e1642=>{const _0x57db22=_0x3b0d4b;_0x4e1642[_0x57db22(0xff)]===_0x2b16cb[_0x57db22(0xdf)][_0x57db22(0xef)]&&this[_0x57db22(0x103)](this[_0x57db22(0xfb)][_0x57db22(0xef)],_0x4e1642[_0x57db22(0xea)]);}))),this[_0x3b0d4b(0x109)](this[_0x3b0d4b(0xfb)]['McpToolCallReceived'],()=>_0x4d2a03['toDisposable'](_0x3f372e['event$']['subscribe'](_0x276e22=>{const _0x547f17=_0x3b0d4b;_0x276e22[_0x547f17(0xff)]===_0x2b16cb['MCPEventId'][_0x547f17(0xf2)]&&this[_0x547f17(0x103)](this['Event'][_0x547f17(0xf2)],_0x276e22['data']);}))),this[_0x3b0d4b(0x109)](this[_0x3b0d4b(0xfb)]['McpToolCallExecuted'],()=>_0x4d2a03[_0x3b0d4b(0xe4)](_0x3f372e[_0x3b0d4b(0xe1)][_0x3b0d4b(0xe8)](_0x25eaf0=>{const _0x354382=_0x3b0d4b;_0x25eaf0['type']===_0x2b16cb['MCPEventId'][_0x354382(0x107)]&&this[_0x354382(0x103)](this[_0x354382(0xfb)][_0x354382(0x107)],_0x25eaf0[_0x354382(0xea)]);}))),this[_0x3b0d4b(0x109)](this[_0x3b0d4b(0xfb)][_0x3b0d4b(0xe9)],()=>_0x4d2a03['toDisposable'](_0x3f372e[_0x3b0d4b(0xe1)][_0x3b0d4b(0xe8)](_0x119d0e=>{const _0x2fede3=_0x3b0d4b;_0x119d0e[_0x2fede3(0xff)]===_0x2b16cb[_0x2fede3(0xdf)]['McpToolCallFailed']&&this['fireEvent'](this[_0x2fede3(0xfb)]['McpToolCallFailed'],_0x119d0e['data']);})));}[_0x638b8a(0x108)](_0x2c1343,_0x1f07a3){const _0x2de96d=_0x638b8a;return this['_injector'][_0x2de96d(0x106)](_0x2b16cb['IMCPToolRegistry'])[_0x2de96d(0x101)](_0x2c1343,_0x1f07a3);}['getAllMCPTools'](){const _0x2779d8=_0x638b8a;return this[_0x2779d8(0x10c)][_0x2779d8(0x106)](_0x2b16cb[_0x2779d8(0x104)])[_0x2779d8(0xf9)]();}[_0x638b8a(0xf0)](_0x11b0ad,_0x39e933){const _0x3ed81b=_0x638b8a;return this[_0x3ed81b(0x10c)]['get'](_0x2b16cb['IMCPToolRegistry'])[_0x3ed81b(0xf6)](_0x11b0ad,_0x39e933);}[_0x638b8a(0xed)](){const _0x4e4144=_0x638b8a;return this[_0x4e4144(0x10c)][_0x4e4144(0x106)](_0x2b16cb[_0x4e4144(0xf4)])[_0x4e4144(0xee)]();}[_0x638b8a(0x10d)](){const _0x104461=_0x638b8a;this[_0x104461(0x10c)][_0x104461(0x106)](_0x2b16cb[_0x104461(0xf4)])['connect']();}['disconnectMCP'](){const _0x1af5c3=_0x638b8a;this[_0x1af5c3(0x10c)][_0x1af5c3(0x106)](_0x2b16cb['MCPConnectionController'])['disconnect']();}}_0x1d0347[_0x638b8a(0xe2)][_0x638b8a(0x10e)](_0x311f07);}));function _0x3146(_0x42913d,_0xe5b317){_0x42913d=_0x42913d-0xdf;const _0x1864ce=_0x1864();let _0x314632=_0x1864ce[_0x42913d];return _0x314632;}function _0x1864(){const _0x7f3b7a=['2362339hGffbh','getAllTools','2fEltHu','Event','UniverProMcp','MCPEventService','24211Mzipit','type','@univerjs-pro/mcp','validateToolCall','_initialize','fireEvent','IMCPToolRegistry','60XxEAMu','get','McpToolCallExecuted','validateMCPToolCall','registerEventHandler','function','6009hEsErP','_injector','connectMCP','extend','1488792Ylnovd','MCPEventId','18BFzdEo','event$','FUniver','68bkXSUM','toDisposable','301114bUMPaY','727976CojuwB','_registerMCPFacadeEvents','subscribe','McpToolCallFailed','data','1410FmBJRQ','@univerjs/core','getMCPConnectionStatus','getConnectionStatus','McpConnectionStatusChanged','callMCPTool','object','McpToolCallReceived','92145ZKOUZs','MCPConnectionController','@univerjs/core/facade','executeTool','UniverCore'];_0x1864=function(){return _0x7f3b7a;};return _0x1864();}
1
+ function _0x16b7(){const _0x393ead=['type','MCPEventService','disconnect','disconnectMCP','UniverCoreFacade','2012681xxQYpe','event$','getMCPConnectionStatus','McpToolCallReceived','McpToolCallExecuted','connectMCP','1626831KLijfH','getAllTools','validateMCPToolCall','_injector','getAllMCPTools','IMCPToolRegistry','16LjSdXS','function','fireEvent','7069704aZAMVt','@univerjs-pro/mcp','_registerMCPFacadeEvents','10eUEVIJ','disposeWithMe','MCPEventId','_initialize','@univerjs/core','executeTool','@univerjs/core/facade','McpToolCallFailed','subscribe','1251906SqyCIg','registerEventHandler','extend','386709UHcptT','object','amd','get','toDisposable','FUniver','77255OuDNSC','258efjzDC','data','McpConnectionStatusChanged','MCPConnectionController','validateToolCall','Event','UniverCore','72737yrBNXX','FEventName','callMCPTool','connect','7lqNBQt','UniverProMcp'];_0x16b7=function(){return _0x393ead;};return _0x16b7();}function _0x478e(_0x63bd51,_0x531fc9){_0x63bd51=_0x63bd51-0x67;const _0x16b715=_0x16b7();let _0x478e06=_0x16b715[_0x63bd51];return _0x478e06;}(function(_0x3ce046,_0x757bfc){const _0x483af3=_0x478e,_0x50c3b6=_0x3ce046();while(!![]){try{const _0x11876e=parseInt(_0x483af3(0x6c))/0x1+-parseInt(_0x483af3(0x92))/0x2+-parseInt(_0x483af3(0x95))/0x3*(-parseInt(_0x483af3(0x83))/0x4)+parseInt(_0x483af3(0x9b))/0x5*(-parseInt(_0x483af3(0x9c))/0x6)+-parseInt(_0x483af3(0x70))/0x7*(-parseInt(_0x483af3(0x86))/0x8)+parseInt(_0x483af3(0x7d))/0x9*(parseInt(_0x483af3(0x89))/0xa)+parseInt(_0x483af3(0x77))/0xb;if(_0x11876e===_0x757bfc)break;else _0x50c3b6['push'](_0x50c3b6['shift']());}catch(_0x4a180a){_0x50c3b6['push'](_0x50c3b6['shift']());}}}(_0x16b7,0x852a6),function(_0x5396d6,_0x48a774){const _0x31fbb1=_0x478e;typeof exports==_0x31fbb1(0x96)&&typeof module<'u'?_0x48a774(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x31fbb1(0x84)&&define[_0x31fbb1(0x97)]?define([_0x31fbb1(0x87),_0x31fbb1(0x8f),_0x31fbb1(0x8d)],_0x48a774):(_0x5396d6=typeof globalThis<'u'?globalThis:_0x5396d6||self,_0x48a774(_0x5396d6[_0x31fbb1(0x71)],_0x5396d6[_0x31fbb1(0x76)],_0x5396d6[_0x31fbb1(0x6b)]));}(this,function(_0x23a0f2,_0xeb2d4a,_0x429cd9){'use strict';const _0x52bf59=_0x478e;class _0x518916{get[_0x52bf59(0x67)](){const _0x28824c=_0x52bf59;return _0x23a0f2[_0x28824c(0x8b)]['McpConnectionStatusChanged'];}get[_0x52bf59(0x7a)](){const _0x49d9fd=_0x52bf59;return _0x23a0f2[_0x49d9fd(0x8b)][_0x49d9fd(0x7a)];}get[_0x52bf59(0x7b)](){return _0x23a0f2['MCPEventId']['McpToolCallExecuted'];}get[_0x52bf59(0x90)](){const _0x54fe88=_0x52bf59;return _0x23a0f2[_0x54fe88(0x8b)]['McpToolCallFailed'];}}_0xeb2d4a[_0x52bf59(0x6d)]['extend'](_0x518916);class _0x57b135 extends _0xeb2d4a[_0x52bf59(0x9a)]{[_0x52bf59(0x8c)](_0x4f4d3e){const _0x1bc1c3=_0x52bf59;this[_0x1bc1c3(0x88)](_0x4f4d3e);}['_registerMCPFacadeEvents'](_0x54fc0d){const _0x49beaa=_0x52bf59,_0x10973c=_0x54fc0d['get'](_0x23a0f2[_0x49beaa(0x73)]);this[_0x49beaa(0x8a)](this[_0x49beaa(0x93)](this[_0x49beaa(0x6a)]['McpConnectionStatusChanged'],()=>_0x429cd9[_0x49beaa(0x99)](_0x10973c['event$'][_0x49beaa(0x91)](_0x1519bb=>{const _0x543f44=_0x49beaa;_0x1519bb['type']===_0x23a0f2[_0x543f44(0x8b)][_0x543f44(0x67)]&&this[_0x543f44(0x85)](this[_0x543f44(0x6a)]['McpConnectionStatusChanged'],_0x1519bb[_0x543f44(0x9d)]);})))),this['disposeWithMe'](this['registerEventHandler'](this[_0x49beaa(0x6a)][_0x49beaa(0x7a)],()=>_0x429cd9[_0x49beaa(0x99)](_0x10973c[_0x49beaa(0x78)]['subscribe'](_0x3fbf99=>{const _0x1663f6=_0x49beaa;_0x3fbf99[_0x1663f6(0x72)]===_0x23a0f2[_0x1663f6(0x8b)][_0x1663f6(0x7a)]&&this[_0x1663f6(0x85)](this[_0x1663f6(0x6a)][_0x1663f6(0x7a)],_0x3fbf99[_0x1663f6(0x9d)]);})))),this[_0x49beaa(0x8a)](this['registerEventHandler'](this[_0x49beaa(0x6a)][_0x49beaa(0x7b)],()=>_0x429cd9[_0x49beaa(0x99)](_0x10973c[_0x49beaa(0x78)][_0x49beaa(0x91)](_0x3b9bbb=>{const _0x445a91=_0x49beaa;_0x3b9bbb[_0x445a91(0x72)]===_0x23a0f2[_0x445a91(0x8b)][_0x445a91(0x7b)]&&this[_0x445a91(0x85)](this['Event'][_0x445a91(0x7b)],_0x3b9bbb['data']);})))),this[_0x49beaa(0x8a)](this[_0x49beaa(0x93)](this[_0x49beaa(0x6a)][_0x49beaa(0x90)],()=>_0x429cd9[_0x49beaa(0x99)](_0x10973c['event$']['subscribe'](_0x17bd82=>{const _0x4d8a89=_0x49beaa;_0x17bd82['type']===_0x23a0f2[_0x4d8a89(0x8b)][_0x4d8a89(0x90)]&&this[_0x4d8a89(0x85)](this['Event'][_0x4d8a89(0x90)],_0x17bd82[_0x4d8a89(0x9d)]);}))));}[_0x52bf59(0x7f)](_0x17283f,_0x169896){const _0x4bb411=_0x52bf59;return this['_injector'][_0x4bb411(0x98)](_0x23a0f2['IMCPToolRegistry'])[_0x4bb411(0x69)](_0x17283f,_0x169896);}[_0x52bf59(0x81)](){const _0x574a9f=_0x52bf59;return this[_0x574a9f(0x80)]['get'](_0x23a0f2[_0x574a9f(0x82)])[_0x574a9f(0x7e)]();}[_0x52bf59(0x6e)](_0x3c162b,_0x8134b2){const _0x4c482b=_0x52bf59;return this['_injector'][_0x4c482b(0x98)](_0x23a0f2['IMCPToolRegistry'])[_0x4c482b(0x8e)](_0x3c162b,_0x8134b2);}[_0x52bf59(0x79)](){const _0x4d819e=_0x52bf59;return this['_injector']['get'](_0x23a0f2[_0x4d819e(0x68)])['getConnectionStatus']();}[_0x52bf59(0x7c)](){const _0x3372ed=_0x52bf59;this[_0x3372ed(0x80)][_0x3372ed(0x98)](_0x23a0f2[_0x3372ed(0x68)])[_0x3372ed(0x6f)]();}[_0x52bf59(0x75)](){const _0x22a5ff=_0x52bf59;this[_0x22a5ff(0x80)][_0x22a5ff(0x98)](_0x23a0f2[_0x22a5ff(0x68)])[_0x22a5ff(0x74)]();}}_0xeb2d4a[_0x52bf59(0x9a)][_0x52bf59(0x94)](_0x57b135);}));