@univerjs-pro/mcp 0.12.2-experimental.20251201-5b27b55 → 0.12.2-experimental.20251202-7f1a98f
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/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +3 -3
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0xa1e3(_0x331ac0,_0x58ff27){const _0x30d337=_0x30d3();return _0xa1e3=function(_0xa1e3a0,_0x4ce2ab){_0xa1e3a0=_0xa1e3a0-0x15b;let _0x30bbfa=_0x30d337[_0xa1e3a0];return _0x30bbfa;},_0xa1e3(_0x331ac0,_0x58ff27);}(function(_0x25be44,_0x2fb22d){const _0x559035=_0xa1e3,_0x34c92c=_0x25be44();while(!![]){try{const _0x322313=parseInt(_0x559035(0x16d))/0x1*(-parseInt(_0x559035(0x160))/0x2)+-parseInt(_0x559035(0x17f))/0x3*(parseInt(_0x559035(0x164))/0x4)+-parseInt(_0x559035(0x189))/0x5+parseInt(_0x559035(0x163))/0x6*(parseInt(_0x559035(0x15c))/0x7)+parseInt(_0x559035(0x188))/0x8*(parseInt(_0x559035(0x176))/0x9)+parseInt(_0x559035(0x166))/0xa*(-parseInt(_0x559035(0x179))/0xb)+parseInt(_0x559035(0x170))/0xc;if(_0x322313===_0x2fb22d)break;else _0x34c92c['push'](_0x34c92c['shift']());}catch(_0x5eb235){_0x34c92c['push'](_0x34c92c['shift']());}}}(_0x30d3,0x86e24),function(_0x5410d3,_0x248e74){const _0x483058=_0xa1e3;typeof exports=='object'&&typeof module<'u'?_0x248e74(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define=='function'&&define[_0x483058(0x15f)]?define([_0x483058(0x177),_0x483058(0x174),_0x483058(0x16e)],_0x248e74):(_0x5410d3=typeof globalThis<'u'?globalThis:_0x5410d3||self,_0x248e74(_0x5410d3[_0x483058(0x17d)],_0x5410d3[_0x483058(0x168)],_0x5410d3[_0x483058(0x183)]));}(this,function(_0x36820b,_0x3260f8,_0x19c890){'use strict';const _0x239360=_0xa1e3;class _0x2f9b87{get[_0x239360(0x172)](){const _0x10e994=_0x239360;return _0x36820b[_0x10e994(0x18a)][_0x10e994(0x172)];}get['McpToolCallReceived'](){return _0x36820b['MCPEventId']['McpToolCallReceived'];}get[_0x239360(0x185)](){const _0xbce1f4=_0x239360;return _0x36820b[_0xbce1f4(0x18a)][_0xbce1f4(0x185)];}get[_0x239360(0x16f)](){const _0x25bb9b=_0x239360;return _0x36820b[_0x25bb9b(0x18a)]['McpToolCallFailed'];}}_0x3260f8[_0x239360(0x17c)][_0x239360(0x184)](_0x2f9b87);class _0x35eabd extends _0x3260f8[_0x239360(0x16a)]{[_0x239360(0x181)](_0x23561e){this['_registerMCPFacadeEvents'](_0x23561e);}['_registerMCPFacadeEvents'](_0x58151b){const _0x683fda=_0x239360,_0x1bc1fd=_0x58151b['get'](_0x36820b[_0x683fda(0x162)]);this['registerEventHandler'](this[_0x683fda(0x175)]['McpConnectionStatusChanged'],()=>_0x19c890[_0x683fda(0x165)](_0x1bc1fd[_0x683fda(0x178)]['subscribe'](_0x358990=>{const _0x56491c=_0x683fda;_0x358990[_0x56491c(0x17a)]===_0x36820b[_0x56491c(0x18a)][_0x56491c(0x172)]&&this[_0x56491c(0x15b)](this[_0x56491c(0x175)]['McpConnectionStatusChanged'],_0x358990['data']);}))),this[_0x683fda(0x16c)](this[_0x683fda(0x175)]['McpToolCallReceived'],()=>_0x19c890['toDisposable'](_0x1bc1fd[_0x683fda(0x178)]['subscribe'](_0x29a1bb=>{const _0x228744=_0x683fda;_0x29a1bb[_0x228744(0x17a)]===_0x36820b['MCPEventId'][_0x228744(0x173)]&&this[_0x228744(0x15b)](this[_0x228744(0x175)][_0x228744(0x173)],_0x29a1bb[_0x228744(0x161)]);}))),this[_0x683fda(0x16c)](this['Event'][_0x683fda(0x185)],()=>_0x19c890[_0x683fda(0x165)](_0x1bc1fd[_0x683fda(0x178)][_0x683fda(0x187)](_0xa4a3e2=>{const _0x227695=_0x683fda;_0xa4a3e2[_0x227695(0x17a)]===_0x36820b['MCPEventId'][_0x227695(0x185)]&&this[_0x227695(0x15b)](this[_0x227695(0x175)]['McpToolCallExecuted'],_0xa4a3e2[_0x227695(0x161)]);}))),this[_0x683fda(0x16c)](this[_0x683fda(0x175)][_0x683fda(0x16f)],()=>_0x19c890[_0x683fda(0x165)](_0x1bc1fd[_0x683fda(0x178)][_0x683fda(0x187)](_0x564c09=>{const _0x5b9bcb=_0x683fda;_0x564c09[_0x5b9bcb(0x17a)]===_0x36820b['MCPEventId']['McpToolCallFailed']&&this[_0x5b9bcb(0x15b)](this['Event'][_0x5b9bcb(0x16f)],_0x564c09[_0x5b9bcb(0x161)]);})));}[_0x239360(0x182)](_0x270bb2,_0x2865f1){const _0x4c3d81=_0x239360;return this[_0x4c3d81(0x17b)][_0x4c3d81(0x16b)](_0x36820b['IMCPToolRegistry'])[_0x4c3d81(0x180)](_0x270bb2,_0x2865f1);}[_0x239360(0x171)](){const _0x2bfeed=_0x239360;return this[_0x2bfeed(0x17b)][_0x2bfeed(0x16b)](_0x36820b[_0x2bfeed(0x167)])[_0x2bfeed(0x15d)]();}['callMCPTool'](_0x51fc39,_0x3a8510){const _0x333a3c=_0x239360;return this[_0x333a3c(0x17b)]['get'](_0x36820b[_0x333a3c(0x167)])['executeTool'](_0x51fc39,_0x3a8510);}['getMCPConnectionStatus'](){const _0x1a1b5a=_0x239360;return this[_0x1a1b5a(0x17b)][_0x1a1b5a(0x16b)](_0x36820b[_0x1a1b5a(0x15e)])['getConnectionStatus']();}[_0x239360(0x17e)](){const _0x4c6dbe=_0x239360;this[_0x4c6dbe(0x17b)][_0x4c6dbe(0x16b)](_0x36820b[_0x4c6dbe(0x15e)])[_0x4c6dbe(0x186)]();}[_0x239360(0x169)](){const _0x2e6b30=_0x239360;this[_0x2e6b30(0x17b)][_0x2e6b30(0x16b)](_0x36820b[_0x2e6b30(0x15e)])['disconnect']();}}_0x3260f8[_0x239360(0x16a)][_0x239360(0x184)](_0x35eabd);}));function _0x30d3(){const _0x2144e0=['1249947TSMkyr','validateToolCall','_initialize','validateMCPToolCall','UniverCore','extend','McpToolCallExecuted','connect','subscribe','696VTjECw','4752045YeZfGQ','MCPEventId','fireEvent','28eIkOQb','getAllTools','MCPConnectionController','amd','936842gLRaXI','data','MCPEventService','1287798cCzBZR','4eHfZxM','toDisposable','10xWefbD','IMCPToolRegistry','UniverCoreFacade','disconnectMCP','FUniver','get','registerEventHandler','1XHRLji','@univerjs/core','McpToolCallFailed','21828744FgkWkl','getAllMCPTools','McpConnectionStatusChanged','McpToolCallReceived','@univerjs/core/facade','Event','50364stwYlk','@univerjs-pro/mcp','event$','8541313pmfcid','type','_injector','FEventName','UniverProMcp','connectMCP'];_0x30d3=function(){return _0x2144e0;};return _0x30d3();}
|