@univerjs-pro/mcp 0.15.0-insiders.20260107-3d1cfdf → 0.15.0-insiders.20260108-7b9120d

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 _0x2015(_0x9b2168,_0x29403a){_0x9b2168=_0x9b2168-0xe0;const _0x3bbadc=_0x3bba();let _0x20158e=_0x3bbadc[_0x9b2168];return _0x20158e;}function _0x3bba(){const _0x25d3da=['MCPConnectionController','@univerjs-pro/mcp','135yWVoFZ','380zpycUu','MCPEventService','UniverCore','McpConnectionStatusChanged','_initialize','UniverProMcp','extend','FUniver','131010IXmuKZ','disconnect','846CBwimw','1203160EVPPWJ','MCPEventId','487962KjglFO','IMCPToolRegistry','1036006qISlei','@univerjs/core','Event','get','getConnectionStatus','getAllTools','223225opnSOa','56LKxNtm','_registerMCPFacadeEvents','disconnectMCP','McpToolCallFailed','245768xGbkpT','function','event$','validateToolCall','McpToolCallExecuted','registerEventHandler','subscribe','FEventName','1948ZopChz','callMCPTool','UniverCoreFacade','fireEvent','_injector','toDisposable','McpToolCallReceived','type','data'];_0x3bba=function(){return _0x25d3da;};return _0x3bba();}(function(_0x225313,_0xd9914a){const _0x29dd80=_0x2015,_0x4766ef=_0x225313();while(!![]){try{const _0x14d643=-parseInt(_0x29dd80(0xe9))/0x1+parseInt(_0x29dd80(0xe3))/0x2+parseInt(_0x29dd80(0x10c))/0x3*(parseInt(_0x29dd80(0xf6))/0x4)+-parseInt(_0x29dd80(0x10d))/0x5+-parseInt(_0x29dd80(0xe1))/0x6*(parseInt(_0x29dd80(0xea))/0x7)+-parseInt(_0x29dd80(0xee))/0x8*(-parseInt(_0x29dd80(0x101))/0x9)+-parseInt(_0x29dd80(0x102))/0xa*(-parseInt(_0x29dd80(0x10a))/0xb);if(_0x14d643===_0xd9914a)break;else _0x4766ef['push'](_0x4766ef['shift']());}catch(_0x4d5187){_0x4766ef['push'](_0x4766ef['shift']());}}}(_0x3bba,0x6ee73),function(_0x5d752b,_0x3157b9){const _0x38e27d=_0x2015;typeof exports=='object'&&typeof module<'u'?_0x3157b9(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x38e27d(0xef)&&define['amd']?define([_0x38e27d(0x100),'@univerjs/core/facade',_0x38e27d(0xe4)],_0x3157b9):(_0x5d752b=typeof globalThis<'u'?globalThis:_0x5d752b||self,_0x3157b9(_0x5d752b[_0x38e27d(0x107)],_0x5d752b[_0x38e27d(0xf8)],_0x5d752b[_0x38e27d(0x104)]));}(this,function(_0x5c2020,_0x2d016d,_0x6623c1){'use strict';const _0x441936=_0x2015;class _0x3e3cb2{get[_0x441936(0x105)](){return _0x5c2020['MCPEventId']['McpConnectionStatusChanged'];}get[_0x441936(0xfc)](){return _0x5c2020['MCPEventId']['McpToolCallReceived'];}get[_0x441936(0xf2)](){const _0x19119d=_0x441936;return _0x5c2020[_0x19119d(0xe0)][_0x19119d(0xf2)];}get[_0x441936(0xed)](){const _0x29ace1=_0x441936;return _0x5c2020[_0x29ace1(0xe0)][_0x29ace1(0xed)];}}_0x2d016d[_0x441936(0xf5)]['extend'](_0x3e3cb2);class _0x3da9aa extends _0x2d016d[_0x441936(0x109)]{[_0x441936(0x106)](_0x5a4a5d){const _0x57deab=_0x441936;this[_0x57deab(0xeb)](_0x5a4a5d);}[_0x441936(0xeb)](_0x4d9a0e){const _0x2f0899=_0x441936,_0x4dd12b=_0x4d9a0e[_0x2f0899(0xe6)](_0x5c2020[_0x2f0899(0x103)]);this[_0x2f0899(0xf3)](this[_0x2f0899(0xe5)][_0x2f0899(0x105)],()=>_0x6623c1['toDisposable'](_0x4dd12b[_0x2f0899(0xf0)][_0x2f0899(0xf4)](_0x9c45fd=>{const _0x3e5262=_0x2f0899;_0x9c45fd['type']===_0x5c2020[_0x3e5262(0xe0)][_0x3e5262(0x105)]&&this[_0x3e5262(0xf9)](this[_0x3e5262(0xe5)][_0x3e5262(0x105)],_0x9c45fd[_0x3e5262(0xfe)]);}))),this[_0x2f0899(0xf3)](this[_0x2f0899(0xe5)][_0x2f0899(0xfc)],()=>_0x6623c1[_0x2f0899(0xfb)](_0x4dd12b[_0x2f0899(0xf0)][_0x2f0899(0xf4)](_0x48c238=>{const _0x3834e3=_0x2f0899;_0x48c238[_0x3834e3(0xfd)]===_0x5c2020[_0x3834e3(0xe0)]['McpToolCallReceived']&&this[_0x3834e3(0xf9)](this[_0x3834e3(0xe5)][_0x3834e3(0xfc)],_0x48c238['data']);}))),this['registerEventHandler'](this[_0x2f0899(0xe5)][_0x2f0899(0xf2)],()=>_0x6623c1[_0x2f0899(0xfb)](_0x4dd12b[_0x2f0899(0xf0)][_0x2f0899(0xf4)](_0x557204=>{const _0xd06840=_0x2f0899;_0x557204[_0xd06840(0xfd)]===_0x5c2020[_0xd06840(0xe0)]['McpToolCallExecuted']&&this[_0xd06840(0xf9)](this['Event'][_0xd06840(0xf2)],_0x557204[_0xd06840(0xfe)]);}))),this['registerEventHandler'](this[_0x2f0899(0xe5)]['McpToolCallFailed'],()=>_0x6623c1[_0x2f0899(0xfb)](_0x4dd12b[_0x2f0899(0xf0)][_0x2f0899(0xf4)](_0x6a6fbd=>{const _0x50ba5e=_0x2f0899;_0x6a6fbd[_0x50ba5e(0xfd)]===_0x5c2020[_0x50ba5e(0xe0)][_0x50ba5e(0xed)]&&this['fireEvent'](this[_0x50ba5e(0xe5)]['McpToolCallFailed'],_0x6a6fbd[_0x50ba5e(0xfe)]);})));}['validateMCPToolCall'](_0x32b9fa,_0x36f7cd){const _0x5874e7=_0x441936;return this['_injector'][_0x5874e7(0xe6)](_0x5c2020[_0x5874e7(0xe2)])[_0x5874e7(0xf1)](_0x32b9fa,_0x36f7cd);}['getAllMCPTools'](){const _0x30e7cc=_0x441936;return this[_0x30e7cc(0xfa)][_0x30e7cc(0xe6)](_0x5c2020['IMCPToolRegistry'])[_0x30e7cc(0xe8)]();}[_0x441936(0xf7)](_0x57385e,_0x5882a4){const _0x62def8=_0x441936;return this[_0x62def8(0xfa)]['get'](_0x5c2020[_0x62def8(0xe2)])['executeTool'](_0x57385e,_0x5882a4);}['getMCPConnectionStatus'](){const _0x2ad6c2=_0x441936;return this[_0x2ad6c2(0xfa)]['get'](_0x5c2020['MCPConnectionController'])[_0x2ad6c2(0xe7)]();}['connectMCP'](){const _0x3f501d=_0x441936;this[_0x3f501d(0xfa)][_0x3f501d(0xe6)](_0x5c2020[_0x3f501d(0xff)])['connect']();}[_0x441936(0xec)](){const _0x3fb8ec=_0x441936;this[_0x3fb8ec(0xfa)][_0x3fb8ec(0xe6)](_0x5c2020[_0x3fb8ec(0xff)])[_0x3fb8ec(0x10b)]();}}_0x2d016d[_0x441936(0x109)][_0x441936(0x108)](_0x3da9aa);}));
1
+ (function(_0x1be3db,_0x3e0deb){const _0x41a561=_0x5e10,_0x2500d6=_0x1be3db();while(!![]){try{const _0x3ae6dc=-parseInt(_0x41a561(0x1a7))/0x1+parseInt(_0x41a561(0x1b9))/0x2*(parseInt(_0x41a561(0x197))/0x3)+-parseInt(_0x41a561(0x1b6))/0x4*(-parseInt(_0x41a561(0x191))/0x5)+parseInt(_0x41a561(0x19a))/0x6*(-parseInt(_0x41a561(0x1a1))/0x7)+-parseInt(_0x41a561(0x1b3))/0x8*(-parseInt(_0x41a561(0x1bd))/0x9)+-parseInt(_0x41a561(0x1a0))/0xa+parseInt(_0x41a561(0x1b8))/0xb;if(_0x3ae6dc===_0x3e0deb)break;else _0x2500d6['push'](_0x2500d6['shift']());}catch(_0x5fae62){_0x2500d6['push'](_0x2500d6['shift']());}}}(_0x36ce,0xd55a8),function(_0xfbb96f,_0x2a8b3d){const _0x3f3734=_0x5e10;typeof exports=='object'&&typeof module<'u'?_0x2a8b3d(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x3f3734(0x1a6)&&define['amd']?define([_0x3f3734(0x1ba),_0x3f3734(0x1b1),_0x3f3734(0x1a9)],_0x2a8b3d):(_0xfbb96f=typeof globalThis<'u'?globalThis:_0xfbb96f||self,_0x2a8b3d(_0xfbb96f[_0x3f3734(0x1a3)],_0xfbb96f['UniverCoreFacade'],_0xfbb96f[_0x3f3734(0x1a4)]));}(this,function(_0x350ffc,_0x1bef5f,_0x183137){'use strict';const _0x5edc41=_0x5e10;class _0x3d54ca{get[_0x5edc41(0x1bc)](){const _0x5ac47a=_0x5edc41;return _0x350ffc[_0x5ac47a(0x1ae)][_0x5ac47a(0x1bc)];}get[_0x5edc41(0x1aa)](){const _0x348e87=_0x5edc41;return _0x350ffc[_0x348e87(0x1ae)][_0x348e87(0x1aa)];}get[_0x5edc41(0x1ad)](){const _0x54b6c1=_0x5edc41;return _0x350ffc[_0x54b6c1(0x1ae)][_0x54b6c1(0x1ad)];}get[_0x5edc41(0x196)](){const _0x316981=_0x5edc41;return _0x350ffc[_0x316981(0x1ae)]['McpToolCallFailed'];}}_0x1bef5f[_0x5edc41(0x199)][_0x5edc41(0x19b)](_0x3d54ca);class _0x1a2532 extends _0x1bef5f['FUniver']{['_initialize'](_0x4465a){const _0xbd8f48=_0x5edc41;this[_0xbd8f48(0x1af)](_0x4465a);}[_0x5edc41(0x1af)](_0x2be810){const _0x5e22a4=_0x5edc41,_0x355ec0=_0x2be810[_0x5e22a4(0x18f)](_0x350ffc[_0x5e22a4(0x1b0)]);this[_0x5e22a4(0x1a8)](this[_0x5e22a4(0x1b7)][_0x5e22a4(0x1bc)],()=>_0x183137[_0x5e22a4(0x198)](_0x355ec0[_0x5e22a4(0x190)][_0x5e22a4(0x1b5)](_0x3cba16=>{const _0x45296e=_0x5e22a4;_0x3cba16[_0x45296e(0x1a5)]===_0x350ffc[_0x45296e(0x1ae)][_0x45296e(0x1bc)]&&this['fireEvent'](this[_0x45296e(0x1b7)]['McpConnectionStatusChanged'],_0x3cba16['data']);}))),this[_0x5e22a4(0x1a8)](this[_0x5e22a4(0x1b7)][_0x5e22a4(0x1aa)],()=>_0x183137['toDisposable'](_0x355ec0[_0x5e22a4(0x190)][_0x5e22a4(0x1b5)](_0x2fec0a=>{const _0x195ee5=_0x5e22a4;_0x2fec0a[_0x195ee5(0x1a5)]===_0x350ffc[_0x195ee5(0x1ae)][_0x195ee5(0x1aa)]&&this[_0x195ee5(0x19f)](this['Event'][_0x195ee5(0x1aa)],_0x2fec0a[_0x195ee5(0x1b4)]);}))),this['registerEventHandler'](this[_0x5e22a4(0x1b7)][_0x5e22a4(0x1ad)],()=>_0x183137[_0x5e22a4(0x198)](_0x355ec0[_0x5e22a4(0x190)]['subscribe'](_0x18300f=>{const _0x29fb31=_0x5e22a4;_0x18300f[_0x29fb31(0x1a5)]===_0x350ffc[_0x29fb31(0x1ae)][_0x29fb31(0x1ad)]&&this[_0x29fb31(0x19f)](this[_0x29fb31(0x1b7)][_0x29fb31(0x1ad)],_0x18300f['data']);}))),this[_0x5e22a4(0x1a8)](this[_0x5e22a4(0x1b7)][_0x5e22a4(0x196)],()=>_0x183137[_0x5e22a4(0x198)](_0x355ec0[_0x5e22a4(0x190)][_0x5e22a4(0x1b5)](_0x358443=>{const _0xf2e59e=_0x5e22a4;_0x358443[_0xf2e59e(0x1a5)]===_0x350ffc[_0xf2e59e(0x1ae)][_0xf2e59e(0x196)]&&this[_0xf2e59e(0x19f)](this[_0xf2e59e(0x1b7)][_0xf2e59e(0x196)],_0x358443[_0xf2e59e(0x1b4)]);})));}[_0x5edc41(0x1ab)](_0x52ee19,_0x27cca5){const _0x58b4bb=_0x5edc41;return this[_0x58b4bb(0x1ac)][_0x58b4bb(0x18f)](_0x350ffc[_0x58b4bb(0x193)])[_0x58b4bb(0x195)](_0x52ee19,_0x27cca5);}['getAllMCPTools'](){const _0x386c64=_0x5edc41;return this[_0x386c64(0x1ac)][_0x386c64(0x18f)](_0x350ffc[_0x386c64(0x193)])['getAllTools']();}[_0x5edc41(0x19e)](_0x4ddc39,_0x37732a){const _0x4192e1=_0x5edc41;return this[_0x4192e1(0x1ac)][_0x4192e1(0x18f)](_0x350ffc[_0x4192e1(0x193)])[_0x4192e1(0x194)](_0x4ddc39,_0x37732a);}[_0x5edc41(0x1a2)](){const _0x427d64=_0x5edc41;return this[_0x427d64(0x1ac)][_0x427d64(0x18f)](_0x350ffc[_0x427d64(0x19d)])[_0x427d64(0x1bb)]();}[_0x5edc41(0x192)](){const _0x56d5b4=_0x5edc41;this[_0x56d5b4(0x1ac)][_0x56d5b4(0x18f)](_0x350ffc['MCPConnectionController'])[_0x56d5b4(0x19c)]();}[_0x5edc41(0x1b2)](){const _0x3ff83d=_0x5edc41;this[_0x3ff83d(0x1ac)][_0x3ff83d(0x18f)](_0x350ffc[_0x3ff83d(0x19d)])['disconnect']();}}_0x1bef5f['FUniver'][_0x5edc41(0x19b)](_0x1a2532);}));function _0x5e10(_0xc4b5bf,_0x3b37ec){_0xc4b5bf=_0xc4b5bf-0x18f;const _0x36ce2e=_0x36ce();let _0x5e10b3=_0x36ce2e[_0xc4b5bf];return _0x5e10b3;}function _0x36ce(){const _0x50c8a4=['subscribe','720584fwHaDZ','Event','18571388InVRZR','3836tmpiuK','@univerjs-pro/mcp','getConnectionStatus','McpConnectionStatusChanged','9fNeOpi','get','event$','35GGtwYe','connectMCP','IMCPToolRegistry','executeTool','validateToolCall','McpToolCallFailed','429lThlyX','toDisposable','FEventName','6VYxZtW','extend','connect','MCPConnectionController','callMCPTool','fireEvent','15023580qSSNPV','9352987HSHpvd','getMCPConnectionStatus','UniverProMcp','UniverCore','type','function','202384PCHVDG','registerEventHandler','@univerjs/core','McpToolCallReceived','validateMCPToolCall','_injector','McpToolCallExecuted','MCPEventId','_registerMCPFacadeEvents','MCPEventService','@univerjs/core/facade','disconnectMCP','5529400DWFCAj','data'];_0x36ce=function(){return _0x50c8a4;};return _0x36ce();}