@univerjs-pro/mcp 0.13.0 → 0.14.0-insiders.20251222-4efcfbb

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 _0x5e46(_0x40b74f,_0x3484f7){_0x40b74f=_0x40b74f-0x179;const _0x44db6b=_0x44db();let _0x5e46b5=_0x44db6b[_0x40b74f];return _0x5e46b5;}function _0x44db(){const _0x4c60b7=['fireEvent','_initialize','McpConnectionStatusChanged','1OcprHo','registerEventHandler','@univerjs/core/facade','get','@univerjs-pro/mcp','204grnhRk','FEventName','connectMCP','validateMCPToolCall','4281840EIqcXc','UniverCore','connect','getAllMCPTools','getMCPConnectionStatus','21755860zFOCrC','24485KghwWS','3217054zceBDX','8076dhbCdb','McpToolCallFailed','MCPConnectionController','subscribe','object','disconnect','McpToolCallExecuted','type','McpToolCallReceived','toDisposable','UniverCoreFacade','callMCPTool','disconnectMCP','_injector','data','executeTool','amd','validateToolCall','_registerMCPFacadeEvents','10451560SwjEjv','126CUtwKZ','2829645LAWpkY','IMCPToolRegistry','Event','function','MCPEventService','event$','MCPEventId','extend'];_0x44db=function(){return _0x4c60b7;};return _0x44db();}(function(_0x554eeb,_0x422ddd){const _0x53099c=_0x5e46,_0x55c1c1=_0x554eeb();while(!![]){try{const _0x4cf53d=parseInt(_0x53099c(0x199))/0x1*(parseInt(_0x53099c(0x1a9))/0x2)+-parseInt(_0x53099c(0x179))/0x3*(-parseInt(_0x53099c(0x19e))/0x4)+-parseInt(_0x53099c(0x1a8))/0x5*(-parseInt(_0x53099c(0x18d))/0x6)+parseInt(_0x53099c(0x18c))/0x7+-parseInt(_0x53099c(0x1a2))/0x8+parseInt(_0x53099c(0x18e))/0x9+-parseInt(_0x53099c(0x1a7))/0xa;if(_0x4cf53d===_0x422ddd)break;else _0x55c1c1['push'](_0x55c1c1['shift']());}catch(_0x5e5f86){_0x55c1c1['push'](_0x55c1c1['shift']());}}}(_0x44db,0xe6cad),function(_0x27d76a,_0x5056e3){const _0x290eff=_0x5e46;typeof exports==_0x290eff(0x17d)&&typeof module<'u'?_0x5056e3(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x290eff(0x191)&&define[_0x290eff(0x189)]?define([_0x290eff(0x19d),_0x290eff(0x19b),'@univerjs/core'],_0x5056e3):(_0x27d76a=typeof globalThis<'u'?globalThis:_0x27d76a||self,_0x5056e3(_0x27d76a['UniverProMcp'],_0x27d76a[_0x290eff(0x183)],_0x27d76a[_0x290eff(0x1a3)]));}(this,function(_0x462b1b,_0x44d052,_0x4559be){'use strict';const _0x57f201=_0x5e46;class _0x21e98e{get[_0x57f201(0x198)](){const _0x5cddbe=_0x57f201;return _0x462b1b[_0x5cddbe(0x194)]['McpConnectionStatusChanged'];}get[_0x57f201(0x181)](){const _0x214f1f=_0x57f201;return _0x462b1b[_0x214f1f(0x194)]['McpToolCallReceived'];}get[_0x57f201(0x17f)](){const _0x58ca5e=_0x57f201;return _0x462b1b['MCPEventId'][_0x58ca5e(0x17f)];}get[_0x57f201(0x17a)](){const _0x460d76=_0x57f201;return _0x462b1b[_0x460d76(0x194)][_0x460d76(0x17a)];}}_0x44d052[_0x57f201(0x19f)][_0x57f201(0x195)](_0x21e98e);class _0x119834 extends _0x44d052['FUniver']{[_0x57f201(0x197)](_0x33d409){const _0x17b994=_0x57f201;this[_0x17b994(0x18b)](_0x33d409);}[_0x57f201(0x18b)](_0x437c35){const _0x30fb1f=_0x57f201,_0x241eea=_0x437c35[_0x30fb1f(0x19c)](_0x462b1b[_0x30fb1f(0x192)]);this['registerEventHandler'](this['Event'][_0x30fb1f(0x198)],()=>_0x4559be[_0x30fb1f(0x182)](_0x241eea[_0x30fb1f(0x193)]['subscribe'](_0x21d5d4=>{const _0xba24d1=_0x30fb1f;_0x21d5d4[_0xba24d1(0x180)]===_0x462b1b['MCPEventId'][_0xba24d1(0x198)]&&this[_0xba24d1(0x196)](this['Event'][_0xba24d1(0x198)],_0x21d5d4[_0xba24d1(0x187)]);}))),this[_0x30fb1f(0x19a)](this[_0x30fb1f(0x190)]['McpToolCallReceived'],()=>_0x4559be[_0x30fb1f(0x182)](_0x241eea[_0x30fb1f(0x193)]['subscribe'](_0x463d87=>{const _0x38f2f4=_0x30fb1f;_0x463d87['type']===_0x462b1b[_0x38f2f4(0x194)][_0x38f2f4(0x181)]&&this['fireEvent'](this['Event'][_0x38f2f4(0x181)],_0x463d87[_0x38f2f4(0x187)]);}))),this[_0x30fb1f(0x19a)](this[_0x30fb1f(0x190)][_0x30fb1f(0x17f)],()=>_0x4559be['toDisposable'](_0x241eea[_0x30fb1f(0x193)][_0x30fb1f(0x17c)](_0x3bfee8=>{const _0x34af6b=_0x30fb1f;_0x3bfee8[_0x34af6b(0x180)]===_0x462b1b['MCPEventId']['McpToolCallExecuted']&&this['fireEvent'](this[_0x34af6b(0x190)][_0x34af6b(0x17f)],_0x3bfee8[_0x34af6b(0x187)]);}))),this[_0x30fb1f(0x19a)](this[_0x30fb1f(0x190)]['McpToolCallFailed'],()=>_0x4559be[_0x30fb1f(0x182)](_0x241eea['event$'][_0x30fb1f(0x17c)](_0x1d4bf7=>{const _0x42a190=_0x30fb1f;_0x1d4bf7[_0x42a190(0x180)]===_0x462b1b[_0x42a190(0x194)][_0x42a190(0x17a)]&&this[_0x42a190(0x196)](this[_0x42a190(0x190)][_0x42a190(0x17a)],_0x1d4bf7[_0x42a190(0x187)]);})));}[_0x57f201(0x1a1)](_0x57afaf,_0x26cddb){const _0x5e9ab3=_0x57f201;return this[_0x5e9ab3(0x186)][_0x5e9ab3(0x19c)](_0x462b1b[_0x5e9ab3(0x18f)])[_0x5e9ab3(0x18a)](_0x57afaf,_0x26cddb);}[_0x57f201(0x1a5)](){const _0x47c29b=_0x57f201;return this[_0x47c29b(0x186)][_0x47c29b(0x19c)](_0x462b1b['IMCPToolRegistry'])['getAllTools']();}[_0x57f201(0x184)](_0x44409c,_0x5bea90){const _0x403223=_0x57f201;return this[_0x403223(0x186)][_0x403223(0x19c)](_0x462b1b[_0x403223(0x18f)])[_0x403223(0x188)](_0x44409c,_0x5bea90);}[_0x57f201(0x1a6)](){const _0x37d8b0=_0x57f201;return this[_0x37d8b0(0x186)]['get'](_0x462b1b[_0x37d8b0(0x17b)])['getConnectionStatus']();}[_0x57f201(0x1a0)](){const _0x38da4d=_0x57f201;this[_0x38da4d(0x186)][_0x38da4d(0x19c)](_0x462b1b['MCPConnectionController'])[_0x38da4d(0x1a4)]();}[_0x57f201(0x185)](){const _0x414174=_0x57f201;this['_injector'][_0x414174(0x19c)](_0x462b1b[_0x414174(0x17b)])[_0x414174(0x17e)]();}}_0x44d052['FUniver'][_0x57f201(0x195)](_0x119834);}));
1
+ function _0x2de8(){const _0x4fb86c=['Event','connect','disconnectMCP','6168mAWvKU','2061567ZogUBA','FUniver','@univerjs-pro/mcp','_injector','validateMCPToolCall','3itbVpb','9kzsfYf','getConnectionStatus','McpToolCallFailed','_registerMCPFacadeEvents','event$','56VqaBUn','getAllMCPTools','toDisposable','type','MCPConnectionController','IMCPToolRegistry','_initialize','1292568NSMgVB','registerEventHandler','getAllTools','subscribe','UniverCoreFacade','object','McpToolCallExecuted','McpToolCallReceived','data','12675960BdRjur','get','validateToolCall','@univerjs/core/facade','executeTool','function','10829270YQWoVt','extend','805aHnwXx','McpConnectionStatusChanged','602838CdWKIf','MCPEventId','MCPEventService','22621668bGELDZ','fireEvent','8SjvAbL'];_0x2de8=function(){return _0x4fb86c;};return _0x2de8();}function _0x2355(_0x164466,_0x42703d){_0x164466=_0x164466-0x12f;const _0x2de87e=_0x2de8();let _0x235551=_0x2de87e[_0x164466];return _0x235551;}(function(_0x48729b,_0x230a8a){const _0x5aedc1=_0x2355,_0x5f343e=_0x48729b();while(!![]){try{const _0x4fd03b=parseInt(_0x5aedc1(0x154))/0x1*(-parseInt(_0x5aedc1(0x145))/0x2)+parseInt(_0x5aedc1(0x14f))/0x3*(-parseInt(_0x5aedc1(0x14a))/0x4)+-parseInt(_0x5aedc1(0x143))/0x5*(-parseInt(_0x5aedc1(0x14e))/0x6)+parseInt(_0x5aedc1(0x15a))/0x7*(-parseInt(_0x5aedc1(0x132))/0x8)+parseInt(_0x5aedc1(0x155))/0x9*(parseInt(_0x5aedc1(0x141))/0xa)+parseInt(_0x5aedc1(0x13b))/0xb+parseInt(_0x5aedc1(0x148))/0xc;if(_0x4fd03b===_0x230a8a)break;else _0x5f343e['push'](_0x5f343e['shift']());}catch(_0x5db728){_0x5f343e['push'](_0x5f343e['shift']());}}}(_0x2de8,0xae7eb),function(_0x2ed7bc,_0x289a0b){const _0x4127cb=_0x2355;typeof exports==_0x4127cb(0x137)&&typeof module<'u'?_0x289a0b(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x4127cb(0x140)&&define['amd']?define([_0x4127cb(0x151),_0x4127cb(0x13e),'@univerjs/core'],_0x289a0b):(_0x2ed7bc=typeof globalThis<'u'?globalThis:_0x2ed7bc||self,_0x289a0b(_0x2ed7bc['UniverProMcp'],_0x2ed7bc[_0x4127cb(0x136)],_0x2ed7bc['UniverCore']));}(this,function(_0xea6ac8,_0x4b2d71,_0x4bb7d7){'use strict';const _0xde6b8b=_0x2355;class _0x3c7455{get[_0xde6b8b(0x144)](){const _0x27b23c=_0xde6b8b;return _0xea6ac8[_0x27b23c(0x146)][_0x27b23c(0x144)];}get['McpToolCallReceived'](){const _0x2b3678=_0xde6b8b;return _0xea6ac8[_0x2b3678(0x146)][_0x2b3678(0x139)];}get['McpToolCallExecuted'](){const _0x36e46a=_0xde6b8b;return _0xea6ac8[_0x36e46a(0x146)][_0x36e46a(0x138)];}get['McpToolCallFailed'](){const _0x5358a5=_0xde6b8b;return _0xea6ac8[_0x5358a5(0x146)][_0x5358a5(0x157)];}}_0x4b2d71['FEventName'][_0xde6b8b(0x142)](_0x3c7455);class _0x4c327c extends _0x4b2d71[_0xde6b8b(0x150)]{[_0xde6b8b(0x131)](_0x42797b){const _0x40d707=_0xde6b8b;this[_0x40d707(0x158)](_0x42797b);}['_registerMCPFacadeEvents'](_0x2b77a7){const _0x4851b7=_0xde6b8b,_0x1e7d8f=_0x2b77a7[_0x4851b7(0x13c)](_0xea6ac8[_0x4851b7(0x147)]);this[_0x4851b7(0x133)](this[_0x4851b7(0x14b)]['McpConnectionStatusChanged'],()=>_0x4bb7d7['toDisposable'](_0x1e7d8f[_0x4851b7(0x159)]['subscribe'](_0x3a0ba8=>{const _0x5586f0=_0x4851b7;_0x3a0ba8[_0x5586f0(0x15d)]===_0xea6ac8['MCPEventId'][_0x5586f0(0x144)]&&this[_0x5586f0(0x149)](this[_0x5586f0(0x14b)][_0x5586f0(0x144)],_0x3a0ba8['data']);}))),this[_0x4851b7(0x133)](this['Event']['McpToolCallReceived'],()=>_0x4bb7d7[_0x4851b7(0x15c)](_0x1e7d8f[_0x4851b7(0x159)][_0x4851b7(0x135)](_0x2cf972=>{const _0x4a1fb2=_0x4851b7;_0x2cf972[_0x4a1fb2(0x15d)]===_0xea6ac8['MCPEventId'][_0x4a1fb2(0x139)]&&this['fireEvent'](this['Event']['McpToolCallReceived'],_0x2cf972[_0x4a1fb2(0x13a)]);}))),this[_0x4851b7(0x133)](this['Event'][_0x4851b7(0x138)],()=>_0x4bb7d7['toDisposable'](_0x1e7d8f['event$']['subscribe'](_0xfcf552=>{const _0x1f483d=_0x4851b7;_0xfcf552[_0x1f483d(0x15d)]===_0xea6ac8[_0x1f483d(0x146)][_0x1f483d(0x138)]&&this[_0x1f483d(0x149)](this[_0x1f483d(0x14b)]['McpToolCallExecuted'],_0xfcf552[_0x1f483d(0x13a)]);}))),this[_0x4851b7(0x133)](this[_0x4851b7(0x14b)]['McpToolCallFailed'],()=>_0x4bb7d7[_0x4851b7(0x15c)](_0x1e7d8f[_0x4851b7(0x159)][_0x4851b7(0x135)](_0x54ec34=>{const _0x48db75=_0x4851b7;_0x54ec34['type']===_0xea6ac8[_0x48db75(0x146)][_0x48db75(0x157)]&&this['fireEvent'](this[_0x48db75(0x14b)]['McpToolCallFailed'],_0x54ec34[_0x48db75(0x13a)]);})));}[_0xde6b8b(0x153)](_0x5cae1f,_0x54cadc){const _0x315203=_0xde6b8b;return this[_0x315203(0x152)]['get'](_0xea6ac8[_0x315203(0x130)])[_0x315203(0x13d)](_0x5cae1f,_0x54cadc);}[_0xde6b8b(0x15b)](){const _0x44441e=_0xde6b8b;return this['_injector'][_0x44441e(0x13c)](_0xea6ac8[_0x44441e(0x130)])[_0x44441e(0x134)]();}['callMCPTool'](_0x3bf348,_0x24bd2a){const _0x5fe1e0=_0xde6b8b;return this[_0x5fe1e0(0x152)][_0x5fe1e0(0x13c)](_0xea6ac8[_0x5fe1e0(0x130)])[_0x5fe1e0(0x13f)](_0x3bf348,_0x24bd2a);}['getMCPConnectionStatus'](){const _0x52390b=_0xde6b8b;return this[_0x52390b(0x152)]['get'](_0xea6ac8[_0x52390b(0x12f)])[_0x52390b(0x156)]();}['connectMCP'](){const _0x41a764=_0xde6b8b;this[_0x41a764(0x152)]['get'](_0xea6ac8[_0x41a764(0x12f)])[_0x41a764(0x14c)]();}[_0xde6b8b(0x14d)](){const _0x250ff3=_0xde6b8b;this[_0x250ff3(0x152)][_0x250ff3(0x13c)](_0xea6ac8[_0x250ff3(0x12f)])['disconnect']();}}_0x4b2d71[_0xde6b8b(0x150)][_0xde6b8b(0x142)](_0x4c327c);}));