@univerjs-pro/mcp 0.15.0-insiders.20260108-47c73e3 → 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 _0xa2d7(){const _0x492992=['McpToolCallFailed','object','1029966yrAISZ','disconnectMCP','validateToolCall','138rEFAHN','FEventName','connect','1558ZSRNzM','IMCPToolRegistry','262805IGseSk','UniverCore','toDisposable','FUniver','1795708LdZpsM','MCPEventId','getConnectionStatus','connectMCP','disconnect','MCPConnectionController','event$','getMCPConnectionStatus','@univerjs/core','function','McpConnectionStatusChanged','fireEvent','_injector','McpToolCallReceived','amd','45882716vkTqds','45oSWjvm','get','2626016QFyoiv','registerEventHandler','McpToolCallExecuted','subscribe','4115000vdPfpJ','executeTool','UniverProMcp','getAllTools','type','3hrjomG','MCPEventService','UniverCoreFacade','_registerMCPFacadeEvents','Event','1849SWNybf','data'];_0xa2d7=function(){return _0x492992;};return _0xa2d7();}function _0x45a1(_0x24c6f6,_0xc1bdd6){_0x24c6f6=_0x24c6f6-0x189;const _0xa2d768=_0xa2d7();let _0x45a1b6=_0xa2d768[_0x24c6f6];return _0x45a1b6;}(function(_0x479fc1,_0x11c951){const _0x256273=_0x45a1,_0x47e129=_0x479fc1();while(!![]){try{const _0x31de48=parseInt(_0x256273(0x19f))/0x1*(parseInt(_0x256273(0x1a9))/0x2)+parseInt(_0x256273(0x19a))/0x3*(parseInt(_0x256273(0x1af))/0x4)+parseInt(_0x256273(0x1ab))/0x5*(parseInt(_0x256273(0x1a6))/0x6)+-parseInt(_0x256273(0x1a3))/0x7+parseInt(_0x256273(0x191))/0x8*(parseInt(_0x256273(0x18f))/0x9)+parseInt(_0x256273(0x195))/0xa+-parseInt(_0x256273(0x18e))/0xb;if(_0x31de48===_0x11c951)break;else _0x47e129['push'](_0x47e129['shift']());}catch(_0x14e215){_0x47e129['push'](_0x47e129['shift']());}}}(_0xa2d7,0xcb49b),function(_0x165281,_0x4671af){const _0x47d6a0=_0x45a1;typeof exports==_0x47d6a0(0x1a2)&&typeof module<'u'?_0x4671af(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x47d6a0(0x1b8)&&define[_0x47d6a0(0x18d)]?define(['@univerjs-pro/mcp','@univerjs/core/facade',_0x47d6a0(0x1b7)],_0x4671af):(_0x165281=typeof globalThis<'u'?globalThis:_0x165281||self,_0x4671af(_0x165281[_0x47d6a0(0x197)],_0x165281[_0x47d6a0(0x19c)],_0x165281[_0x47d6a0(0x1ac)]));}(this,function(_0x376600,_0x2c0998,_0x3282e1){'use strict';const _0x53b2d0=_0x45a1;class _0x4bb1f8{get[_0x53b2d0(0x189)](){const _0x1de4ef=_0x53b2d0;return _0x376600[_0x1de4ef(0x1b0)][_0x1de4ef(0x189)];}get[_0x53b2d0(0x18c)](){const _0x2b2d12=_0x53b2d0;return _0x376600[_0x2b2d12(0x1b0)][_0x2b2d12(0x18c)];}get[_0x53b2d0(0x193)](){const _0x15b8de=_0x53b2d0;return _0x376600[_0x15b8de(0x1b0)]['McpToolCallExecuted'];}get['McpToolCallFailed'](){const _0x33d5a6=_0x53b2d0;return _0x376600['MCPEventId'][_0x33d5a6(0x1a1)];}}_0x2c0998[_0x53b2d0(0x1a7)]['extend'](_0x4bb1f8);class _0x2c7019 extends _0x2c0998['FUniver']{['_initialize'](_0x3e0c65){this['_registerMCPFacadeEvents'](_0x3e0c65);}[_0x53b2d0(0x19d)](_0x4d5fab){const _0x37e11f=_0x53b2d0,_0xbfd8f9=_0x4d5fab[_0x37e11f(0x190)](_0x376600[_0x37e11f(0x19b)]);this['registerEventHandler'](this[_0x37e11f(0x19e)]['McpConnectionStatusChanged'],()=>_0x3282e1[_0x37e11f(0x1ad)](_0xbfd8f9['event$'][_0x37e11f(0x194)](_0xbe8845=>{const _0x4bcdd2=_0x37e11f;_0xbe8845['type']===_0x376600['MCPEventId'][_0x4bcdd2(0x189)]&&this[_0x4bcdd2(0x18a)](this['Event'][_0x4bcdd2(0x189)],_0xbe8845[_0x4bcdd2(0x1a0)]);}))),this[_0x37e11f(0x192)](this[_0x37e11f(0x19e)]['McpToolCallReceived'],()=>_0x3282e1[_0x37e11f(0x1ad)](_0xbfd8f9['event$'][_0x37e11f(0x194)](_0x339e58=>{const _0x5aa924=_0x37e11f;_0x339e58['type']===_0x376600[_0x5aa924(0x1b0)][_0x5aa924(0x18c)]&&this[_0x5aa924(0x18a)](this[_0x5aa924(0x19e)]['McpToolCallReceived'],_0x339e58[_0x5aa924(0x1a0)]);}))),this[_0x37e11f(0x192)](this['Event']['McpToolCallExecuted'],()=>_0x3282e1[_0x37e11f(0x1ad)](_0xbfd8f9['event$'][_0x37e11f(0x194)](_0x4a4ba9=>{const _0xff1eec=_0x37e11f;_0x4a4ba9[_0xff1eec(0x199)]===_0x376600['MCPEventId'][_0xff1eec(0x193)]&&this[_0xff1eec(0x18a)](this[_0xff1eec(0x19e)][_0xff1eec(0x193)],_0x4a4ba9['data']);}))),this[_0x37e11f(0x192)](this[_0x37e11f(0x19e)][_0x37e11f(0x1a1)],()=>_0x3282e1[_0x37e11f(0x1ad)](_0xbfd8f9[_0x37e11f(0x1b5)]['subscribe'](_0x2da56d=>{const _0xc455a1=_0x37e11f;_0x2da56d['type']===_0x376600[_0xc455a1(0x1b0)][_0xc455a1(0x1a1)]&&this[_0xc455a1(0x18a)](this[_0xc455a1(0x19e)][_0xc455a1(0x1a1)],_0x2da56d[_0xc455a1(0x1a0)]);})));}['validateMCPToolCall'](_0x4df771,_0x4e05c5){const _0x5cc8ae=_0x53b2d0;return this[_0x5cc8ae(0x18b)][_0x5cc8ae(0x190)](_0x376600[_0x5cc8ae(0x1aa)])[_0x5cc8ae(0x1a5)](_0x4df771,_0x4e05c5);}['getAllMCPTools'](){const _0xee2d9a=_0x53b2d0;return this['_injector'][_0xee2d9a(0x190)](_0x376600[_0xee2d9a(0x1aa)])[_0xee2d9a(0x198)]();}['callMCPTool'](_0x118e90,_0x2fd360){const _0x108fcb=_0x53b2d0;return this[_0x108fcb(0x18b)][_0x108fcb(0x190)](_0x376600['IMCPToolRegistry'])[_0x108fcb(0x196)](_0x118e90,_0x2fd360);}[_0x53b2d0(0x1b6)](){const _0x717f04=_0x53b2d0;return this[_0x717f04(0x18b)][_0x717f04(0x190)](_0x376600[_0x717f04(0x1b4)])[_0x717f04(0x1b1)]();}[_0x53b2d0(0x1b2)](){const _0x454547=_0x53b2d0;this[_0x454547(0x18b)]['get'](_0x376600[_0x454547(0x1b4)])[_0x454547(0x1a8)]();}[_0x53b2d0(0x1a4)](){const _0x2c7e2a=_0x53b2d0;this[_0x2c7e2a(0x18b)][_0x2c7e2a(0x190)](_0x376600[_0x2c7e2a(0x1b4)])[_0x2c7e2a(0x1b3)]();}}_0x2c0998[_0x53b2d0(0x1ae)]['extend'](_0x2c7019);}));
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();}