@univerjs-pro/mcp 0.10.10-nightly.202510180327 → 0.10.11

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 _0x4fbb(_0x4aa9ff,_0x11b6c0){const _0x1c56b6=_0x1c56();return _0x4fbb=function(_0x4fbba5,_0x1bfc69){_0x4fbba5=_0x4fbba5-0x12b;let _0x1d893a=_0x1c56b6[_0x4fbba5];return _0x1d893a;},_0x4fbb(_0x4aa9ff,_0x11b6c0);}(function(_0x514c52,_0x5dac51){const _0x5d0562=_0x4fbb,_0x5d9f11=_0x514c52();while(!![]){try{const _0x2f84bf=parseInt(_0x5d0562(0x145))/0x1+-parseInt(_0x5d0562(0x13e))/0x2+parseInt(_0x5d0562(0x134))/0x3+parseInt(_0x5d0562(0x13a))/0x4*(-parseInt(_0x5d0562(0x136))/0x5)+parseInt(_0x5d0562(0x12e))/0x6*(-parseInt(_0x5d0562(0x132))/0x7)+parseInt(_0x5d0562(0x147))/0x8+parseInt(_0x5d0562(0x133))/0x9;if(_0x2f84bf===_0x5dac51)break;else _0x5d9f11['push'](_0x5d9f11['shift']());}catch(_0x380516){_0x5d9f11['push'](_0x5d9f11['shift']());}}}(_0x1c56,0xd908f),function(_0x16cf04,_0x3228f4){const _0x452a8f=_0x4fbb;typeof exports=='object'&&typeof module<'u'?_0x3228f4(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define=='function'&&define[_0x452a8f(0x143)]?define([_0x452a8f(0x149),'@univerjs/core/facade',_0x452a8f(0x12b)],_0x3228f4):(_0x16cf04=typeof globalThis<'u'?globalThis:_0x16cf04||self,_0x3228f4(_0x16cf04[_0x452a8f(0x141)],_0x16cf04[_0x452a8f(0x150)],_0x16cf04[_0x452a8f(0x148)]));}(this,function(_0x136b08,_0xd4af4d,_0x462dc0){'use strict';const _0xea2aad=_0x4fbb;class _0x15740e{get[_0xea2aad(0x14c)](){const _0x2ce65e=_0xea2aad;return _0x136b08[_0x2ce65e(0x13d)][_0x2ce65e(0x14c)];}get['McpToolCallReceived'](){const _0x18c39f=_0xea2aad;return _0x136b08[_0x18c39f(0x13d)][_0x18c39f(0x138)];}get[_0xea2aad(0x14e)](){const _0x72ac2e=_0xea2aad;return _0x136b08['MCPEventId'][_0x72ac2e(0x14e)];}get[_0xea2aad(0x144)](){const _0x531261=_0xea2aad;return _0x136b08[_0x531261(0x13d)][_0x531261(0x144)];}}_0xd4af4d[_0xea2aad(0x130)]['extend'](_0x15740e);class _0x5d6b36 extends _0xd4af4d[_0xea2aad(0x14a)]{[_0xea2aad(0x14b)](_0x3ab5da){this['_registerMCPFacadeEvents'](_0x3ab5da);}['_registerMCPFacadeEvents'](_0x3c1b05){const _0x1c3980=_0xea2aad,_0x3c6da6=_0x3c1b05[_0x1c3980(0x12f)](_0x136b08['MCPEventService']);this[_0x1c3980(0x12d)](this['Event'][_0x1c3980(0x14c)],()=>_0x462dc0['toDisposable'](_0x3c6da6[_0x1c3980(0x13f)][_0x1c3980(0x151)](_0x24b0f1=>{const _0x5b579f=_0x1c3980;_0x24b0f1[_0x5b579f(0x12c)]===_0x136b08[_0x5b579f(0x13d)][_0x5b579f(0x14c)]&&this[_0x5b579f(0x155)](this[_0x5b579f(0x13b)][_0x5b579f(0x14c)],_0x24b0f1[_0x5b579f(0x14d)]);}))),this[_0x1c3980(0x12d)](this['Event'][_0x1c3980(0x138)],()=>_0x462dc0['toDisposable'](_0x3c6da6[_0x1c3980(0x13f)][_0x1c3980(0x151)](_0x136082=>{const _0x41cef8=_0x1c3980;_0x136082['type']===_0x136b08[_0x41cef8(0x13d)][_0x41cef8(0x138)]&&this['fireEvent'](this[_0x41cef8(0x13b)][_0x41cef8(0x138)],_0x136082[_0x41cef8(0x14d)]);}))),this[_0x1c3980(0x12d)](this[_0x1c3980(0x13b)][_0x1c3980(0x14e)],()=>_0x462dc0[_0x1c3980(0x137)](_0x3c6da6[_0x1c3980(0x13f)]['subscribe'](_0x3fd142=>{const _0x31f073=_0x1c3980;_0x3fd142[_0x31f073(0x12c)]===_0x136b08[_0x31f073(0x13d)]['McpToolCallExecuted']&&this[_0x31f073(0x155)](this['Event']['McpToolCallExecuted'],_0x3fd142[_0x31f073(0x14d)]);}))),this[_0x1c3980(0x12d)](this[_0x1c3980(0x13b)][_0x1c3980(0x144)],()=>_0x462dc0[_0x1c3980(0x137)](_0x3c6da6[_0x1c3980(0x13f)][_0x1c3980(0x151)](_0xc551c9=>{const _0xf07979=_0x1c3980;_0xc551c9[_0xf07979(0x12c)]===_0x136b08[_0xf07979(0x13d)][_0xf07979(0x144)]&&this[_0xf07979(0x155)](this[_0xf07979(0x13b)][_0xf07979(0x144)],_0xc551c9['data']);})));}['validateMCPToolCall'](_0x40169b,_0x1798c8){const _0x2ba1a0=_0xea2aad;return this[_0x2ba1a0(0x131)][_0x2ba1a0(0x12f)](_0x136b08[_0x2ba1a0(0x153)])[_0x2ba1a0(0x140)](_0x40169b,_0x1798c8);}['getAllMCPTools'](){const _0x54c59f=_0xea2aad;return this['_injector']['get'](_0x136b08[_0x54c59f(0x153)])[_0x54c59f(0x142)]();}['callMCPTool'](_0x25fd5e,_0x36dce5){const _0x1ba940=_0xea2aad;return this[_0x1ba940(0x131)][_0x1ba940(0x12f)](_0x136b08[_0x1ba940(0x153)])['executeTool'](_0x25fd5e,_0x36dce5);}[_0xea2aad(0x139)](){const _0x258365=_0xea2aad;return this[_0x258365(0x131)][_0x258365(0x12f)](_0x136b08[_0x258365(0x13c)])['getConnectionStatus']();}[_0xea2aad(0x135)](){const _0x704372=_0xea2aad;this[_0x704372(0x131)][_0x704372(0x12f)](_0x136b08[_0x704372(0x13c)])[_0x704372(0x146)]();}[_0xea2aad(0x154)](){const _0x424a25=_0xea2aad;this[_0x424a25(0x131)][_0x424a25(0x12f)](_0x136b08[_0x424a25(0x13c)])[_0x424a25(0x152)]();}}_0xd4af4d[_0xea2aad(0x14a)][_0xea2aad(0x14f)](_0x5d6b36);}));function _0x1c56(){const _0x366956=['2025246SICrHD','connectMCP','531890qAFexH','toDisposable','McpToolCallReceived','getMCPConnectionStatus','56FayRAN','Event','MCPConnectionController','MCPEventId','2828362fWsShD','event$','validateToolCall','UniverProMcp','getAllTools','amd','McpToolCallFailed','954934QFsHHg','connect','1657448KDEcjd','UniverCore','@univerjs-pro/mcp','FUniver','_initialize','McpConnectionStatusChanged','data','McpToolCallExecuted','extend','UniverCoreFacade','subscribe','disconnect','IMCPToolRegistry','disconnectMCP','fireEvent','@univerjs/core','type','registerEventHandler','1646226PaOyVQ','get','FEventName','_injector','7mRJAlY','20066598iLOdKK'];_0x1c56=function(){return _0x366956;};return _0x1c56();}
1
+ function _0xd13d(_0x23afca,_0x5c2cdf){const _0x1d9436=_0x1d94();return _0xd13d=function(_0xd13de6,_0x18de42){_0xd13de6=_0xd13de6-0xc1;let _0x44d653=_0x1d9436[_0xd13de6];return _0x44d653;},_0xd13d(_0x23afca,_0x5c2cdf);}(function(_0x428bd5,_0x240ee6){const _0x139101=_0xd13d,_0x231965=_0x428bd5();while(!![]){try{const _0xab1213=parseInt(_0x139101(0xcb))/0x1*(parseInt(_0x139101(0xe9))/0x2)+-parseInt(_0x139101(0xc9))/0x3+parseInt(_0x139101(0xed))/0x4+-parseInt(_0x139101(0xeb))/0x5+parseInt(_0x139101(0xe1))/0x6*(-parseInt(_0x139101(0xd6))/0x7)+parseInt(_0x139101(0xc2))/0x8+-parseInt(_0x139101(0xc1))/0x9*(parseInt(_0x139101(0xd2))/0xa);if(_0xab1213===_0x240ee6)break;else _0x231965['push'](_0x231965['shift']());}catch(_0x1106e4){_0x231965['push'](_0x231965['shift']());}}}(_0x1d94,0x4419d),function(_0x1c9930,_0x5cb852){const _0x6ac8b7=_0xd13d;typeof exports==_0x6ac8b7(0xdb)&&typeof module<'u'?_0x5cb852(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define=='function'&&define[_0x6ac8b7(0xce)]?define(['@univerjs-pro/mcp',_0x6ac8b7(0xe2),_0x6ac8b7(0xc7)],_0x5cb852):(_0x1c9930=typeof globalThis<'u'?globalThis:_0x1c9930||self,_0x5cb852(_0x1c9930[_0x6ac8b7(0xea)],_0x1c9930[_0x6ac8b7(0xdf)],_0x1c9930['UniverCore']));}(this,function(_0x5145d2,_0x2ab97c,_0x527db8){'use strict';const _0x219191=_0xd13d;class _0x1bb8bc{get[_0x219191(0xee)](){const _0x4a1c96=_0x219191;return _0x5145d2['MCPEventId'][_0x4a1c96(0xee)];}get[_0x219191(0xe3)](){return _0x5145d2['MCPEventId']['McpToolCallReceived'];}get[_0x219191(0xd8)](){const _0x3166db=_0x219191;return _0x5145d2[_0x3166db(0xe7)][_0x3166db(0xd8)];}get[_0x219191(0xe5)](){const _0x1af08b=_0x219191;return _0x5145d2[_0x1af08b(0xe7)][_0x1af08b(0xe5)];}}_0x2ab97c[_0x219191(0xc3)][_0x219191(0xd1)](_0x1bb8bc);class _0x3ff95 extends _0x2ab97c[_0x219191(0xd7)]{[_0x219191(0xde)](_0x45c02b){const _0x1422a3=_0x219191;this[_0x1422a3(0xd3)](_0x45c02b);}['_registerMCPFacadeEvents'](_0x229867){const _0x35637c=_0x219191,_0x3086c1=_0x229867[_0x35637c(0xd0)](_0x5145d2[_0x35637c(0xdd)]);this[_0x35637c(0xe8)](this[_0x35637c(0xdc)]['McpConnectionStatusChanged'],()=>_0x527db8[_0x35637c(0xe4)](_0x3086c1[_0x35637c(0xe0)][_0x35637c(0xc4)](_0x37ea26=>{const _0x197b4f=_0x35637c;_0x37ea26['type']===_0x5145d2[_0x197b4f(0xe7)]['McpConnectionStatusChanged']&&this['fireEvent'](this[_0x197b4f(0xdc)][_0x197b4f(0xee)],_0x37ea26[_0x197b4f(0xda)]);}))),this['registerEventHandler'](this[_0x35637c(0xdc)]['McpToolCallReceived'],()=>_0x527db8[_0x35637c(0xe4)](_0x3086c1[_0x35637c(0xe0)][_0x35637c(0xc4)](_0xc0f755=>{const _0x197da9=_0x35637c;_0xc0f755[_0x197da9(0xcc)]===_0x5145d2[_0x197da9(0xe7)][_0x197da9(0xe3)]&&this['fireEvent'](this['Event'][_0x197da9(0xe3)],_0xc0f755['data']);}))),this[_0x35637c(0xe8)](this[_0x35637c(0xdc)]['McpToolCallExecuted'],()=>_0x527db8['toDisposable'](_0x3086c1['event$'][_0x35637c(0xc4)](_0x399ca7=>{const _0x179bc1=_0x35637c;_0x399ca7[_0x179bc1(0xcc)]===_0x5145d2[_0x179bc1(0xe7)]['McpToolCallExecuted']&&this[_0x179bc1(0xc5)](this[_0x179bc1(0xdc)]['McpToolCallExecuted'],_0x399ca7[_0x179bc1(0xda)]);}))),this[_0x35637c(0xe8)](this['Event'][_0x35637c(0xe5)],()=>_0x527db8['toDisposable'](_0x3086c1[_0x35637c(0xe0)][_0x35637c(0xc4)](_0x4af759=>{const _0x523c49=_0x35637c;_0x4af759[_0x523c49(0xcc)]===_0x5145d2[_0x523c49(0xe7)][_0x523c49(0xe5)]&&this['fireEvent'](this[_0x523c49(0xdc)][_0x523c49(0xe5)],_0x4af759[_0x523c49(0xda)]);})));}[_0x219191(0xd4)](_0x4a3f01,_0x3a98b2){const _0x293bc8=_0x219191;return this[_0x293bc8(0xcd)][_0x293bc8(0xd0)](_0x5145d2[_0x293bc8(0xc8)])[_0x293bc8(0xe6)](_0x4a3f01,_0x3a98b2);}[_0x219191(0xca)](){const _0x43f072=_0x219191;return this[_0x43f072(0xcd)]['get'](_0x5145d2[_0x43f072(0xc8)])[_0x43f072(0xec)]();}[_0x219191(0xc6)](_0x2d9b00,_0x410f86){const _0x13d4c3=_0x219191;return this[_0x13d4c3(0xcd)][_0x13d4c3(0xd0)](_0x5145d2[_0x13d4c3(0xc8)])['executeTool'](_0x2d9b00,_0x410f86);}['getMCPConnectionStatus'](){const _0x1b7030=_0x219191;return this[_0x1b7030(0xcd)][_0x1b7030(0xd0)](_0x5145d2[_0x1b7030(0xd5)])['getConnectionStatus']();}['connectMCP'](){const _0x400b2e=_0x219191;this['_injector'][_0x400b2e(0xd0)](_0x5145d2[_0x400b2e(0xd5)])['connect']();}[_0x219191(0xd9)](){const _0x27e22e=_0x219191;this[_0x27e22e(0xcd)][_0x27e22e(0xd0)](_0x5145d2['MCPConnectionController'])[_0x27e22e(0xcf)]();}}_0x2ab97c[_0x219191(0xd7)][_0x219191(0xd1)](_0x3ff95);}));function _0x1d94(){const _0x170fb6=['UniverProMcp','1504100MUcpwc','getAllTools','1912164mbQhCX','McpConnectionStatusChanged','4149KPDOOU','3136344EujVjX','FEventName','subscribe','fireEvent','callMCPTool','@univerjs/core','IMCPToolRegistry','1168884czgtGt','getAllMCPTools','27sGIHdu','type','_injector','amd','disconnect','get','extend','2260WfZqYq','_registerMCPFacadeEvents','validateMCPToolCall','MCPConnectionController','286573MvpHzH','FUniver','McpToolCallExecuted','disconnectMCP','data','object','Event','MCPEventService','_initialize','UniverCoreFacade','event$','30ozITTv','@univerjs/core/facade','McpToolCallReceived','toDisposable','McpToolCallFailed','validateToolCall','MCPEventId','registerEventHandler','30236URMQyV'];_0x1d94=function(){return _0x170fb6;};return _0x1d94();}