@univerjs-pro/mcp 0.15.0-insiders.20260108-7b9120d → 0.15.0-insiders.20260110-48b77c8

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(_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();}
1
+ function _0x3878(){const _0x2f2e59=['McpConnectionStatusChanged','6612588BpJvLE','@univerjs/core','FUniver','extend','fireEvent','amd','data','getMCPConnectionStatus','_registerMCPFacadeEvents','MCPConnectionController','disconnect','toDisposable','8665168qSKMzK','11436JVdKWi','disconnectMCP','IMCPToolRegistry','6128635TsWBTT','MCPEventId','FEventName','function','subscribe','get','57099pFWbEh','type','getConnectionStatus','callMCPTool','McpToolCallExecuted','MCPEventService','connect','6014244lEMAgT','164dQCPbs','event$','validateToolCall','UniverCoreFacade','186vidWzT','1539582sYetfb','McpToolCallReceived','registerEventHandler','_injector','getAllMCPTools','@univerjs/core/facade','@univerjs-pro/mcp','UniverProMcp','getAllTools','connectMCP','validateMCPToolCall','McpToolCallFailed','_initialize','Event'];_0x3878=function(){return _0x2f2e59;};return _0x3878();}function _0x3f43(_0x391f00,_0x4fa268){_0x391f00=_0x391f00-0x1ed;const _0x387841=_0x3878();let _0x3f4387=_0x387841[_0x391f00];return _0x3f4387;}(function(_0x5d8b43,_0x30f684){const _0x397e5b=_0x3f43,_0x2e727e=_0x5d8b43();while(!![]){try{const _0x224811=parseInt(_0x397e5b(0x1fd))/0x1+parseInt(_0x397e5b(0x1f8))/0x2*(-parseInt(_0x397e5b(0x219))/0x3)+-parseInt(_0x397e5b(0x1f7))/0x4+parseInt(_0x397e5b(0x21c))/0x5+parseInt(_0x397e5b(0x1fc))/0x6*(parseInt(_0x397e5b(0x1f0))/0x7)+-parseInt(_0x397e5b(0x218))/0x8+parseInt(_0x397e5b(0x20c))/0x9;if(_0x224811===_0x30f684)break;else _0x2e727e['push'](_0x2e727e['shift']());}catch(_0x109ae6){_0x2e727e['push'](_0x2e727e['shift']());}}}(_0x3878,0xd0671),function(_0x167565,_0x22e51c){const _0x4b0849=_0x3f43;typeof exports=='object'&&typeof module<'u'?_0x22e51c(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x4b0849(0x1ed)&&define[_0x4b0849(0x211)]?define([_0x4b0849(0x203),_0x4b0849(0x202),_0x4b0849(0x20d)],_0x22e51c):(_0x167565=typeof globalThis<'u'?globalThis:_0x167565||self,_0x22e51c(_0x167565[_0x4b0849(0x204)],_0x167565[_0x4b0849(0x1fb)],_0x167565['UniverCore']));}(this,function(_0x2f7c62,_0x3a938c,_0x55494b){'use strict';const _0x3d6fbc=_0x3f43;class _0x461de5{get[_0x3d6fbc(0x20b)](){const _0x2cb608=_0x3d6fbc;return _0x2f7c62['MCPEventId'][_0x2cb608(0x20b)];}get[_0x3d6fbc(0x1fe)](){return _0x2f7c62['MCPEventId']['McpToolCallReceived'];}get[_0x3d6fbc(0x1f4)](){const _0x22932c=_0x3d6fbc;return _0x2f7c62[_0x22932c(0x21d)][_0x22932c(0x1f4)];}get['McpToolCallFailed'](){const _0x1e1c0f=_0x3d6fbc;return _0x2f7c62[_0x1e1c0f(0x21d)][_0x1e1c0f(0x208)];}}_0x3a938c[_0x3d6fbc(0x21e)]['extend'](_0x461de5);class _0x39c51d extends _0x3a938c[_0x3d6fbc(0x20e)]{[_0x3d6fbc(0x209)](_0x12c58b){const _0x3fa132=_0x3d6fbc;this[_0x3fa132(0x214)](_0x12c58b);}[_0x3d6fbc(0x214)](_0x47335d){const _0x2174f0=_0x3d6fbc,_0x2a5070=_0x47335d['get'](_0x2f7c62[_0x2174f0(0x1f5)]);this['registerEventHandler'](this[_0x2174f0(0x20a)][_0x2174f0(0x20b)],()=>_0x55494b[_0x2174f0(0x217)](_0x2a5070[_0x2174f0(0x1f9)][_0x2174f0(0x1ee)](_0x5b4562=>{const _0x47c671=_0x2174f0;_0x5b4562[_0x47c671(0x1f1)]===_0x2f7c62['MCPEventId'][_0x47c671(0x20b)]&&this['fireEvent'](this[_0x47c671(0x20a)][_0x47c671(0x20b)],_0x5b4562[_0x47c671(0x212)]);}))),this[_0x2174f0(0x1ff)](this[_0x2174f0(0x20a)][_0x2174f0(0x1fe)],()=>_0x55494b[_0x2174f0(0x217)](_0x2a5070[_0x2174f0(0x1f9)][_0x2174f0(0x1ee)](_0x2eb83b=>{const _0x112439=_0x2174f0;_0x2eb83b[_0x112439(0x1f1)]===_0x2f7c62[_0x112439(0x21d)][_0x112439(0x1fe)]&&this[_0x112439(0x210)](this['Event'][_0x112439(0x1fe)],_0x2eb83b[_0x112439(0x212)]);}))),this[_0x2174f0(0x1ff)](this['Event'][_0x2174f0(0x1f4)],()=>_0x55494b[_0x2174f0(0x217)](_0x2a5070[_0x2174f0(0x1f9)][_0x2174f0(0x1ee)](_0x293849=>{const _0x4e9934=_0x2174f0;_0x293849[_0x4e9934(0x1f1)]===_0x2f7c62[_0x4e9934(0x21d)]['McpToolCallExecuted']&&this[_0x4e9934(0x210)](this[_0x4e9934(0x20a)][_0x4e9934(0x1f4)],_0x293849[_0x4e9934(0x212)]);}))),this[_0x2174f0(0x1ff)](this[_0x2174f0(0x20a)][_0x2174f0(0x208)],()=>_0x55494b[_0x2174f0(0x217)](_0x2a5070[_0x2174f0(0x1f9)][_0x2174f0(0x1ee)](_0x2ba91e=>{const _0x5da2e1=_0x2174f0;_0x2ba91e['type']===_0x2f7c62[_0x5da2e1(0x21d)][_0x5da2e1(0x208)]&&this[_0x5da2e1(0x210)](this[_0x5da2e1(0x20a)][_0x5da2e1(0x208)],_0x2ba91e[_0x5da2e1(0x212)]);})));}[_0x3d6fbc(0x207)](_0x3674a8,_0x57af5e){const _0x442917=_0x3d6fbc;return this['_injector'][_0x442917(0x1ef)](_0x2f7c62[_0x442917(0x21b)])[_0x442917(0x1fa)](_0x3674a8,_0x57af5e);}[_0x3d6fbc(0x201)](){const _0x39616b=_0x3d6fbc;return this[_0x39616b(0x200)][_0x39616b(0x1ef)](_0x2f7c62[_0x39616b(0x21b)])[_0x39616b(0x205)]();}[_0x3d6fbc(0x1f3)](_0x30994a,_0x25ce0f){const _0x509505=_0x3d6fbc;return this[_0x509505(0x200)][_0x509505(0x1ef)](_0x2f7c62[_0x509505(0x21b)])['executeTool'](_0x30994a,_0x25ce0f);}[_0x3d6fbc(0x213)](){const _0x263879=_0x3d6fbc;return this[_0x263879(0x200)]['get'](_0x2f7c62[_0x263879(0x215)])[_0x263879(0x1f2)]();}[_0x3d6fbc(0x206)](){const _0x53703a=_0x3d6fbc;this[_0x53703a(0x200)][_0x53703a(0x1ef)](_0x2f7c62[_0x53703a(0x215)])[_0x53703a(0x1f6)]();}[_0x3d6fbc(0x21a)](){const _0x3e8f83=_0x3d6fbc;this[_0x3e8f83(0x200)][_0x3e8f83(0x1ef)](_0x2f7c62[_0x3e8f83(0x215)])[_0x3e8f83(0x216)]();}}_0x3a938c[_0x3d6fbc(0x20e)][_0x3d6fbc(0x20f)](_0x39c51d);}));