@univerjs-pro/mcp 0.10.12-nightly.202510251119 → 0.10.13

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(_0x43113b,_0x767c44){const _0x1564e1=_0x1b5c,_0x473bed=_0x43113b();while(!![]){try{const _0x522ae0=parseInt(_0x1564e1(0x19b))/0x1+-parseInt(_0x1564e1(0x186))/0x2+-parseInt(_0x1564e1(0x1a6))/0x3+-parseInt(_0x1564e1(0x188))/0x4+parseInt(_0x1564e1(0x187))/0x5+-parseInt(_0x1564e1(0x1a9))/0x6*(parseInt(_0x1564e1(0x184))/0x7)+-parseInt(_0x1564e1(0x1a3))/0x8*(-parseInt(_0x1564e1(0x19c))/0x9);if(_0x522ae0===_0x767c44)break;else _0x473bed['push'](_0x473bed['shift']());}catch(_0x22e0c9){_0x473bed['push'](_0x473bed['shift']());}}}(_0x25db,0x89308),function(_0x53b16b,_0x5578b0){const _0x2dffc5=_0x1b5c;typeof exports==_0x2dffc5(0x17b)&&typeof module<'u'?_0x5578b0(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define=='function'&&define[_0x2dffc5(0x17d)]?define([_0x2dffc5(0x196),_0x2dffc5(0x192),_0x2dffc5(0x198)],_0x5578b0):(_0x53b16b=typeof globalThis<'u'?globalThis:_0x53b16b||self,_0x5578b0(_0x53b16b[_0x2dffc5(0x199)],_0x53b16b[_0x2dffc5(0x1a5)],_0x53b16b[_0x2dffc5(0x18f)]));}(this,function(_0x26c751,_0x2ffe21,_0x488f44){'use strict';const _0x39bae5=_0x1b5c;class _0x291322{get[_0x39bae5(0x18d)](){const _0x3d7d3e=_0x39bae5;return _0x26c751[_0x3d7d3e(0x19d)][_0x3d7d3e(0x18d)];}get[_0x39bae5(0x185)](){const _0x2f1287=_0x39bae5;return _0x26c751[_0x2f1287(0x19d)][_0x2f1287(0x185)];}get[_0x39bae5(0x17e)](){const _0x42d7d2=_0x39bae5;return _0x26c751[_0x42d7d2(0x19d)][_0x42d7d2(0x17e)];}get[_0x39bae5(0x18e)](){const _0x5b6019=_0x39bae5;return _0x26c751[_0x5b6019(0x19d)][_0x5b6019(0x18e)];}}_0x2ffe21[_0x39bae5(0x17a)][_0x39bae5(0x1a2)](_0x291322);class _0x1ece07 extends _0x2ffe21['FUniver']{[_0x39bae5(0x19f)](_0x887c74){const _0x24dbe5=_0x39bae5;this[_0x24dbe5(0x180)](_0x887c74);}[_0x39bae5(0x180)](_0x4ab87f){const _0x221e90=_0x39bae5,_0x4d5306=_0x4ab87f[_0x221e90(0x18a)](_0x26c751['MCPEventService']);this[_0x221e90(0x17c)](this['Event'][_0x221e90(0x18d)],()=>_0x488f44['toDisposable'](_0x4d5306[_0x221e90(0x181)][_0x221e90(0x1a1)](_0x270d08=>{const _0x14723c=_0x221e90;_0x270d08[_0x14723c(0x190)]===_0x26c751[_0x14723c(0x19d)][_0x14723c(0x18d)]&&this['fireEvent'](this[_0x14723c(0x1a4)][_0x14723c(0x18d)],_0x270d08[_0x14723c(0x19e)]);}))),this['registerEventHandler'](this[_0x221e90(0x1a4)][_0x221e90(0x185)],()=>_0x488f44[_0x221e90(0x19a)](_0x4d5306[_0x221e90(0x181)]['subscribe'](_0x24018c=>{const _0x65ced=_0x221e90;_0x24018c['type']===_0x26c751[_0x65ced(0x19d)][_0x65ced(0x185)]&&this[_0x65ced(0x197)](this[_0x65ced(0x1a4)][_0x65ced(0x185)],_0x24018c[_0x65ced(0x19e)]);}))),this[_0x221e90(0x17c)](this[_0x221e90(0x1a4)][_0x221e90(0x17e)],()=>_0x488f44['toDisposable'](_0x4d5306['event$'][_0x221e90(0x1a1)](_0x5b4c71=>{const _0x4ab57a=_0x221e90;_0x5b4c71[_0x4ab57a(0x190)]===_0x26c751[_0x4ab57a(0x19d)]['McpToolCallExecuted']&&this[_0x4ab57a(0x197)](this[_0x4ab57a(0x1a4)][_0x4ab57a(0x17e)],_0x5b4c71[_0x4ab57a(0x19e)]);}))),this[_0x221e90(0x17c)](this[_0x221e90(0x1a4)][_0x221e90(0x18e)],()=>_0x488f44[_0x221e90(0x19a)](_0x4d5306['event$'][_0x221e90(0x1a1)](_0x1a9cdd=>{const _0x43bffc=_0x221e90;_0x1a9cdd[_0x43bffc(0x190)]===_0x26c751[_0x43bffc(0x19d)][_0x43bffc(0x18e)]&&this[_0x43bffc(0x197)](this[_0x43bffc(0x1a4)][_0x43bffc(0x18e)],_0x1a9cdd['data']);})));}[_0x39bae5(0x18b)](_0xbe3af4,_0x303d77){const _0x13e133=_0x39bae5;return this[_0x13e133(0x18c)][_0x13e133(0x18a)](_0x26c751['IMCPToolRegistry'])['validateToolCall'](_0xbe3af4,_0x303d77);}[_0x39bae5(0x182)](){const _0x3dbe3a=_0x39bae5;return this['_injector'][_0x3dbe3a(0x18a)](_0x26c751[_0x3dbe3a(0x189)])[_0x3dbe3a(0x183)]();}[_0x39bae5(0x17f)](_0x50b1a2,_0x2489b7){const _0x33b882=_0x39bae5;return this['_injector'][_0x33b882(0x18a)](_0x26c751[_0x33b882(0x189)])[_0x33b882(0x193)](_0x50b1a2,_0x2489b7);}[_0x39bae5(0x1a0)](){const _0x6083e0=_0x39bae5;return this[_0x6083e0(0x18c)][_0x6083e0(0x18a)](_0x26c751[_0x6083e0(0x1a8)])[_0x6083e0(0x194)]();}[_0x39bae5(0x191)](){const _0xb73a22=_0x39bae5;this[_0xb73a22(0x18c)][_0xb73a22(0x18a)](_0x26c751[_0xb73a22(0x1a8)])['connect']();}[_0x39bae5(0x195)](){const _0x2e057a=_0x39bae5;this[_0x2e057a(0x18c)]['get'](_0x26c751[_0x2e057a(0x1a8)])['disconnect']();}}_0x2ffe21[_0x39bae5(0x1a7)][_0x39bae5(0x1a2)](_0x1ece07);}));function _0x1b5c(_0x4da5c1,_0x3c9062){const _0x25dbda=_0x25db();return _0x1b5c=function(_0x1b5cb8,_0x4ee4a9){_0x1b5cb8=_0x1b5cb8-0x17a;let _0x3f2bd7=_0x25dbda[_0x1b5cb8];return _0x3f2bd7;},_0x1b5c(_0x4da5c1,_0x3c9062);}function _0x25db(){const _0x4a893a=['@univerjs/core','UniverProMcp','toDisposable','1222BfNtDa','99tVLOXw','MCPEventId','data','_initialize','getMCPConnectionStatus','subscribe','extend','797072HELhok','Event','UniverCoreFacade','968334BtRAxy','FUniver','MCPConnectionController','746454EPJWTD','FEventName','object','registerEventHandler','amd','McpToolCallExecuted','callMCPTool','_registerMCPFacadeEvents','event$','getAllMCPTools','getAllTools','14XCPEQy','McpToolCallReceived','398666mYOKcI','3298505lddbZv','1696160OeXMVS','IMCPToolRegistry','get','validateMCPToolCall','_injector','McpConnectionStatusChanged','McpToolCallFailed','UniverCore','type','connectMCP','@univerjs/core/facade','executeTool','getConnectionStatus','disconnectMCP','@univerjs-pro/mcp','fireEvent'];_0x25db=function(){return _0x4a893a;};return _0x25db();}
1
+ function _0x4d63(_0x5d3806,_0x26ff2f){const _0x720a84=_0x720a();return _0x4d63=function(_0x4d631a,_0x37afa4){_0x4d631a=_0x4d631a-0xd1;let _0x294907=_0x720a84[_0x4d631a];return _0x294907;},_0x4d63(_0x5d3806,_0x26ff2f);}function _0x720a(){const _0x2d8897=['McpToolCallReceived','McpToolCallExecuted','13058kJUaxd','209Ntbjpw','validateMCPToolCall','extend','1364484kyHmUt','284NGRUlv','getAllTools','5698338EUwrtQ','7HGizZe','Event','object','UniverProMcp','disconnectMCP','callMCPTool','@univerjs/core/facade','1295224nkzEBO','MCPEventService','2873055sqyCfZ','_registerMCPFacadeEvents','25524zhGKFm','405378ELhhwF','FUniver','@univerjs-pro/mcp','57sSHVgE','toDisposable','_initialize','_injector','registerEventHandler','connect','connectMCP','fireEvent','data','disconnect','McpToolCallFailed','MCPEventId','function','MCPConnectionController','subscribe','110crvryi','IMCPToolRegistry','event$','McpConnectionStatusChanged','getMCPConnectionStatus','type','get'];_0x720a=function(){return _0x2d8897;};return _0x720a();}(function(_0x4e756d,_0x2f6806){const _0x2f8d10=_0x4d63,_0x78bc92=_0x4e756d();while(!![]){try{const _0x39ee41=-parseInt(_0x2f8d10(0xf3))/0x1*(parseInt(_0x2f8d10(0xdc))/0x2)+parseInt(_0x2f8d10(0xef))/0x3*(-parseInt(_0x2f8d10(0xe1))/0x4)+parseInt(_0x2f8d10(0xed))/0x5+parseInt(_0x2f8d10(0xe3))/0x6*(-parseInt(_0x2f8d10(0xe4))/0x7)+parseInt(_0x2f8d10(0xeb))/0x8+-parseInt(_0x2f8d10(0xf0))/0x9*(parseInt(_0x2f8d10(0xd3))/0xa)+parseInt(_0x2f8d10(0xdd))/0xb*(parseInt(_0x2f8d10(0xe0))/0xc);if(_0x39ee41===_0x2f6806)break;else _0x78bc92['push'](_0x78bc92['shift']());}catch(_0x466d82){_0x78bc92['push'](_0x78bc92['shift']());}}}(_0x720a,0x74195),function(_0x584250,_0x5c1a7c){const _0x15eba3=_0x4d63;typeof exports==_0x15eba3(0xe6)&&typeof module<'u'?_0x5c1a7c(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x15eba3(0xff)&&define['amd']?define([_0x15eba3(0xf2),_0x15eba3(0xea),'@univerjs/core'],_0x5c1a7c):(_0x584250=typeof globalThis<'u'?globalThis:_0x584250||self,_0x5c1a7c(_0x584250[_0x15eba3(0xe7)],_0x584250['UniverCoreFacade'],_0x584250['UniverCore']));}(this,function(_0x1a9b5d,_0x2ba270,_0x4dbc0e){'use strict';const _0x17b341=_0x4d63;class _0x1bd628{get[_0x17b341(0xd6)](){const _0x24b3ed=_0x17b341;return _0x1a9b5d['MCPEventId'][_0x24b3ed(0xd6)];}get[_0x17b341(0xda)](){return _0x1a9b5d['MCPEventId']['McpToolCallReceived'];}get[_0x17b341(0xdb)](){const _0x4b6aca=_0x17b341;return _0x1a9b5d[_0x4b6aca(0xfe)][_0x4b6aca(0xdb)];}get[_0x17b341(0xfd)](){const _0x8f055a=_0x17b341;return _0x1a9b5d['MCPEventId'][_0x8f055a(0xfd)];}}_0x2ba270['FEventName'][_0x17b341(0xdf)](_0x1bd628);class _0xe8adb3 extends _0x2ba270['FUniver']{[_0x17b341(0xf5)](_0x2a0853){const _0x23d128=_0x17b341;this[_0x23d128(0xee)](_0x2a0853);}[_0x17b341(0xee)](_0x52c9de){const _0x2429a0=_0x17b341,_0x5543bc=_0x52c9de[_0x2429a0(0xd9)](_0x1a9b5d[_0x2429a0(0xec)]);this['registerEventHandler'](this[_0x2429a0(0xe5)]['McpConnectionStatusChanged'],()=>_0x4dbc0e['toDisposable'](_0x5543bc[_0x2429a0(0xd5)][_0x2429a0(0xd2)](_0x53d7b7=>{const _0x109696=_0x2429a0;_0x53d7b7[_0x109696(0xd8)]===_0x1a9b5d[_0x109696(0xfe)][_0x109696(0xd6)]&&this[_0x109696(0xfa)](this[_0x109696(0xe5)][_0x109696(0xd6)],_0x53d7b7['data']);}))),this['registerEventHandler'](this[_0x2429a0(0xe5)][_0x2429a0(0xda)],()=>_0x4dbc0e['toDisposable'](_0x5543bc[_0x2429a0(0xd5)][_0x2429a0(0xd2)](_0x1237cf=>{const _0x2b5599=_0x2429a0;_0x1237cf[_0x2b5599(0xd8)]===_0x1a9b5d[_0x2b5599(0xfe)][_0x2b5599(0xda)]&&this[_0x2b5599(0xfa)](this['Event']['McpToolCallReceived'],_0x1237cf[_0x2b5599(0xfb)]);}))),this[_0x2429a0(0xf7)](this[_0x2429a0(0xe5)]['McpToolCallExecuted'],()=>_0x4dbc0e['toDisposable'](_0x5543bc[_0x2429a0(0xd5)][_0x2429a0(0xd2)](_0x3bacd0=>{const _0x99dab6=_0x2429a0;_0x3bacd0[_0x99dab6(0xd8)]===_0x1a9b5d[_0x99dab6(0xfe)][_0x99dab6(0xdb)]&&this['fireEvent'](this[_0x99dab6(0xe5)][_0x99dab6(0xdb)],_0x3bacd0[_0x99dab6(0xfb)]);}))),this['registerEventHandler'](this[_0x2429a0(0xe5)][_0x2429a0(0xfd)],()=>_0x4dbc0e[_0x2429a0(0xf4)](_0x5543bc[_0x2429a0(0xd5)][_0x2429a0(0xd2)](_0x236a9d=>{const _0x1e8d5b=_0x2429a0;_0x236a9d[_0x1e8d5b(0xd8)]===_0x1a9b5d['MCPEventId']['McpToolCallFailed']&&this[_0x1e8d5b(0xfa)](this[_0x1e8d5b(0xe5)][_0x1e8d5b(0xfd)],_0x236a9d['data']);})));}[_0x17b341(0xde)](_0x4db0a3,_0x4ed2a8){const _0x1f830f=_0x17b341;return this[_0x1f830f(0xf6)][_0x1f830f(0xd9)](_0x1a9b5d[_0x1f830f(0xd4)])['validateToolCall'](_0x4db0a3,_0x4ed2a8);}['getAllMCPTools'](){const _0x4081cb=_0x17b341;return this[_0x4081cb(0xf6)][_0x4081cb(0xd9)](_0x1a9b5d['IMCPToolRegistry'])[_0x4081cb(0xe2)]();}[_0x17b341(0xe9)](_0x597a18,_0x2f1f98){const _0x1412fa=_0x17b341;return this[_0x1412fa(0xf6)][_0x1412fa(0xd9)](_0x1a9b5d[_0x1412fa(0xd4)])['executeTool'](_0x597a18,_0x2f1f98);}[_0x17b341(0xd7)](){const _0x2c19bb=_0x17b341;return this[_0x2c19bb(0xf6)][_0x2c19bb(0xd9)](_0x1a9b5d[_0x2c19bb(0xd1)])['getConnectionStatus']();}[_0x17b341(0xf9)](){const _0x3b0506=_0x17b341;this[_0x3b0506(0xf6)][_0x3b0506(0xd9)](_0x1a9b5d[_0x3b0506(0xd1)])[_0x3b0506(0xf8)]();}[_0x17b341(0xe8)](){const _0x1fcffb=_0x17b341;this[_0x1fcffb(0xf6)][_0x1fcffb(0xd9)](_0x1a9b5d[_0x1fcffb(0xd1)])[_0x1fcffb(0xfc)]();}}_0x2ba270[_0x17b341(0xf1)]['extend'](_0xe8adb3);}));