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

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 _0xd687(_0x370747,_0x3b56bf){const _0x1ac302=_0x1ac3();return _0xd687=function(_0xd68700,_0x4394cc){_0xd68700=_0xd68700-0x1c5;let _0x5260a4=_0x1ac302[_0xd68700];return _0x5260a4;},_0xd687(_0x370747,_0x3b56bf);}(function(_0x11f6a8,_0x4f2fab){const _0x535d00=_0xd687,_0x4a5a16=_0x11f6a8();while(!![]){try{const _0x31a541=parseInt(_0x535d00(0x1d6))/0x1*(parseInt(_0x535d00(0x1de))/0x2)+-parseInt(_0x535d00(0x1e3))/0x3*(-parseInt(_0x535d00(0x1d4))/0x4)+-parseInt(_0x535d00(0x1db))/0x5*(parseInt(_0x535d00(0x1cc))/0x6)+-parseInt(_0x535d00(0x1c6))/0x7+-parseInt(_0x535d00(0x1ef))/0x8+parseInt(_0x535d00(0x1e9))/0x9+-parseInt(_0x535d00(0x1d3))/0xa*(-parseInt(_0x535d00(0x1ed))/0xb);if(_0x31a541===_0x4f2fab)break;else _0x4a5a16['push'](_0x4a5a16['shift']());}catch(_0x35670a){_0x4a5a16['push'](_0x4a5a16['shift']());}}}(_0x1ac3,0xcfc78),function(_0x1d9ce5,_0x284616){const _0x21d353=_0xd687;typeof exports==_0x21d353(0x1dc)&&typeof module<'u'?_0x284616(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x21d353(0x1e8)&&define[_0x21d353(0x1e0)]?define([_0x21d353(0x1e1),_0x21d353(0x1f2),'@univerjs/core'],_0x284616):(_0x1d9ce5=typeof globalThis<'u'?globalThis:_0x1d9ce5||self,_0x284616(_0x1d9ce5[_0x21d353(0x1d0)],_0x1d9ce5[_0x21d353(0x1ec)],_0x1d9ce5[_0x21d353(0x1eb)]));}(this,function(_0x48aa6e,_0x370805,_0x33ac61){'use strict';const _0x155979=_0xd687;class _0x5455ff{get[_0x155979(0x1dd)](){const _0x5bec8c=_0x155979;return _0x48aa6e[_0x5bec8c(0x1d1)]['McpConnectionStatusChanged'];}get[_0x155979(0x1cb)](){const _0x4681b5=_0x155979;return _0x48aa6e[_0x4681b5(0x1d1)][_0x4681b5(0x1cb)];}get[_0x155979(0x1cf)](){const _0x1fdac9=_0x155979;return _0x48aa6e[_0x1fdac9(0x1d1)]['McpToolCallExecuted'];}get['McpToolCallFailed'](){const _0x102968=_0x155979;return _0x48aa6e[_0x102968(0x1d1)]['McpToolCallFailed'];}}_0x370805[_0x155979(0x1c5)]['extend'](_0x5455ff);class _0x3ba020 extends _0x370805[_0x155979(0x1ea)]{['_initialize'](_0x53f99c){const _0x29345e=_0x155979;this[_0x29345e(0x1ce)](_0x53f99c);}['_registerMCPFacadeEvents'](_0x3af41e){const _0xba1764=_0x155979,_0x35a944=_0x3af41e['get'](_0x48aa6e['MCPEventService']);this[_0xba1764(0x1f3)](this[_0xba1764(0x1c9)]['McpConnectionStatusChanged'],()=>_0x33ac61[_0xba1764(0x1e7)](_0x35a944['event$'][_0xba1764(0x1c8)](_0x3a4231=>{const _0x472ebf=_0xba1764;_0x3a4231['type']===_0x48aa6e['MCPEventId'][_0x472ebf(0x1dd)]&&this[_0x472ebf(0x1d5)](this[_0x472ebf(0x1c9)]['McpConnectionStatusChanged'],_0x3a4231[_0x472ebf(0x1f0)]);}))),this[_0xba1764(0x1f3)](this[_0xba1764(0x1c9)]['McpToolCallReceived'],()=>_0x33ac61[_0xba1764(0x1e7)](_0x35a944[_0xba1764(0x1df)][_0xba1764(0x1c8)](_0x2145ea=>{const _0x51b6e5=_0xba1764;_0x2145ea[_0x51b6e5(0x1d2)]===_0x48aa6e[_0x51b6e5(0x1d1)]['McpToolCallReceived']&&this['fireEvent'](this[_0x51b6e5(0x1c9)]['McpToolCallReceived'],_0x2145ea[_0x51b6e5(0x1f0)]);}))),this[_0xba1764(0x1f3)](this[_0xba1764(0x1c9)][_0xba1764(0x1cf)],()=>_0x33ac61['toDisposable'](_0x35a944['event$']['subscribe'](_0x1c6b3a=>{const _0x54a7cd=_0xba1764;_0x1c6b3a[_0x54a7cd(0x1d2)]===_0x48aa6e[_0x54a7cd(0x1d1)]['McpToolCallExecuted']&&this['fireEvent'](this[_0x54a7cd(0x1c9)]['McpToolCallExecuted'],_0x1c6b3a[_0x54a7cd(0x1f0)]);}))),this['registerEventHandler'](this[_0xba1764(0x1c9)][_0xba1764(0x1e5)],()=>_0x33ac61[_0xba1764(0x1e7)](_0x35a944[_0xba1764(0x1df)][_0xba1764(0x1c8)](_0x4b9ab7=>{const _0x38361e=_0xba1764;_0x4b9ab7[_0x38361e(0x1d2)]===_0x48aa6e[_0x38361e(0x1d1)][_0x38361e(0x1e5)]&&this[_0x38361e(0x1d5)](this['Event'][_0x38361e(0x1e5)],_0x4b9ab7['data']);})));}[_0x155979(0x1ee)](_0x818043,_0x57fcb8){const _0x44ccc0=_0x155979;return this[_0x44ccc0(0x1d9)][_0x44ccc0(0x1e2)](_0x48aa6e[_0x44ccc0(0x1e6)])[_0x44ccc0(0x1e4)](_0x818043,_0x57fcb8);}['getAllMCPTools'](){const _0x33b7fa=_0x155979;return this[_0x33b7fa(0x1d9)][_0x33b7fa(0x1e2)](_0x48aa6e[_0x33b7fa(0x1e6)])[_0x33b7fa(0x1d8)]();}['callMCPTool'](_0x3d2e40,_0x108039){const _0x26d40b=_0x155979;return this[_0x26d40b(0x1d9)]['get'](_0x48aa6e['IMCPToolRegistry'])[_0x26d40b(0x1f1)](_0x3d2e40,_0x108039);}[_0x155979(0x1c7)](){const _0x396d0b=_0x155979;return this['_injector'][_0x396d0b(0x1e2)](_0x48aa6e[_0x396d0b(0x1ca)])[_0x396d0b(0x1cd)]();}['connectMCP'](){const _0x25657f=_0x155979;this['_injector'][_0x25657f(0x1e2)](_0x48aa6e['MCPConnectionController'])[_0x25657f(0x1f4)]();}[_0x155979(0x1d7)](){const _0x318205=_0x155979;this['_injector'][_0x318205(0x1e2)](_0x48aa6e['MCPConnectionController'])['disconnect']();}}_0x370805[_0x155979(0x1ea)][_0x155979(0x1da)](_0x3ba020);}));function _0x1ac3(){const _0x4ae275=['957vcMRAJ','validateMCPToolCall','12781112PBfeyH','data','executeTool','@univerjs/core/facade','registerEventHandler','connect','FEventName','6852622YstRPK','getMCPConnectionStatus','subscribe','Event','MCPConnectionController','McpToolCallReceived','6Wlsaag','getConnectionStatus','_registerMCPFacadeEvents','McpToolCallExecuted','UniverProMcp','MCPEventId','type','174710BMlxlk','16yFtbSe','fireEvent','62939OXTHkq','disconnectMCP','getAllTools','_injector','extend','8231305zQucdj','object','McpConnectionStatusChanged','50znVAvi','event$','amd','@univerjs-pro/mcp','get','890958mJoYHP','validateToolCall','McpToolCallFailed','IMCPToolRegistry','toDisposable','function','7132626FQWlBp','FUniver','UniverCore','UniverCoreFacade'];_0x1ac3=function(){return _0x4ae275;};return _0x1ac3();}
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();}