@univerjs-pro/mcp 0.15.3-insiders.20260131-b9b8805 → 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 _0x1044(_0x404713,_0x1495af){_0x404713=_0x404713-0x185;const _0x27b653=_0x27b6();let _0x104433=_0x27b653[_0x404713];return _0x104433;}function _0x27b6(){const _0x5d2cb9=['FUniver','FEventName','object','MCPEventId','amd','1770044LMnKwu','927CMPlVU','get','validateMCPToolCall','disposeWithMe','toDisposable','MCPConnectionController','callMCPTool','fireEvent','838635yWlGde','788473lzrXRv','@univerjs/core/facade','792903uFNkcj','3363636vePSVf','76088dyjosm','data','event$','executeTool','@univerjs-pro/mcp','@univerjs/core','Event','22410050DEirhG','_injector','4XegGrV','validateToolCall','McpToolCallFailed','UniverCoreFacade','McpToolCallExecuted','McpConnectionStatusChanged','registerEventHandler','getAllMCPTools','disconnect','subscribe','8pzXihs','McpToolCallReceived','_registerMCPFacadeEvents','extend','UniverProMcp','type','IMCPToolRegistry'];_0x27b6=function(){return _0x5d2cb9;};return _0x27b6();}(function(_0x4862a1,_0x33977d){const _0x22f507=_0x1044,_0xf28625=_0x4862a1();while(!![]){try{const _0x1d489d=-parseInt(_0x22f507(0x190))/0x1+parseInt(_0x22f507(0x1a7))/0x2*(parseInt(_0x22f507(0x19c))/0x3)+-parseInt(_0x22f507(0x1b1))/0x4*(parseInt(_0x22f507(0x199))/0x5)+-parseInt(_0x22f507(0x19d))/0x6+-parseInt(_0x22f507(0x19a))/0x7+parseInt(_0x22f507(0x19e))/0x8*(parseInt(_0x22f507(0x191))/0x9)+parseInt(_0x22f507(0x1a5))/0xa;if(_0x1d489d===_0x33977d)break;else _0xf28625['push'](_0xf28625['shift']());}catch(_0x489258){_0xf28625['push'](_0xf28625['shift']());}}}(_0x27b6,0xecf01),function(_0x299711,_0x17572a){const _0x46fe2e=_0x1044;typeof exports==_0x46fe2e(0x18d)&&typeof module<'u'?_0x17572a(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define=='function'&&define[_0x46fe2e(0x18f)]?define([_0x46fe2e(0x1a2),_0x46fe2e(0x19b),_0x46fe2e(0x1a3)],_0x17572a):(_0x299711=typeof globalThis<'u'?globalThis:_0x299711||self,_0x17572a(_0x299711[_0x46fe2e(0x188)],_0x299711[_0x46fe2e(0x1aa)],_0x299711['UniverCore']));}(this,function(_0x51e1e0,_0x4e3ead,_0x40daf9){'use strict';const _0x40d0e9=_0x1044;class _0x56723b{get[_0x40d0e9(0x1ac)](){const _0xccdf34=_0x40d0e9;return _0x51e1e0[_0xccdf34(0x18e)][_0xccdf34(0x1ac)];}get[_0x40d0e9(0x185)](){const _0x1aabd4=_0x40d0e9;return _0x51e1e0[_0x1aabd4(0x18e)][_0x1aabd4(0x185)];}get[_0x40d0e9(0x1ab)](){const _0x1488a6=_0x40d0e9;return _0x51e1e0[_0x1488a6(0x18e)][_0x1488a6(0x1ab)];}get['McpToolCallFailed'](){const _0xd10d0f=_0x40d0e9;return _0x51e1e0[_0xd10d0f(0x18e)][_0xd10d0f(0x1a9)];}}_0x4e3ead[_0x40d0e9(0x18c)]['extend'](_0x56723b);class _0x4e218c extends _0x4e3ead[_0x40d0e9(0x18b)]{['_initialize'](_0x1244da){this['_registerMCPFacadeEvents'](_0x1244da);}[_0x40d0e9(0x186)](_0x328f90){const _0x2914f7=_0x40d0e9,_0x5edeec=_0x328f90['get'](_0x51e1e0['MCPEventService']);this['disposeWithMe'](this[_0x2914f7(0x1ad)](this[_0x2914f7(0x1a4)][_0x2914f7(0x1ac)],()=>_0x40daf9['toDisposable'](_0x5edeec[_0x2914f7(0x1a0)][_0x2914f7(0x1b0)](_0x14bfcb=>{const _0x1748eb=_0x2914f7;_0x14bfcb[_0x1748eb(0x189)]===_0x51e1e0[_0x1748eb(0x18e)][_0x1748eb(0x1ac)]&&this[_0x1748eb(0x198)](this[_0x1748eb(0x1a4)][_0x1748eb(0x1ac)],_0x14bfcb[_0x1748eb(0x19f)]);})))),this[_0x2914f7(0x194)](this['registerEventHandler'](this[_0x2914f7(0x1a4)]['McpToolCallReceived'],()=>_0x40daf9['toDisposable'](_0x5edeec[_0x2914f7(0x1a0)][_0x2914f7(0x1b0)](_0x28f37b=>{const _0x26f799=_0x2914f7;_0x28f37b[_0x26f799(0x189)]===_0x51e1e0['MCPEventId'][_0x26f799(0x185)]&&this[_0x26f799(0x198)](this['Event'][_0x26f799(0x185)],_0x28f37b['data']);})))),this['disposeWithMe'](this[_0x2914f7(0x1ad)](this['Event'][_0x2914f7(0x1ab)],()=>_0x40daf9[_0x2914f7(0x195)](_0x5edeec[_0x2914f7(0x1a0)][_0x2914f7(0x1b0)](_0x56177f=>{const _0x1dcf7a=_0x2914f7;_0x56177f[_0x1dcf7a(0x189)]===_0x51e1e0[_0x1dcf7a(0x18e)][_0x1dcf7a(0x1ab)]&&this['fireEvent'](this[_0x1dcf7a(0x1a4)][_0x1dcf7a(0x1ab)],_0x56177f[_0x1dcf7a(0x19f)]);})))),this[_0x2914f7(0x194)](this[_0x2914f7(0x1ad)](this[_0x2914f7(0x1a4)][_0x2914f7(0x1a9)],()=>_0x40daf9[_0x2914f7(0x195)](_0x5edeec[_0x2914f7(0x1a0)][_0x2914f7(0x1b0)](_0x4eb4e4=>{const _0x39e27a=_0x2914f7;_0x4eb4e4['type']===_0x51e1e0[_0x39e27a(0x18e)][_0x39e27a(0x1a9)]&&this[_0x39e27a(0x198)](this[_0x39e27a(0x1a4)]['McpToolCallFailed'],_0x4eb4e4[_0x39e27a(0x19f)]);}))));}[_0x40d0e9(0x193)](_0x5ed4fc,_0x526dd2){const _0x1ea39c=_0x40d0e9;return this['_injector'][_0x1ea39c(0x192)](_0x51e1e0[_0x1ea39c(0x18a)])[_0x1ea39c(0x1a8)](_0x5ed4fc,_0x526dd2);}[_0x40d0e9(0x1ae)](){const _0x4cc9b8=_0x40d0e9;return this['_injector'][_0x4cc9b8(0x192)](_0x51e1e0[_0x4cc9b8(0x18a)])['getAllTools']();}[_0x40d0e9(0x197)](_0x3088b4,_0x2e6f15){const _0x427d28=_0x40d0e9;return this[_0x427d28(0x1a6)][_0x427d28(0x192)](_0x51e1e0['IMCPToolRegistry'])[_0x427d28(0x1a1)](_0x3088b4,_0x2e6f15);}['getMCPConnectionStatus'](){const _0x35e14f=_0x40d0e9;return this[_0x35e14f(0x1a6)]['get'](_0x51e1e0[_0x35e14f(0x196)])['getConnectionStatus']();}['connectMCP'](){const _0x1cc256=_0x40d0e9;this[_0x1cc256(0x1a6)][_0x1cc256(0x192)](_0x51e1e0[_0x1cc256(0x196)])['connect']();}['disconnectMCP'](){const _0xf380fd=_0x40d0e9;this[_0xf380fd(0x1a6)][_0xf380fd(0x192)](_0x51e1e0[_0xf380fd(0x196)])[_0xf380fd(0x1af)]();}}_0x4e3ead[_0x40d0e9(0x18b)][_0x40d0e9(0x187)](_0x4e218c);}));
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);}));