@univerjs-pro/mcp 0.15.2-insiders.20260124-12fc7f0 → 0.15.3-insiders.20260131-b9b8805

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 _0x3992(_0x5ba9cc,_0xcbe287){_0x5ba9cc=_0x5ba9cc-0xa5;const _0x15866a=_0x1586();let _0x399249=_0x15866a[_0x5ba9cc];return _0x399249;}(function(_0x376ea1,_0x5aa18c){const _0x1ef8c5=_0x3992,_0x30772b=_0x376ea1();while(!![]){try{const _0x118d00=-parseInt(_0x1ef8c5(0xaa))/0x1*(-parseInt(_0x1ef8c5(0xa7))/0x2)+parseInt(_0x1ef8c5(0xa9))/0x3*(parseInt(_0x1ef8c5(0xcb))/0x4)+parseInt(_0x1ef8c5(0xc5))/0x5*(-parseInt(_0x1ef8c5(0xd0))/0x6)+parseInt(_0x1ef8c5(0xaf))/0x7+parseInt(_0x1ef8c5(0xd5))/0x8+parseInt(_0x1ef8c5(0xbb))/0x9+-parseInt(_0x1ef8c5(0xbf))/0xa;if(_0x118d00===_0x5aa18c)break;else _0x30772b['push'](_0x30772b['shift']());}catch(_0x2d1949){_0x30772b['push'](_0x30772b['shift']());}}}(_0x1586,0xd120a),function(_0x5e2dda,_0xa4b1e){const _0x4a153=_0x3992;typeof exports==_0x4a153(0xc6)&&typeof module<'u'?_0xa4b1e(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x4a153(0xc0)&&define[_0x4a153(0xcc)]?define([_0x4a153(0xae),_0x4a153(0xab),_0x4a153(0xb6)],_0xa4b1e):(_0x5e2dda=typeof globalThis<'u'?globalThis:_0x5e2dda||self,_0xa4b1e(_0x5e2dda[_0x4a153(0xcf)],_0x5e2dda['UniverCoreFacade'],_0x5e2dda[_0x4a153(0xa8)]));}(this,function(_0x215eec,_0x2848e1,_0x2f4c6f){'use strict';const _0xd2cea1=_0x3992;class _0x39e778{get[_0xd2cea1(0xd6)](){const _0x496399=_0xd2cea1;return _0x215eec[_0x496399(0xb4)][_0x496399(0xd6)];}get['McpToolCallReceived'](){const _0x582d8a=_0xd2cea1;return _0x215eec[_0x582d8a(0xb4)][_0x582d8a(0xcd)];}get[_0xd2cea1(0xc4)](){const _0x2ee771=_0xd2cea1;return _0x215eec[_0x2ee771(0xb4)]['McpToolCallExecuted'];}get[_0xd2cea1(0xc1)](){const _0x1e4632=_0xd2cea1;return _0x215eec[_0x1e4632(0xb4)][_0x1e4632(0xc1)];}}_0x2848e1[_0xd2cea1(0xce)]['extend'](_0x39e778);class _0x4c44e4 extends _0x2848e1[_0xd2cea1(0xc2)]{['_initialize'](_0x60b960){const _0x45d468=_0xd2cea1;this[_0x45d468(0xbc)](_0x60b960);}[_0xd2cea1(0xbc)](_0x529e0e){const _0x25ac24=_0xd2cea1,_0x4ede8e=_0x529e0e[_0x25ac24(0xa6)](_0x215eec[_0x25ac24(0xd2)]);this[_0x25ac24(0xba)](this[_0x25ac24(0xd4)][_0x25ac24(0xd6)],()=>_0x2f4c6f['toDisposable'](_0x4ede8e[_0x25ac24(0xc9)][_0x25ac24(0xac)](_0x2cf97d=>{const _0x4a874f=_0x25ac24;_0x2cf97d[_0x4a874f(0xb7)]===_0x215eec[_0x4a874f(0xb4)][_0x4a874f(0xd6)]&&this[_0x4a874f(0xb3)](this[_0x4a874f(0xd4)][_0x4a874f(0xd6)],_0x2cf97d[_0x4a874f(0xd3)]);}))),this['registerEventHandler'](this[_0x25ac24(0xd4)]['McpToolCallReceived'],()=>_0x2f4c6f[_0x25ac24(0xb0)](_0x4ede8e[_0x25ac24(0xc9)][_0x25ac24(0xac)](_0x2414f1=>{const _0x5599ec=_0x25ac24;_0x2414f1['type']===_0x215eec['MCPEventId'][_0x5599ec(0xcd)]&&this[_0x5599ec(0xb3)](this[_0x5599ec(0xd4)][_0x5599ec(0xcd)],_0x2414f1[_0x5599ec(0xd3)]);}))),this[_0x25ac24(0xba)](this[_0x25ac24(0xd4)][_0x25ac24(0xc4)],()=>_0x2f4c6f[_0x25ac24(0xb0)](_0x4ede8e['event$'][_0x25ac24(0xac)](_0x18b37d=>{const _0x3a9f04=_0x25ac24;_0x18b37d['type']===_0x215eec[_0x3a9f04(0xb4)][_0x3a9f04(0xc4)]&&this[_0x3a9f04(0xb3)](this[_0x3a9f04(0xd4)][_0x3a9f04(0xc4)],_0x18b37d['data']);}))),this[_0x25ac24(0xba)](this['Event'][_0x25ac24(0xc1)],()=>_0x2f4c6f[_0x25ac24(0xb0)](_0x4ede8e['event$'][_0x25ac24(0xac)](_0x339074=>{const _0x5661fe=_0x25ac24;_0x339074['type']===_0x215eec[_0x5661fe(0xb4)][_0x5661fe(0xc1)]&&this[_0x5661fe(0xb3)](this[_0x5661fe(0xd4)]['McpToolCallFailed'],_0x339074[_0x5661fe(0xd3)]);})));}[_0xd2cea1(0xad)](_0x9ef708,_0x522c9a){const _0x88777c=_0xd2cea1;return this['_injector']['get'](_0x215eec[_0x88777c(0xa5)])[_0x88777c(0xb2)](_0x9ef708,_0x522c9a);}[_0xd2cea1(0xc3)](){const _0xaef68d=_0xd2cea1;return this['_injector'][_0xaef68d(0xa6)](_0x215eec[_0xaef68d(0xa5)])['getAllTools']();}[_0xd2cea1(0xb8)](_0xab70cc,_0xe3a63){const _0x226abb=_0xd2cea1;return this[_0x226abb(0xc7)][_0x226abb(0xa6)](_0x215eec[_0x226abb(0xa5)])[_0x226abb(0xbe)](_0xab70cc,_0xe3a63);}[_0xd2cea1(0xb9)](){const _0x4897c8=_0xd2cea1;return this[_0x4897c8(0xc7)][_0x4897c8(0xa6)](_0x215eec[_0x4897c8(0xb5)])[_0x4897c8(0xb1)]();}[_0xd2cea1(0xc8)](){const _0x4c2811=_0xd2cea1;this[_0x4c2811(0xc7)][_0x4c2811(0xa6)](_0x215eec[_0x4c2811(0xb5)])['connect']();}[_0xd2cea1(0xd1)](){const _0x4f4434=_0xd2cea1;this[_0x4f4434(0xc7)]['get'](_0x215eec[_0x4f4434(0xb5)])[_0x4f4434(0xbd)]();}}_0x2848e1[_0xd2cea1(0xc2)][_0xd2cea1(0xca)](_0x4c44e4);}));function _0x1586(){const _0x156a6b=['UniverCore','87oWMlyF','3dRyxuF','@univerjs/core/facade','subscribe','validateMCPToolCall','@univerjs-pro/mcp','381577zbDaRP','toDisposable','getConnectionStatus','validateToolCall','fireEvent','MCPEventId','MCPConnectionController','@univerjs/core','type','callMCPTool','getMCPConnectionStatus','registerEventHandler','8409006ZViipv','_registerMCPFacadeEvents','disconnect','executeTool','14581120uELkZo','function','McpToolCallFailed','FUniver','getAllMCPTools','McpToolCallExecuted','3427715esahfh','object','_injector','connectMCP','event$','extend','145052NyOIBV','amd','McpToolCallReceived','FEventName','UniverProMcp','12oivYDn','disconnectMCP','MCPEventService','data','Event','11883320gwbJnY','McpConnectionStatusChanged','IMCPToolRegistry','get','106598JCZerE'];_0x1586=function(){return _0x156a6b;};return _0x1586();}
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);}));