@univerjs-pro/mcp 0.12.1 → 0.12.2-experimental.20251201-5b27b55

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 _0x4ebf(_0x1c76f6,_0x47eaa2){const _0x90026d=_0x9002();return _0x4ebf=function(_0x4ebf95,_0x43b7a7){_0x4ebf95=_0x4ebf95-0x1e2;let _0x5a605c=_0x90026d[_0x4ebf95];return _0x5a605c;},_0x4ebf(_0x1c76f6,_0x47eaa2);}(function(_0x521feb,_0x590d2b){const _0x4fc90c=_0x4ebf,_0x470563=_0x521feb();while(!![]){try{const _0x44347f=parseInt(_0x4fc90c(0x1e2))/0x1+-parseInt(_0x4fc90c(0x1e9))/0x2+parseInt(_0x4fc90c(0x1f3))/0x3+-parseInt(_0x4fc90c(0x1e8))/0x4+-parseInt(_0x4fc90c(0x207))/0x5+parseInt(_0x4fc90c(0x210))/0x6*(parseInt(_0x4fc90c(0x1fd))/0x7)+-parseInt(_0x4fc90c(0x20c))/0x8*(-parseInt(_0x4fc90c(0x202))/0x9);if(_0x44347f===_0x590d2b)break;else _0x470563['push'](_0x470563['shift']());}catch(_0x373c1a){_0x470563['push'](_0x470563['shift']());}}}(_0x9002,0xaf764),function(_0x5f3dc8,_0x46d6c9){const _0x34c06e=_0x4ebf;typeof exports==_0x34c06e(0x1f6)&&typeof module<'u'?_0x46d6c9(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define=='function'&&define['amd']?define([_0x34c06e(0x1eb),_0x34c06e(0x1fc),_0x34c06e(0x1f0)],_0x46d6c9):(_0x5f3dc8=typeof globalThis<'u'?globalThis:_0x5f3dc8||self,_0x46d6c9(_0x5f3dc8[_0x34c06e(0x20a)],_0x5f3dc8[_0x34c06e(0x1ea)],_0x5f3dc8[_0x34c06e(0x200)]));}(this,function(_0x22660c,_0x59670f,_0x2476cb){'use strict';const _0x279ff8=_0x4ebf;class _0x50090c{get['McpConnectionStatusChanged'](){const _0x5885b9=_0x4ebf;return _0x22660c[_0x5885b9(0x1e4)][_0x5885b9(0x205)];}get[_0x279ff8(0x1fe)](){const _0x11bc45=_0x279ff8;return _0x22660c['MCPEventId'][_0x11bc45(0x1fe)];}get['McpToolCallExecuted'](){const _0x163704=_0x279ff8;return _0x22660c[_0x163704(0x1e4)][_0x163704(0x20f)];}get['McpToolCallFailed'](){const _0x24caaf=_0x279ff8;return _0x22660c[_0x24caaf(0x1e4)][_0x24caaf(0x1e5)];}}_0x59670f[_0x279ff8(0x201)]['extend'](_0x50090c);class _0x1a5e81 extends _0x59670f[_0x279ff8(0x20d)]{[_0x279ff8(0x1ff)](_0x1ca48e){const _0x53a5a6=_0x279ff8;this[_0x53a5a6(0x208)](_0x1ca48e);}[_0x279ff8(0x208)](_0x278516){const _0x1c19ee=_0x279ff8,_0x31954a=_0x278516[_0x1c19ee(0x1f7)](_0x22660c['MCPEventService']);this[_0x1c19ee(0x1e6)](this[_0x1c19ee(0x1ee)][_0x1c19ee(0x205)],()=>_0x2476cb['toDisposable'](_0x31954a[_0x1c19ee(0x1ed)][_0x1c19ee(0x1f1)](_0x42bcb2=>{const _0xb724f2=_0x1c19ee;_0x42bcb2[_0xb724f2(0x1f8)]===_0x22660c[_0xb724f2(0x1e4)][_0xb724f2(0x205)]&&this[_0xb724f2(0x203)](this[_0xb724f2(0x1ee)][_0xb724f2(0x205)],_0x42bcb2['data']);}))),this[_0x1c19ee(0x1e6)](this[_0x1c19ee(0x1ee)][_0x1c19ee(0x1fe)],()=>_0x2476cb[_0x1c19ee(0x206)](_0x31954a['event$']['subscribe'](_0x206d12=>{const _0x5634cd=_0x1c19ee;_0x206d12['type']===_0x22660c[_0x5634cd(0x1e4)][_0x5634cd(0x1fe)]&&this[_0x5634cd(0x203)](this['Event'][_0x5634cd(0x1fe)],_0x206d12[_0x5634cd(0x1f9)]);}))),this[_0x1c19ee(0x1e6)](this[_0x1c19ee(0x1ee)][_0x1c19ee(0x20f)],()=>_0x2476cb[_0x1c19ee(0x206)](_0x31954a['event$'][_0x1c19ee(0x1f1)](_0x168e8e=>{const _0x4bfe4e=_0x1c19ee;_0x168e8e[_0x4bfe4e(0x1f8)]===_0x22660c['MCPEventId'][_0x4bfe4e(0x20f)]&&this[_0x4bfe4e(0x203)](this['Event'][_0x4bfe4e(0x20f)],_0x168e8e[_0x4bfe4e(0x1f9)]);}))),this['registerEventHandler'](this['Event']['McpToolCallFailed'],()=>_0x2476cb['toDisposable'](_0x31954a[_0x1c19ee(0x1ed)]['subscribe'](_0x5474cd=>{const _0x142375=_0x1c19ee;_0x5474cd[_0x142375(0x1f8)]===_0x22660c['MCPEventId'][_0x142375(0x1e5)]&&this[_0x142375(0x203)](this[_0x142375(0x1ee)][_0x142375(0x1e5)],_0x5474cd[_0x142375(0x1f9)]);})));}[_0x279ff8(0x20e)](_0x5a603e,_0xe99e98){const _0x334ec0=_0x279ff8;return this['_injector']['get'](_0x22660c[_0x334ec0(0x1ef)])[_0x334ec0(0x1f2)](_0x5a603e,_0xe99e98);}[_0x279ff8(0x1e3)](){const _0x1ae253=_0x279ff8;return this['_injector'][_0x1ae253(0x1f7)](_0x22660c[_0x1ae253(0x1ef)])[_0x1ae253(0x1e7)]();}[_0x279ff8(0x1fa)](_0x3ce64d,_0x5c0a03){const _0x839b74=_0x279ff8;return this[_0x839b74(0x1f4)]['get'](_0x22660c['IMCPToolRegistry'])['executeTool'](_0x3ce64d,_0x5c0a03);}['getMCPConnectionStatus'](){const _0x207af1=_0x279ff8;return this[_0x207af1(0x1f4)][_0x207af1(0x1f7)](_0x22660c['MCPConnectionController'])[_0x207af1(0x20b)]();}['connectMCP'](){const _0x24cf5e=_0x279ff8;this[_0x24cf5e(0x1f4)][_0x24cf5e(0x1f7)](_0x22660c['MCPConnectionController'])[_0x24cf5e(0x204)]();}[_0x279ff8(0x1ec)](){const _0x56f249=_0x279ff8;this['_injector'][_0x56f249(0x1f7)](_0x22660c[_0x56f249(0x209)])[_0x56f249(0x1f5)]();}}_0x59670f[_0x279ff8(0x20d)][_0x279ff8(0x1fb)](_0x1a5e81);}));function _0x9002(){const _0x19c458=['UniverCore','FEventName','2614266Qxulqm','fireEvent','connect','McpConnectionStatusChanged','toDisposable','2812035GJXbwW','_registerMCPFacadeEvents','MCPConnectionController','UniverProMcp','getConnectionStatus','64ZvqoSS','FUniver','validateMCPToolCall','McpToolCallExecuted','12414ymOKKM','781768bQzsEF','getAllMCPTools','MCPEventId','McpToolCallFailed','registerEventHandler','getAllTools','4576764vMQkha','2022016tsdkyP','UniverCoreFacade','@univerjs-pro/mcp','disconnectMCP','event$','Event','IMCPToolRegistry','@univerjs/core','subscribe','validateToolCall','191511HNoFFH','_injector','disconnect','object','get','type','data','callMCPTool','extend','@univerjs/core/facade','903qzgPfR','McpToolCallReceived','_initialize'];_0x9002=function(){return _0x19c458;};return _0x9002();}
1
+ function _0x4605(_0x507af3,_0x567440){const _0x52aac7=_0x52aa();return _0x4605=function(_0x4605db,_0x436a9e){_0x4605db=_0x4605db-0x138;let _0x1585e4=_0x52aac7[_0x4605db];return _0x1585e4;},_0x4605(_0x507af3,_0x567440);}function _0x52aa(){const _0x1b4742=['toDisposable','event$','disconnectMCP','134584CkeEKE','12wzZDeo','getAllMCPTools','1541749Juekgp','_injector','executeTool','getConnectionStatus','data','McpConnectionStatusChanged','UniverCore','9525DqLsEp','McpToolCallExecuted','1095165tKcDQW','MCPConnectionController','McpToolCallReceived','Event','registerEventHandler','130tjjrYf','FEventName','validateMCPToolCall','27582lqEDfw','UniverProMcp','@univerjs/core','@univerjs-pro/mcp','extend','212SgadHW','function','IMCPToolRegistry','FUniver','21kHcNKv','subscribe','241894xXVknI','McpToolCallFailed','disconnect','30Geawac','MCPEventId','fireEvent','get','84644XwamPP','type','connect','object','_registerMCPFacadeEvents'];_0x52aa=function(){return _0x1b4742;};return _0x52aa();}(function(_0x462d3a,_0x562296){const _0x235fe0=_0x4605,_0x1246ca=_0x462d3a();while(!![]){try{const _0x24b9a9=parseInt(_0x235fe0(0x14a))/0x1+-parseInt(_0x235fe0(0x143))/0x2+-parseInt(_0x235fe0(0x15c))/0x3*(-parseInt(_0x235fe0(0x13d))/0x4)+-parseInt(_0x235fe0(0x163))/0x5*(parseInt(_0x235fe0(0x138))/0x6)+-parseInt(_0x235fe0(0x141))/0x7*(parseInt(_0x235fe0(0x152))/0x8)+-parseInt(_0x235fe0(0x15e))/0x9*(-parseInt(_0x235fe0(0x146))/0xa)+parseInt(_0x235fe0(0x155))/0xb*(-parseInt(_0x235fe0(0x153))/0xc);if(_0x24b9a9===_0x562296)break;else _0x1246ca['push'](_0x1246ca['shift']());}catch(_0x183bb3){_0x1246ca['push'](_0x1246ca['shift']());}}}(_0x52aa,0x2d9fd),function(_0x24a04d,_0x5bfc48){const _0x383487=_0x4605;typeof exports==_0x383487(0x14d)&&typeof module<'u'?_0x5bfc48(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x383487(0x13e)&&define['amd']?define([_0x383487(0x13b),'@univerjs/core/facade',_0x383487(0x13a)],_0x5bfc48):(_0x24a04d=typeof globalThis<'u'?globalThis:_0x24a04d||self,_0x5bfc48(_0x24a04d[_0x383487(0x139)],_0x24a04d['UniverCoreFacade'],_0x24a04d[_0x383487(0x15b)]));}(this,function(_0x3e3bc7,_0x17c544,_0x27ef2e){'use strict';const _0x1cf59f=_0x4605;class _0x3a89d6{get[_0x1cf59f(0x15a)](){const _0x4ffa9d=_0x1cf59f;return _0x3e3bc7['MCPEventId'][_0x4ffa9d(0x15a)];}get[_0x1cf59f(0x160)](){const _0x4e6676=_0x1cf59f;return _0x3e3bc7[_0x4e6676(0x147)][_0x4e6676(0x160)];}get[_0x1cf59f(0x15d)](){const _0xcdd15f=_0x1cf59f;return _0x3e3bc7['MCPEventId'][_0xcdd15f(0x15d)];}get['McpToolCallFailed'](){const _0x22b1d4=_0x1cf59f;return _0x3e3bc7[_0x22b1d4(0x147)][_0x22b1d4(0x144)];}}_0x17c544[_0x1cf59f(0x164)][_0x1cf59f(0x13c)](_0x3a89d6);class _0x1ea160 extends _0x17c544[_0x1cf59f(0x140)]{['_initialize'](_0x1f67e5){const _0x1325c9=_0x1cf59f;this[_0x1325c9(0x14e)](_0x1f67e5);}[_0x1cf59f(0x14e)](_0x2dd2bd){const _0xa208f3=_0x1cf59f,_0x20a23a=_0x2dd2bd['get'](_0x3e3bc7['MCPEventService']);this[_0xa208f3(0x162)](this[_0xa208f3(0x161)]['McpConnectionStatusChanged'],()=>_0x27ef2e[_0xa208f3(0x14f)](_0x20a23a['event$']['subscribe'](_0x9ce5e6=>{const _0x13779a=_0xa208f3;_0x9ce5e6['type']===_0x3e3bc7[_0x13779a(0x147)][_0x13779a(0x15a)]&&this[_0x13779a(0x148)](this[_0x13779a(0x161)][_0x13779a(0x15a)],_0x9ce5e6['data']);}))),this[_0xa208f3(0x162)](this[_0xa208f3(0x161)][_0xa208f3(0x160)],()=>_0x27ef2e['toDisposable'](_0x20a23a[_0xa208f3(0x150)][_0xa208f3(0x142)](_0xed990d=>{const _0x52f9ea=_0xa208f3;_0xed990d[_0x52f9ea(0x14b)]===_0x3e3bc7[_0x52f9ea(0x147)][_0x52f9ea(0x160)]&&this['fireEvent'](this['Event'][_0x52f9ea(0x160)],_0xed990d[_0x52f9ea(0x159)]);}))),this[_0xa208f3(0x162)](this[_0xa208f3(0x161)][_0xa208f3(0x15d)],()=>_0x27ef2e[_0xa208f3(0x14f)](_0x20a23a[_0xa208f3(0x150)][_0xa208f3(0x142)](_0x4e18cb=>{const _0x544589=_0xa208f3;_0x4e18cb[_0x544589(0x14b)]===_0x3e3bc7[_0x544589(0x147)]['McpToolCallExecuted']&&this[_0x544589(0x148)](this[_0x544589(0x161)][_0x544589(0x15d)],_0x4e18cb[_0x544589(0x159)]);}))),this[_0xa208f3(0x162)](this['Event'][_0xa208f3(0x144)],()=>_0x27ef2e['toDisposable'](_0x20a23a[_0xa208f3(0x150)][_0xa208f3(0x142)](_0x468f6a=>{const _0x483a46=_0xa208f3;_0x468f6a['type']===_0x3e3bc7['MCPEventId'][_0x483a46(0x144)]&&this[_0x483a46(0x148)](this[_0x483a46(0x161)][_0x483a46(0x144)],_0x468f6a[_0x483a46(0x159)]);})));}[_0x1cf59f(0x165)](_0xd049f7,_0x33c6f0){const _0x4bc51c=_0x1cf59f;return this[_0x4bc51c(0x156)]['get'](_0x3e3bc7[_0x4bc51c(0x13f)])['validateToolCall'](_0xd049f7,_0x33c6f0);}[_0x1cf59f(0x154)](){const _0x1e129a=_0x1cf59f;return this[_0x1e129a(0x156)]['get'](_0x3e3bc7['IMCPToolRegistry'])['getAllTools']();}['callMCPTool'](_0x54ab1a,_0xd258bf){const _0x3b3c45=_0x1cf59f;return this['_injector'][_0x3b3c45(0x149)](_0x3e3bc7['IMCPToolRegistry'])[_0x3b3c45(0x157)](_0x54ab1a,_0xd258bf);}['getMCPConnectionStatus'](){const _0x1ca1c9=_0x1cf59f;return this['_injector'][_0x1ca1c9(0x149)](_0x3e3bc7['MCPConnectionController'])[_0x1ca1c9(0x158)]();}['connectMCP'](){const _0x372113=_0x1cf59f;this[_0x372113(0x156)][_0x372113(0x149)](_0x3e3bc7[_0x372113(0x15f)])[_0x372113(0x14c)]();}[_0x1cf59f(0x151)](){const _0xfe2862=_0x1cf59f;this[_0xfe2862(0x156)][_0xfe2862(0x149)](_0x3e3bc7[_0xfe2862(0x15f)])[_0xfe2862(0x145)]();}}_0x17c544[_0x1cf59f(0x140)][_0x1cf59f(0x13c)](_0x1ea160);}));