@univerjs-pro/mcp 0.12.3 → 0.12.4-experimental.20251208-c4b8a44

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 _0x5241(_0x2633eb,_0x8b5f57){const _0x2ca763=_0x2ca7();return _0x5241=function(_0x524135,_0x510e0d){_0x524135=_0x524135-0x118;let _0x5bdd88=_0x2ca763[_0x524135];return _0x5bdd88;},_0x5241(_0x2633eb,_0x8b5f57);}(function(_0x1a771a,_0xe04575){const _0x509cf8=_0x5241,_0x3f195f=_0x1a771a();while(!![]){try{const _0x4dbe88=parseInt(_0x509cf8(0x139))/0x1+-parseInt(_0x509cf8(0x130))/0x2*(-parseInt(_0x509cf8(0x129))/0x3)+-parseInt(_0x509cf8(0x138))/0x4*(-parseInt(_0x509cf8(0x143))/0x5)+-parseInt(_0x509cf8(0x145))/0x6*(parseInt(_0x509cf8(0x136))/0x7)+-parseInt(_0x509cf8(0x13f))/0x8*(-parseInt(_0x509cf8(0x11a))/0x9)+parseInt(_0x509cf8(0x132))/0xa+-parseInt(_0x509cf8(0x124))/0xb;if(_0x4dbe88===_0xe04575)break;else _0x3f195f['push'](_0x3f195f['shift']());}catch(_0x5cbf65){_0x3f195f['push'](_0x3f195f['shift']());}}}(_0x2ca7,0x60c5e),function(_0x42d420,_0x12886a){const _0x4f325c=_0x5241;typeof exports==_0x4f325c(0x120)&&typeof module<'u'?_0x12886a(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define=='function'&&define[_0x4f325c(0x128)]?define([_0x4f325c(0x149),_0x4f325c(0x123),'@univerjs/core'],_0x12886a):(_0x42d420=typeof globalThis<'u'?globalThis:_0x42d420||self,_0x12886a(_0x42d420[_0x4f325c(0x146)],_0x42d420[_0x4f325c(0x118)],_0x42d420[_0x4f325c(0x12d)]));}(this,function(_0x266ae3,_0x586bb7,_0x3eb257){'use strict';const _0x563246=_0x5241;class _0x25e049{get[_0x563246(0x11f)](){const _0x4e069a=_0x563246;return _0x266ae3['MCPEventId'][_0x4e069a(0x11f)];}get['McpToolCallReceived'](){const _0x40539a=_0x563246;return _0x266ae3[_0x40539a(0x135)][_0x40539a(0x137)];}get[_0x563246(0x12c)](){const _0x10d2ed=_0x563246;return _0x266ae3[_0x10d2ed(0x135)][_0x10d2ed(0x12c)];}get[_0x563246(0x13a)](){const _0x1404a3=_0x563246;return _0x266ae3[_0x1404a3(0x135)][_0x1404a3(0x13a)];}}_0x586bb7[_0x563246(0x141)][_0x563246(0x142)](_0x25e049);class _0x346e75 extends _0x586bb7[_0x563246(0x12a)]{[_0x563246(0x134)](_0xfb776a){const _0x1fab7b=_0x563246;this[_0x1fab7b(0x131)](_0xfb776a);}[_0x563246(0x131)](_0x4b717b){const _0x50c96e=_0x563246,_0x2873dd=_0x4b717b[_0x50c96e(0x13d)](_0x266ae3[_0x50c96e(0x14a)]);this[_0x50c96e(0x140)](this[_0x50c96e(0x11e)][_0x50c96e(0x11f)],()=>_0x3eb257[_0x50c96e(0x11c)](_0x2873dd[_0x50c96e(0x12b)][_0x50c96e(0x133)](_0x412ad9=>{const _0x323e96=_0x50c96e;_0x412ad9[_0x323e96(0x13b)]===_0x266ae3['MCPEventId'][_0x323e96(0x11f)]&&this[_0x323e96(0x13c)](this[_0x323e96(0x11e)][_0x323e96(0x11f)],_0x412ad9[_0x323e96(0x11d)]);}))),this[_0x50c96e(0x140)](this[_0x50c96e(0x11e)][_0x50c96e(0x137)],()=>_0x3eb257[_0x50c96e(0x11c)](_0x2873dd[_0x50c96e(0x12b)][_0x50c96e(0x133)](_0x204cae=>{const _0x3accb4=_0x50c96e;_0x204cae['type']===_0x266ae3['MCPEventId'][_0x3accb4(0x137)]&&this['fireEvent'](this['Event']['McpToolCallReceived'],_0x204cae[_0x3accb4(0x11d)]);}))),this[_0x50c96e(0x140)](this[_0x50c96e(0x11e)][_0x50c96e(0x12c)],()=>_0x3eb257[_0x50c96e(0x11c)](_0x2873dd['event$']['subscribe'](_0x45310=>{const _0xda57ef=_0x50c96e;_0x45310['type']===_0x266ae3[_0xda57ef(0x135)][_0xda57ef(0x12c)]&&this['fireEvent'](this[_0xda57ef(0x11e)][_0xda57ef(0x12c)],_0x45310[_0xda57ef(0x11d)]);}))),this[_0x50c96e(0x140)](this['Event']['McpToolCallFailed'],()=>_0x3eb257[_0x50c96e(0x11c)](_0x2873dd[_0x50c96e(0x12b)][_0x50c96e(0x133)](_0x502553=>{const _0x1caca9=_0x50c96e;_0x502553[_0x1caca9(0x13b)]===_0x266ae3[_0x1caca9(0x135)][_0x1caca9(0x13a)]&&this[_0x1caca9(0x13c)](this['Event'][_0x1caca9(0x13a)],_0x502553['data']);})));}[_0x563246(0x125)](_0x26fe2f,_0x5718d0){const _0x348558=_0x563246;return this['_injector'][_0x348558(0x13d)](_0x266ae3[_0x348558(0x13e)])[_0x348558(0x144)](_0x26fe2f,_0x5718d0);}['getAllMCPTools'](){const _0x3c4d03=_0x563246;return this[_0x3c4d03(0x148)][_0x3c4d03(0x13d)](_0x266ae3[_0x3c4d03(0x13e)])[_0x3c4d03(0x122)]();}[_0x563246(0x12e)](_0x5e02b8,_0x233631){const _0x4f490c=_0x563246;return this[_0x4f490c(0x148)][_0x4f490c(0x13d)](_0x266ae3[_0x4f490c(0x13e)])[_0x4f490c(0x11b)](_0x5e02b8,_0x233631);}[_0x563246(0x147)](){const _0x293862=_0x563246;return this[_0x293862(0x148)][_0x293862(0x13d)](_0x266ae3[_0x293862(0x126)])[_0x293862(0x119)]();}[_0x563246(0x127)](){const _0x47cf50=_0x563246;this['_injector'][_0x47cf50(0x13d)](_0x266ae3[_0x47cf50(0x126)])['connect']();}[_0x563246(0x12f)](){const _0x688da9=_0x563246;this[_0x688da9(0x148)]['get'](_0x266ae3[_0x688da9(0x126)])[_0x688da9(0x121)]();}}_0x586bb7['FUniver'][_0x563246(0x142)](_0x346e75);}));function _0x2ca7(){const _0x496f8e=['validateMCPToolCall','MCPConnectionController','connectMCP','amd','42NApFrn','FUniver','event$','McpToolCallExecuted','UniverCore','callMCPTool','disconnectMCP','24516skIcsn','_registerMCPFacadeEvents','5136290IxNdFT','subscribe','_initialize','MCPEventId','1575126hZTwCh','McpToolCallReceived','1371196clNZfU','416909TMxjbp','McpToolCallFailed','type','fireEvent','get','IMCPToolRegistry','8800qxrSAN','registerEventHandler','FEventName','extend','10CoTEMP','validateToolCall','12TopzUp','UniverProMcp','getMCPConnectionStatus','_injector','@univerjs-pro/mcp','MCPEventService','UniverCoreFacade','getConnectionStatus','4527rXqCEh','executeTool','toDisposable','data','Event','McpConnectionStatusChanged','object','disconnect','getAllTools','@univerjs/core/facade','16440930wqHFlv'];_0x2ca7=function(){return _0x496f8e;};return _0x2ca7();}
1
+ (function(_0x2cdc1f,_0x3f2259){const _0x192ef8=_0x3943,_0x1069b2=_0x2cdc1f();while(!![]){try{const _0x396e57=-parseInt(_0x192ef8(0x204))/0x1+parseInt(_0x192ef8(0x215))/0x2+parseInt(_0x192ef8(0x20d))/0x3+parseInt(_0x192ef8(0x206))/0x4+parseInt(_0x192ef8(0x1f1))/0x5*(-parseInt(_0x192ef8(0x1fd))/0x6)+-parseInt(_0x192ef8(0x1f9))/0x7+-parseInt(_0x192ef8(0x216))/0x8*(-parseInt(_0x192ef8(0x1f4))/0x9);if(_0x396e57===_0x3f2259)break;else _0x1069b2['push'](_0x1069b2['shift']());}catch(_0x4e8ad8){_0x1069b2['push'](_0x1069b2['shift']());}}}(_0x24f6,0x749c8),function(_0x532025,_0xa93f56){const _0xbd466d=_0x3943;typeof exports=='object'&&typeof module<'u'?_0xa93f56(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0xbd466d(0x219)&&define[_0xbd466d(0x1fa)]?define([_0xbd466d(0x1ec),'@univerjs/core/facade',_0xbd466d(0x207)],_0xa93f56):(_0x532025=typeof globalThis<'u'?globalThis:_0x532025||self,_0xa93f56(_0x532025[_0xbd466d(0x210)],_0x532025[_0xbd466d(0x214)],_0x532025[_0xbd466d(0x20f)]));}(this,function(_0x522753,_0x2da985,_0x124ec2){'use strict';const _0x4b53f9=_0x3943;class _0x227e7d{get[_0x4b53f9(0x200)](){const _0x47a2e5=_0x4b53f9;return _0x522753['MCPEventId'][_0x47a2e5(0x200)];}get['McpToolCallReceived'](){const _0x1e7205=_0x4b53f9;return _0x522753[_0x1e7205(0x20c)]['McpToolCallReceived'];}get[_0x4b53f9(0x208)](){const _0x50fcf0=_0x4b53f9;return _0x522753[_0x50fcf0(0x20c)][_0x50fcf0(0x208)];}get[_0x4b53f9(0x211)](){const _0x5bab56=_0x4b53f9;return _0x522753[_0x5bab56(0x20c)][_0x5bab56(0x211)];}}_0x2da985[_0x4b53f9(0x1ef)][_0x4b53f9(0x205)](_0x227e7d);class _0x4fa088 extends _0x2da985['FUniver']{[_0x4b53f9(0x202)](_0x555e5a){const _0x1e6184=_0x4b53f9;this[_0x1e6184(0x1ff)](_0x555e5a);}[_0x4b53f9(0x1ff)](_0x18ba2c){const _0x4c6236=_0x4b53f9,_0x5b520a=_0x18ba2c[_0x4c6236(0x212)](_0x522753['MCPEventService']);this[_0x4c6236(0x1ee)](this[_0x4c6236(0x1f7)][_0x4c6236(0x200)],()=>_0x124ec2[_0x4c6236(0x1f2)](_0x5b520a['event$'][_0x4c6236(0x213)](_0x5f0236=>{const _0x589123=_0x4c6236;_0x5f0236[_0x589123(0x1f6)]===_0x522753[_0x589123(0x20c)][_0x589123(0x200)]&&this[_0x589123(0x217)](this[_0x589123(0x1f7)][_0x589123(0x200)],_0x5f0236[_0x589123(0x201)]);}))),this[_0x4c6236(0x1ee)](this['Event']['McpToolCallReceived'],()=>_0x124ec2[_0x4c6236(0x1f2)](_0x5b520a[_0x4c6236(0x218)][_0x4c6236(0x213)](_0x2cb3be=>{const _0x2c7b86=_0x4c6236;_0x2cb3be['type']===_0x522753[_0x2c7b86(0x20c)][_0x2c7b86(0x21a)]&&this[_0x2c7b86(0x217)](this['Event'][_0x2c7b86(0x21a)],_0x2cb3be[_0x2c7b86(0x201)]);}))),this[_0x4c6236(0x1ee)](this[_0x4c6236(0x1f7)][_0x4c6236(0x208)],()=>_0x124ec2[_0x4c6236(0x1f2)](_0x5b520a[_0x4c6236(0x218)]['subscribe'](_0x4139dd=>{const _0x15c138=_0x4c6236;_0x4139dd[_0x15c138(0x1f6)]===_0x522753['MCPEventId'][_0x15c138(0x208)]&&this['fireEvent'](this[_0x15c138(0x1f7)]['McpToolCallExecuted'],_0x4139dd['data']);}))),this[_0x4c6236(0x1ee)](this[_0x4c6236(0x1f7)][_0x4c6236(0x211)],()=>_0x124ec2[_0x4c6236(0x1f2)](_0x5b520a['event$'][_0x4c6236(0x213)](_0x4d41ea=>{const _0x1912c4=_0x4c6236;_0x4d41ea[_0x1912c4(0x1f6)]===_0x522753[_0x1912c4(0x20c)][_0x1912c4(0x211)]&&this[_0x1912c4(0x217)](this[_0x1912c4(0x1f7)][_0x1912c4(0x211)],_0x4d41ea[_0x1912c4(0x201)]);})));}[_0x4b53f9(0x1fb)](_0x488539,_0x33ab8c){const _0x362650=_0x4b53f9;return this['_injector'][_0x362650(0x212)](_0x522753['IMCPToolRegistry'])[_0x362650(0x203)](_0x488539,_0x33ab8c);}['getAllMCPTools'](){const _0x1e97e8=_0x4b53f9;return this[_0x1e97e8(0x1f8)][_0x1e97e8(0x212)](_0x522753[_0x1e97e8(0x1f5)])[_0x1e97e8(0x209)]();}[_0x4b53f9(0x20a)](_0x15a4f8,_0x524a20){const _0x439a7e=_0x4b53f9;return this['_injector']['get'](_0x522753[_0x439a7e(0x1f5)])['executeTool'](_0x15a4f8,_0x524a20);}[_0x4b53f9(0x1ed)](){const _0x50889e=_0x4b53f9;return this[_0x50889e(0x1f8)]['get'](_0x522753[_0x50889e(0x21b)])[_0x50889e(0x20e)]();}[_0x4b53f9(0x1fe)](){const _0x245c4c=_0x4b53f9;this[_0x245c4c(0x1f8)][_0x245c4c(0x212)](_0x522753[_0x245c4c(0x21b)])[_0x245c4c(0x1fc)]();}[_0x4b53f9(0x1f3)](){const _0x15b591=_0x4b53f9;this['_injector'][_0x15b591(0x212)](_0x522753[_0x15b591(0x21b)])[_0x15b591(0x20b)]();}}_0x2da985[_0x4b53f9(0x1f0)][_0x4b53f9(0x205)](_0x4fa088);}));function _0x3943(_0x503c2f,_0x105c10){_0x503c2f=_0x503c2f-0x1ec;const _0x24f607=_0x24f6();let _0x394316=_0x24f607[_0x503c2f];return _0x394316;}function _0x24f6(){const _0x2751fb=['disconnectMCP','225kmNjKF','IMCPToolRegistry','type','Event','_injector','4645368fBVEHO','amd','validateMCPToolCall','connect','30nmzPiV','connectMCP','_registerMCPFacadeEvents','McpConnectionStatusChanged','data','_initialize','validateToolCall','576074qzhIix','extend','1725176mMTlrI','@univerjs/core','McpToolCallExecuted','getAllTools','callMCPTool','disconnect','MCPEventId','934422NbnzHz','getConnectionStatus','UniverCore','UniverProMcp','McpToolCallFailed','get','subscribe','UniverCoreFacade','833070BaSsQF','407072neiJOm','fireEvent','event$','function','McpToolCallReceived','MCPConnectionController','@univerjs-pro/mcp','getMCPConnectionStatus','registerEventHandler','FEventName','FUniver','714065iieMry','toDisposable'];_0x24f6=function(){return _0x2751fb;};return _0x24f6();}