@univerjs-pro/mcp 0.10.10-experimental.20251010-3f807c5 → 0.10.10-nightly.202510170942

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 _0x192c(_0x45c74a,_0x9856a4){const _0x538cd3=_0x538c();return _0x192c=function(_0x192cbf,_0x16a408){_0x192cbf=_0x192cbf-0x15f;let _0x2ea084=_0x538cd3[_0x192cbf];return _0x2ea084;},_0x192c(_0x45c74a,_0x9856a4);}(function(_0x542474,_0x1c0c13){const _0x22e37d=_0x192c,_0x1a606a=_0x542474();while(!![]){try{const _0xbb0856=-parseInt(_0x22e37d(0x168))/0x1+parseInt(_0x22e37d(0x183))/0x2+parseInt(_0x22e37d(0x178))/0x3*(parseInt(_0x22e37d(0x160))/0x4)+-parseInt(_0x22e37d(0x181))/0x5+-parseInt(_0x22e37d(0x17e))/0x6*(-parseInt(_0x22e37d(0x172))/0x7)+parseInt(_0x22e37d(0x17f))/0x8+-parseInt(_0x22e37d(0x185))/0x9*(parseInt(_0x22e37d(0x16b))/0xa);if(_0xbb0856===_0x1c0c13)break;else _0x1a606a['push'](_0x1a606a['shift']());}catch(_0x579476){_0x1a606a['push'](_0x1a606a['shift']());}}}(_0x538c,0x66fa9),function(_0x80edec,_0x432864){const _0xbed0fe=_0x192c;typeof exports==_0xbed0fe(0x17a)&&typeof module<'u'?_0x432864(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0xbed0fe(0x167)&&define[_0xbed0fe(0x177)]?define([_0xbed0fe(0x15f),_0xbed0fe(0x163),_0xbed0fe(0x161)],_0x432864):(_0x80edec=typeof globalThis<'u'?globalThis:_0x80edec||self,_0x432864(_0x80edec[_0xbed0fe(0x17c)],_0x80edec['UniverCoreFacade'],_0x80edec[_0xbed0fe(0x18a)]));}(this,function(_0x515741,_0x485c58,_0x4de0f2){'use strict';const _0x24b061=_0x192c;class _0x171ed0{get['McpConnectionStatusChanged'](){const _0x281b65=_0x192c;return _0x515741['MCPEventId'][_0x281b65(0x16f)];}get[_0x24b061(0x184)](){const _0x5a3dc8=_0x24b061;return _0x515741[_0x5a3dc8(0x165)][_0x5a3dc8(0x184)];}get['McpToolCallExecuted'](){const _0x4df152=_0x24b061;return _0x515741[_0x4df152(0x165)][_0x4df152(0x173)];}get[_0x24b061(0x176)](){const _0x3aa08d=_0x24b061;return _0x515741[_0x3aa08d(0x165)][_0x3aa08d(0x176)];}}_0x485c58[_0x24b061(0x16c)][_0x24b061(0x189)](_0x171ed0);class _0x335304 extends _0x485c58[_0x24b061(0x16a)]{['_initialize'](_0x3b9f3e){const _0x1715a6=_0x24b061;this[_0x1715a6(0x171)](_0x3b9f3e);}[_0x24b061(0x171)](_0x54b8e7){const _0xc36550=_0x24b061,_0x56f5e8=_0x54b8e7['get'](_0x515741[_0xc36550(0x162)]);this[_0xc36550(0x174)](this[_0xc36550(0x17b)][_0xc36550(0x16f)],()=>_0x4de0f2[_0xc36550(0x188)](_0x56f5e8[_0xc36550(0x175)][_0xc36550(0x187)](_0x23fff9=>{const _0x20f144=_0xc36550;_0x23fff9['type']===_0x515741[_0x20f144(0x165)][_0x20f144(0x16f)]&&this[_0x20f144(0x18d)](this[_0x20f144(0x17b)][_0x20f144(0x16f)],_0x23fff9[_0x20f144(0x186)]);}))),this[_0xc36550(0x174)](this[_0xc36550(0x17b)][_0xc36550(0x184)],()=>_0x4de0f2[_0xc36550(0x188)](_0x56f5e8[_0xc36550(0x175)][_0xc36550(0x187)](_0x1a7062=>{const _0x113073=_0xc36550;_0x1a7062[_0x113073(0x166)]===_0x515741[_0x113073(0x165)][_0x113073(0x184)]&&this[_0x113073(0x18d)](this[_0x113073(0x17b)][_0x113073(0x184)],_0x1a7062[_0x113073(0x186)]);}))),this[_0xc36550(0x174)](this[_0xc36550(0x17b)][_0xc36550(0x173)],()=>_0x4de0f2[_0xc36550(0x188)](_0x56f5e8[_0xc36550(0x175)][_0xc36550(0x187)](_0x3b50e1=>{const _0x66ca2c=_0xc36550;_0x3b50e1['type']===_0x515741[_0x66ca2c(0x165)]['McpToolCallExecuted']&&this[_0x66ca2c(0x18d)](this[_0x66ca2c(0x17b)]['McpToolCallExecuted'],_0x3b50e1[_0x66ca2c(0x186)]);}))),this[_0xc36550(0x174)](this[_0xc36550(0x17b)][_0xc36550(0x176)],()=>_0x4de0f2[_0xc36550(0x188)](_0x56f5e8[_0xc36550(0x175)]['subscribe'](_0x42073f=>{const _0x4f1e37=_0xc36550;_0x42073f[_0x4f1e37(0x166)]===_0x515741[_0x4f1e37(0x165)][_0x4f1e37(0x176)]&&this[_0x4f1e37(0x18d)](this[_0x4f1e37(0x17b)][_0x4f1e37(0x176)],_0x42073f[_0x4f1e37(0x186)]);})));}[_0x24b061(0x179)](_0x2c1913,_0x4f7d8c){const _0x14a065=_0x24b061;return this[_0x14a065(0x170)][_0x14a065(0x18b)](_0x515741['IMCPToolRegistry'])[_0x14a065(0x169)](_0x2c1913,_0x4f7d8c);}['getAllMCPTools'](){const _0x24068e=_0x24b061;return this['_injector']['get'](_0x515741[_0x24068e(0x18c)])['getAllTools']();}[_0x24b061(0x164)](_0x36104d,_0x189774){const _0x1f6c21=_0x24b061;return this[_0x1f6c21(0x170)][_0x1f6c21(0x18b)](_0x515741[_0x1f6c21(0x18c)])['executeTool'](_0x36104d,_0x189774);}[_0x24b061(0x16e)](){const _0x4ce0f6=_0x24b061;return this['_injector'][_0x4ce0f6(0x18b)](_0x515741[_0x4ce0f6(0x17d)])['getConnectionStatus']();}[_0x24b061(0x16d)](){const _0x3e4949=_0x24b061;this[_0x3e4949(0x170)][_0x3e4949(0x18b)](_0x515741[_0x3e4949(0x17d)])[_0x3e4949(0x180)]();}[_0x24b061(0x182)](){const _0x19a626=_0x24b061;this[_0x19a626(0x170)][_0x19a626(0x18b)](_0x515741[_0x19a626(0x17d)])['disconnect']();}}_0x485c58[_0x24b061(0x16a)][_0x24b061(0x189)](_0x335304);}));function _0x538c(){const _0x134bf5=['validateMCPToolCall','object','Event','UniverProMcp','MCPConnectionController','6yftjHw','4399640qgWLQo','connect','1705115UDCCfA','disconnectMCP','1424076anQHTK','McpToolCallReceived','8841060SJrKdw','data','subscribe','toDisposable','extend','UniverCore','get','IMCPToolRegistry','fireEvent','@univerjs-pro/mcp','4ebrMEq','@univerjs/core','MCPEventService','@univerjs/core/facade','callMCPTool','MCPEventId','type','function','538005XpmEEb','validateToolCall','FUniver','10jSupHk','FEventName','connectMCP','getMCPConnectionStatus','McpConnectionStatusChanged','_injector','_registerMCPFacadeEvents','3483011LWlneg','McpToolCallExecuted','registerEventHandler','event$','McpToolCallFailed','amd','1570809QKXmbO'];_0x538c=function(){return _0x134bf5;};return _0x538c();}
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();}