@univerjs-pro/mcp 0.13.0 → 0.14.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 _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(_0x11a935,_0x4898f4){const _0xb2e45b=_0x2940,_0x5cf14a=_0x11a935();while(!![]){try{const _0x4def3c=-parseInt(_0xb2e45b(0x1aa))/0x1+parseInt(_0xb2e45b(0x1b2))/0x2+parseInt(_0xb2e45b(0x1a3))/0x3*(parseInt(_0xb2e45b(0x1b1))/0x4)+-parseInt(_0xb2e45b(0x1b7))/0x5*(-parseInt(_0xb2e45b(0x1d6))/0x6)+-parseInt(_0xb2e45b(0x1d3))/0x7*(-parseInt(_0xb2e45b(0x1ae))/0x8)+parseInt(_0xb2e45b(0x1ab))/0x9+-parseInt(_0xb2e45b(0x1a4))/0xa;if(_0x4def3c===_0x4898f4)break;else _0x5cf14a['push'](_0x5cf14a['shift']());}catch(_0x26b0c2){_0x5cf14a['push'](_0x5cf14a['shift']());}}}(_0x19ee,0xb208c),function(_0x3e5d6f,_0x417a14){const _0x4bfd95=_0x2940;typeof exports==_0x4bfd95(0x1d0)&&typeof module<'u'?_0x417a14(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x4bfd95(0x1c8)&&define[_0x4bfd95(0x1c7)]?define([_0x4bfd95(0x1cd),_0x4bfd95(0x1bf),_0x4bfd95(0x1cc)],_0x417a14):(_0x3e5d6f=typeof globalThis<'u'?globalThis:_0x3e5d6f||self,_0x417a14(_0x3e5d6f[_0x4bfd95(0x1b3)],_0x3e5d6f[_0x4bfd95(0x1cb)],_0x3e5d6f[_0x4bfd95(0x1c1)]));}(this,function(_0x20215d,_0x1f2af2,_0x2895ed){'use strict';const _0x4c0204=_0x2940;class _0x2a2843{get[_0x4c0204(0x1a2)](){const _0x4b5345=_0x4c0204;return _0x20215d[_0x4b5345(0x1c3)][_0x4b5345(0x1a2)];}get[_0x4c0204(0x1b4)](){const _0x11277c=_0x4c0204;return _0x20215d[_0x11277c(0x1c3)][_0x11277c(0x1b4)];}get[_0x4c0204(0x1af)](){const _0x4b233b=_0x4c0204;return _0x20215d[_0x4b233b(0x1c3)][_0x4b233b(0x1af)];}get[_0x4c0204(0x1c4)](){const _0x50a597=_0x4c0204;return _0x20215d[_0x50a597(0x1c3)]['McpToolCallFailed'];}}_0x1f2af2[_0x4c0204(0x1b5)][_0x4c0204(0x1b0)](_0x2a2843);class _0x38261b extends _0x1f2af2[_0x4c0204(0x1a7)]{[_0x4c0204(0x1a6)](_0xd30f43){const _0x2895b2=_0x4c0204;this[_0x2895b2(0x1bb)](_0xd30f43);}['_registerMCPFacadeEvents'](_0x6e08bb){const _0x265425=_0x4c0204,_0x4e5314=_0x6e08bb[_0x265425(0x1be)](_0x20215d[_0x265425(0x1ba)]);this[_0x265425(0x1ad)](this[_0x265425(0x1c6)][_0x265425(0x1a2)],()=>_0x2895ed[_0x265425(0x1d4)](_0x4e5314[_0x265425(0x1ac)][_0x265425(0x1b9)](_0x2f02ea=>{const _0x1cd34c=_0x265425;_0x2f02ea['type']===_0x20215d[_0x1cd34c(0x1c3)][_0x1cd34c(0x1a2)]&&this[_0x1cd34c(0x1b6)](this['Event'][_0x1cd34c(0x1a2)],_0x2f02ea[_0x1cd34c(0x1c0)]);}))),this[_0x265425(0x1ad)](this[_0x265425(0x1c6)]['McpToolCallReceived'],()=>_0x2895ed[_0x265425(0x1d4)](_0x4e5314[_0x265425(0x1ac)]['subscribe'](_0x39f8d2=>{const _0x2c6e57=_0x265425;_0x39f8d2[_0x2c6e57(0x1ce)]===_0x20215d['MCPEventId'][_0x2c6e57(0x1b4)]&&this[_0x2c6e57(0x1b6)](this['Event'][_0x2c6e57(0x1b4)],_0x39f8d2[_0x2c6e57(0x1c0)]);}))),this[_0x265425(0x1ad)](this[_0x265425(0x1c6)][_0x265425(0x1af)],()=>_0x2895ed[_0x265425(0x1d4)](_0x4e5314[_0x265425(0x1ac)]['subscribe'](_0x1f6f90=>{const _0x55d9c9=_0x265425;_0x1f6f90[_0x55d9c9(0x1ce)]===_0x20215d[_0x55d9c9(0x1c3)][_0x55d9c9(0x1af)]&&this['fireEvent'](this[_0x55d9c9(0x1c6)][_0x55d9c9(0x1af)],_0x1f6f90[_0x55d9c9(0x1c0)]);}))),this[_0x265425(0x1ad)](this[_0x265425(0x1c6)]['McpToolCallFailed'],()=>_0x2895ed[_0x265425(0x1d4)](_0x4e5314[_0x265425(0x1ac)][_0x265425(0x1b9)](_0x1b1e36=>{const _0x2152d0=_0x265425;_0x1b1e36['type']===_0x20215d['MCPEventId'][_0x2152d0(0x1c4)]&&this[_0x2152d0(0x1b6)](this[_0x2152d0(0x1c6)][_0x2152d0(0x1c4)],_0x1b1e36[_0x2152d0(0x1c0)]);})));}[_0x4c0204(0x1c5)](_0x3ffc7d,_0x1420b7){const _0x5330e6=_0x4c0204;return this['_injector'][_0x5330e6(0x1be)](_0x20215d[_0x5330e6(0x1d2)])['validateToolCall'](_0x3ffc7d,_0x1420b7);}[_0x4c0204(0x1c9)](){const _0x34e6cf=_0x4c0204;return this[_0x34e6cf(0x1d1)]['get'](_0x20215d[_0x34e6cf(0x1d2)])[_0x34e6cf(0x1a5)]();}[_0x4c0204(0x1d5)](_0x3b4b97,_0x2f21e8){const _0x26b00c=_0x4c0204;return this[_0x26b00c(0x1d1)][_0x26b00c(0x1be)](_0x20215d[_0x26b00c(0x1d2)])[_0x26b00c(0x1a9)](_0x3b4b97,_0x2f21e8);}[_0x4c0204(0x1a8)](){const _0x555c72=_0x4c0204;return this['_injector'][_0x555c72(0x1be)](_0x20215d[_0x555c72(0x1cf)])[_0x555c72(0x1c2)]();}[_0x4c0204(0x1ca)](){const _0x5097b8=_0x4c0204;this[_0x5097b8(0x1d1)][_0x5097b8(0x1be)](_0x20215d[_0x5097b8(0x1cf)])[_0x5097b8(0x1bd)]();}[_0x4c0204(0x1b8)](){const _0x5132c2=_0x4c0204;this[_0x5132c2(0x1d1)][_0x5132c2(0x1be)](_0x20215d['MCPConnectionController'])[_0x5132c2(0x1bc)]();}}_0x1f2af2[_0x4c0204(0x1a7)][_0x4c0204(0x1b0)](_0x38261b);}));function _0x2940(_0x29a655,_0x40bf1b){_0x29a655=_0x29a655-0x1a2;const _0x19ee08=_0x19ee();let _0x29406c=_0x19ee08[_0x29a655];return _0x29406c;}function _0x19ee(){const _0x406cc4=['subscribe','MCPEventService','_registerMCPFacadeEvents','disconnect','connect','get','@univerjs/core/facade','data','UniverCore','getConnectionStatus','MCPEventId','McpToolCallFailed','validateMCPToolCall','Event','amd','function','getAllMCPTools','connectMCP','UniverCoreFacade','@univerjs/core','@univerjs-pro/mcp','type','MCPConnectionController','object','_injector','IMCPToolRegistry','1631VGwEFg','toDisposable','callMCPTool','12SKHCen','McpConnectionStatusChanged','5067FDYiMR','37584750IWsfKK','getAllTools','_initialize','FUniver','getMCPConnectionStatus','executeTool','22087pFoOIt','12262167OWkDPl','event$','registerEventHandler','31184rcZOPw','McpToolCallExecuted','extend','2756WLzvrE','739808KvrrlO','UniverProMcp','McpToolCallReceived','FEventName','fireEvent','1763670vMcXPz','disconnectMCP'];_0x19ee=function(){return _0x406cc4;};return _0x19ee();}