@univerjs-pro/mcp 0.12.4-insiders.20251213-692494c → 0.13.0

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 _0x2fa2(_0x46d128,_0x436f1e){_0x46d128=_0x46d128-0x103;const _0x18eff5=_0x18ef();let _0x2fa2a7=_0x18eff5[_0x46d128];return _0x2fa2a7;}function _0x18ef(){const _0x17a015=['data','_injector','45QSKxoY','getAllTools','105VZJAbv','subscribe','UniverCore','_registerMCPFacadeEvents','disconnect','McpToolCallReceived','MCPEventService','UniverCoreFacade','48541QXGqyD','event$','fireEvent','executeTool','function','McpConnectionStatusChanged','1466170bwSRwX','364168bZdviu','extend','McpToolCallExecuted','getConnectionStatus','registerEventHandler','84jMxQca','get','1470912mmvzHy','McpToolCallFailed','MCPConnectionController','disconnectMCP','connect','34512VcGdKK','FEventName','amd','MCPEventId','@univerjs/core/facade','type','toDisposable','object','validateMCPToolCall','8538ZPBkwF','3672466xzMKEa','Event','getAllMCPTools','IMCPToolRegistry','getMCPConnectionStatus','UniverProMcp','FUniver'];_0x18ef=function(){return _0x17a015;};return _0x18ef();}(function(_0xc03880,_0x526d76){const _0x4ca3d3=_0x2fa2,_0x19cf3c=_0xc03880();while(!![]){try{const _0x3a60c8=-parseInt(_0x4ca3d3(0x107))/0x1+parseInt(_0x4ca3d3(0x123))/0x2*(parseInt(_0x4ca3d3(0x113))/0x3)+parseInt(_0x4ca3d3(0x10e))/0x4+parseInt(_0x4ca3d3(0x12f))/0x5*(parseInt(_0x4ca3d3(0x11a))/0x6)+-parseInt(_0x4ca3d3(0x124))/0x7+-parseInt(_0x4ca3d3(0x115))/0x8+parseInt(_0x4ca3d3(0x12d))/0x9*(parseInt(_0x4ca3d3(0x10d))/0xa);if(_0x3a60c8===_0x526d76)break;else _0x19cf3c['push'](_0x19cf3c['shift']());}catch(_0x39883a){_0x19cf3c['push'](_0x19cf3c['shift']());}}}(_0x18ef,0x4b0d0),function(_0x261fd7,_0x2d1187){const _0x2d6e7e=_0x2fa2;typeof exports==_0x2d6e7e(0x121)&&typeof module<'u'?_0x2d1187(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x2d6e7e(0x10b)&&define[_0x2d6e7e(0x11c)]?define(['@univerjs-pro/mcp',_0x2d6e7e(0x11e),'@univerjs/core'],_0x2d1187):(_0x261fd7=typeof globalThis<'u'?globalThis:_0x261fd7||self,_0x2d1187(_0x261fd7[_0x2d6e7e(0x129)],_0x261fd7[_0x2d6e7e(0x106)],_0x261fd7[_0x2d6e7e(0x131)]));}(this,function(_0x351d3f,_0x57bf0a,_0x5bd7e5){'use strict';const _0x164a86=_0x2fa2;class _0x195153{get[_0x164a86(0x10c)](){const _0x1f7f12=_0x164a86;return _0x351d3f[_0x1f7f12(0x11d)][_0x1f7f12(0x10c)];}get[_0x164a86(0x104)](){const _0x20de43=_0x164a86;return _0x351d3f['MCPEventId'][_0x20de43(0x104)];}get[_0x164a86(0x110)](){const _0x24ff97=_0x164a86;return _0x351d3f[_0x24ff97(0x11d)][_0x24ff97(0x110)];}get[_0x164a86(0x116)](){const _0x4cbe01=_0x164a86;return _0x351d3f['MCPEventId'][_0x4cbe01(0x116)];}}_0x57bf0a[_0x164a86(0x11b)][_0x164a86(0x10f)](_0x195153);class _0x1482f9 extends _0x57bf0a[_0x164a86(0x12a)]{['_initialize'](_0x3e620d){const _0x1665f9=_0x164a86;this[_0x1665f9(0x132)](_0x3e620d);}[_0x164a86(0x132)](_0x2a6b86){const _0x1b6ef3=_0x164a86,_0x24b093=_0x2a6b86[_0x1b6ef3(0x114)](_0x351d3f[_0x1b6ef3(0x105)]);this[_0x1b6ef3(0x112)](this[_0x1b6ef3(0x125)]['McpConnectionStatusChanged'],()=>_0x5bd7e5[_0x1b6ef3(0x120)](_0x24b093[_0x1b6ef3(0x108)][_0x1b6ef3(0x130)](_0x59ae9d=>{const _0x2b2c0a=_0x1b6ef3;_0x59ae9d['type']===_0x351d3f[_0x2b2c0a(0x11d)][_0x2b2c0a(0x10c)]&&this[_0x2b2c0a(0x109)](this[_0x2b2c0a(0x125)][_0x2b2c0a(0x10c)],_0x59ae9d[_0x2b2c0a(0x12b)]);}))),this[_0x1b6ef3(0x112)](this['Event'][_0x1b6ef3(0x104)],()=>_0x5bd7e5[_0x1b6ef3(0x120)](_0x24b093[_0x1b6ef3(0x108)][_0x1b6ef3(0x130)](_0x4126e9=>{const _0x2634cf=_0x1b6ef3;_0x4126e9[_0x2634cf(0x11f)]===_0x351d3f[_0x2634cf(0x11d)]['McpToolCallReceived']&&this[_0x2634cf(0x109)](this['Event']['McpToolCallReceived'],_0x4126e9['data']);}))),this['registerEventHandler'](this['Event'][_0x1b6ef3(0x110)],()=>_0x5bd7e5[_0x1b6ef3(0x120)](_0x24b093[_0x1b6ef3(0x108)][_0x1b6ef3(0x130)](_0x277f43=>{const _0x1120be=_0x1b6ef3;_0x277f43['type']===_0x351d3f[_0x1120be(0x11d)][_0x1120be(0x110)]&&this['fireEvent'](this[_0x1120be(0x125)][_0x1120be(0x110)],_0x277f43['data']);}))),this[_0x1b6ef3(0x112)](this['Event'][_0x1b6ef3(0x116)],()=>_0x5bd7e5[_0x1b6ef3(0x120)](_0x24b093['event$']['subscribe'](_0x407616=>{const _0x389e37=_0x1b6ef3;_0x407616[_0x389e37(0x11f)]===_0x351d3f[_0x389e37(0x11d)][_0x389e37(0x116)]&&this[_0x389e37(0x109)](this[_0x389e37(0x125)]['McpToolCallFailed'],_0x407616['data']);})));}[_0x164a86(0x122)](_0x35cfd2,_0x5d907b){const _0x52caa3=_0x164a86;return this[_0x52caa3(0x12c)][_0x52caa3(0x114)](_0x351d3f['IMCPToolRegistry'])['validateToolCall'](_0x35cfd2,_0x5d907b);}[_0x164a86(0x126)](){const _0x4189d9=_0x164a86;return this[_0x4189d9(0x12c)]['get'](_0x351d3f[_0x4189d9(0x127)])[_0x4189d9(0x12e)]();}['callMCPTool'](_0x259884,_0x3bb878){const _0x8bea78=_0x164a86;return this[_0x8bea78(0x12c)]['get'](_0x351d3f[_0x8bea78(0x127)])[_0x8bea78(0x10a)](_0x259884,_0x3bb878);}[_0x164a86(0x128)](){const _0x58e7a9=_0x164a86;return this[_0x58e7a9(0x12c)]['get'](_0x351d3f[_0x58e7a9(0x117)])[_0x58e7a9(0x111)]();}['connectMCP'](){const _0x136904=_0x164a86;this[_0x136904(0x12c)][_0x136904(0x114)](_0x351d3f[_0x136904(0x117)])[_0x136904(0x119)]();}[_0x164a86(0x118)](){const _0x164195=_0x164a86;this[_0x164195(0x12c)][_0x164195(0x114)](_0x351d3f[_0x164195(0x117)])[_0x164195(0x103)]();}}_0x57bf0a['FUniver'][_0x164a86(0x10f)](_0x1482f9);}));
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);}));