@univerjs-pro/mcp 0.12.0 → 0.12.1

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 _0x5e82(){const _0x588367=['McpToolCallReceived','event$','38166WUbdNT','executeTool','33HQQeuE','connect','Event','disconnect','UniverCore','getAllTools','_initialize','object','McpToolCallFailed','type','IMCPToolRegistry','MCPEventId','toDisposable','McpToolCallExecuted','7440lpLDYW','14499lodTRS','getMCPConnectionStatus','data','_injector','1506083fpMZZA','2649468HrPleG','subscribe','6zVYlso','MCPEventService','connectMCP','McpConnectionStatusChanged','registerEventHandler','@univerjs/core/facade','function','FEventName','FUniver','_registerMCPFacadeEvents','@univerjs-pro/mcp','6524tuBqHZ','extend','120ilBfIP','get','amd','695912nRQfXE','4370BNLEvG','fireEvent','getConnectionStatus','disconnectMCP','MCPConnectionController','38594UIRNUy'];_0x5e82=function(){return _0x588367;};return _0x5e82();}function _0x5dad(_0x591f1a,_0x2b5487){const _0x5e8243=_0x5e82();return _0x5dad=function(_0x5dad60,_0xfd06d1){_0x5dad60=_0x5dad60-0xf2;let _0x35abe3=_0x5e8243[_0x5dad60];return _0x35abe3;},_0x5dad(_0x591f1a,_0x2b5487);}(function(_0x4dce37,_0x27f534){const _0x1da5ae=_0x5dad,_0x15079c=_0x4dce37();while(!![]){try{const _0x103561=parseInt(_0x1da5ae(0x11a))/0x1+parseInt(_0x1da5ae(0x102))/0x2*(-parseInt(_0x1da5ae(0x11d))/0x3)+-parseInt(_0x1da5ae(0xfc))/0x4+parseInt(_0x1da5ae(0xf9))/0x5*(parseInt(_0x1da5ae(0x105))/0x6)+-parseInt(_0x1da5ae(0xf7))/0x7*(-parseInt(_0x1da5ae(0x115))/0x8)+parseInt(_0x1da5ae(0x116))/0x9*(-parseInt(_0x1da5ae(0xfd))/0xa)+parseInt(_0x1da5ae(0x107))/0xb*(-parseInt(_0x1da5ae(0x11b))/0xc);if(_0x103561===_0x27f534)break;else _0x15079c['push'](_0x15079c['shift']());}catch(_0x3e9aa1){_0x15079c['push'](_0x15079c['shift']());}}}(_0x5e82,0xe7181),function(_0x4770e2,_0x112130){const _0x188a14=_0x5dad;typeof exports==_0x188a14(0x10e)&&typeof module<'u'?_0x112130(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x188a14(0xf2)&&define[_0x188a14(0xfb)]?define([_0x188a14(0xf6),_0x188a14(0x122),'@univerjs/core'],_0x112130):(_0x4770e2=typeof globalThis<'u'?globalThis:_0x4770e2||self,_0x112130(_0x4770e2['UniverProMcp'],_0x4770e2['UniverCoreFacade'],_0x4770e2[_0x188a14(0x10b)]));}(this,function(_0x16c739,_0x21b17a,_0x180ed9){'use strict';const _0x28ebe3=_0x5dad;class _0x53f3f2{get[_0x28ebe3(0x120)](){const _0x4796b5=_0x28ebe3;return _0x16c739[_0x4796b5(0x112)][_0x4796b5(0x120)];}get[_0x28ebe3(0x103)](){const _0x11f1e4=_0x28ebe3;return _0x16c739['MCPEventId'][_0x11f1e4(0x103)];}get[_0x28ebe3(0x114)](){const _0x2882cc=_0x28ebe3;return _0x16c739[_0x2882cc(0x112)][_0x2882cc(0x114)];}get['McpToolCallFailed'](){const _0x956c93=_0x28ebe3;return _0x16c739[_0x956c93(0x112)][_0x956c93(0x10f)];}}_0x21b17a[_0x28ebe3(0xf3)][_0x28ebe3(0xf8)](_0x53f3f2);class _0x4d3c79 extends _0x21b17a[_0x28ebe3(0xf4)]{[_0x28ebe3(0x10d)](_0x3f347d){const _0x211a40=_0x28ebe3;this[_0x211a40(0xf5)](_0x3f347d);}[_0x28ebe3(0xf5)](_0x16f1e9){const _0x4d8140=_0x28ebe3,_0x554a40=_0x16f1e9[_0x4d8140(0xfa)](_0x16c739[_0x4d8140(0x11e)]);this['registerEventHandler'](this[_0x4d8140(0x109)][_0x4d8140(0x120)],()=>_0x180ed9['toDisposable'](_0x554a40[_0x4d8140(0x104)]['subscribe'](_0x482b44=>{const _0x3bf878=_0x4d8140;_0x482b44['type']===_0x16c739['MCPEventId'][_0x3bf878(0x120)]&&this[_0x3bf878(0xfe)](this['Event'][_0x3bf878(0x120)],_0x482b44[_0x3bf878(0x118)]);}))),this[_0x4d8140(0x121)](this[_0x4d8140(0x109)][_0x4d8140(0x103)],()=>_0x180ed9[_0x4d8140(0x113)](_0x554a40[_0x4d8140(0x104)]['subscribe'](_0x543d73=>{const _0x1728fc=_0x4d8140;_0x543d73[_0x1728fc(0x110)]===_0x16c739[_0x1728fc(0x112)]['McpToolCallReceived']&&this[_0x1728fc(0xfe)](this[_0x1728fc(0x109)][_0x1728fc(0x103)],_0x543d73[_0x1728fc(0x118)]);}))),this[_0x4d8140(0x121)](this['Event'][_0x4d8140(0x114)],()=>_0x180ed9[_0x4d8140(0x113)](_0x554a40['event$'][_0x4d8140(0x11c)](_0xe41f08=>{const _0x27c9fc=_0x4d8140;_0xe41f08[_0x27c9fc(0x110)]===_0x16c739[_0x27c9fc(0x112)]['McpToolCallExecuted']&&this[_0x27c9fc(0xfe)](this['Event'][_0x27c9fc(0x114)],_0xe41f08[_0x27c9fc(0x118)]);}))),this[_0x4d8140(0x121)](this[_0x4d8140(0x109)][_0x4d8140(0x10f)],()=>_0x180ed9[_0x4d8140(0x113)](_0x554a40[_0x4d8140(0x104)]['subscribe'](_0x257143=>{const _0x41e9e3=_0x4d8140;_0x257143[_0x41e9e3(0x110)]===_0x16c739[_0x41e9e3(0x112)][_0x41e9e3(0x10f)]&&this['fireEvent'](this[_0x41e9e3(0x109)][_0x41e9e3(0x10f)],_0x257143['data']);})));}['validateMCPToolCall'](_0x3e2144,_0xf9ac7b){const _0xf6f402=_0x28ebe3;return this[_0xf6f402(0x119)][_0xf6f402(0xfa)](_0x16c739[_0xf6f402(0x111)])['validateToolCall'](_0x3e2144,_0xf9ac7b);}['getAllMCPTools'](){const _0x4228d8=_0x28ebe3;return this[_0x4228d8(0x119)][_0x4228d8(0xfa)](_0x16c739[_0x4228d8(0x111)])[_0x4228d8(0x10c)]();}['callMCPTool'](_0xc58080,_0x3a46b5){const _0x2b7ae7=_0x28ebe3;return this['_injector'][_0x2b7ae7(0xfa)](_0x16c739[_0x2b7ae7(0x111)])[_0x2b7ae7(0x106)](_0xc58080,_0x3a46b5);}[_0x28ebe3(0x117)](){const _0x54bd3c=_0x28ebe3;return this[_0x54bd3c(0x119)][_0x54bd3c(0xfa)](_0x16c739[_0x54bd3c(0x101)])[_0x54bd3c(0xff)]();}[_0x28ebe3(0x11f)](){const _0x2c1fb9=_0x28ebe3;this[_0x2c1fb9(0x119)][_0x2c1fb9(0xfa)](_0x16c739['MCPConnectionController'])[_0x2c1fb9(0x108)]();}[_0x28ebe3(0x100)](){const _0x1057f1=_0x28ebe3;this[_0x1057f1(0x119)][_0x1057f1(0xfa)](_0x16c739[_0x1057f1(0x101)])[_0x1057f1(0x10a)]();}}_0x21b17a[_0x28ebe3(0xf4)]['extend'](_0x4d3c79);}));
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();}