@univerjs-pro/mcp 0.12.3-experimental.20251205-8c9a6bf → 0.12.3-nightly.202512060617
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/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0xc8dc(_0x490f6f,_0x2360f1){_0x490f6f=_0x490f6f-0x1bd;const _0x14a6db=_0x14a6();let _0xc8dc35=_0x14a6db[_0x490f6f];return _0xc8dc35;}const _0x4ab902=_0xc8dc;(function(_0x1cd8fb,_0x2f91b8){const _0x4b65a9=_0xc8dc,_0x20e5f7=_0x1cd8fb();while(!![]){try{const _0x46e4fe=parseInt(_0x4b65a9(0x1d0))/0x1+-parseInt(_0x4b65a9(0x1c7))/0x2*(parseInt(_0x4b65a9(0x1d8))/0x3)+-parseInt(_0x4b65a9(0x1d9))/0x4*(parseInt(_0x4b65a9(0x1e6))/0x5)+parseInt(_0x4b65a9(0x1c1))/0x6*(parseInt(_0x4b65a9(0x1d5))/0x7)+-parseInt(_0x4b65a9(0x1e2))/0x8+parseInt(_0x4b65a9(0x1d1))/0x9+parseInt(_0x4b65a9(0x1dd))/0xa;if(_0x46e4fe===_0x2f91b8)break;else _0x20e5f7['push'](_0x20e5f7['shift']());}catch(_0x10272c){_0x20e5f7['push'](_0x20e5f7['shift']());}}}(_0x14a6,0x7e4a2));const e=require('@univerjs-pro/mcp'),i=require('@univerjs/core/facade'),l=require('@univerjs/core');function _0x14a6(){const _0x3964f8=['get','McpToolCallExecuted','405180sRuVWc','extend','connect','_initialize','FEventName','disconnectMCP','disconnect','getAllMCPTools','McpToolCallFailed','515476tpYoBR','4652397ZlinMQ','registerEventHandler','connectMCP','fireEvent','42tIFNyv','_registerMCPFacadeEvents','Event','9riFxlF','4PrUiFn','MCPConnectionController','MCPEventId','getAllTools','9321780hedmum','validateMCPToolCall','FUniver','data','IMCPToolRegistry','3476928mGaARo','MCPEventService','type','getMCPConnectionStatus','4835265nynBnl','_injector','McpConnectionStatusChanged','callMCPTool','subscribe','562134BlGMtz','toDisposable','McpToolCallReceived','event$'];_0x14a6=function(){return _0x3964f8;};return _0x14a6();}class r{get[_0x4ab902(0x1be)](){const _0x4ee4fb=_0x4ab902;return e['MCPEventId'][_0x4ee4fb(0x1be)];}get[_0x4ab902(0x1c3)](){return e['MCPEventId']['McpToolCallReceived'];}get[_0x4ab902(0x1c6)](){const _0x321dbb=_0x4ab902;return e[_0x321dbb(0x1db)][_0x321dbb(0x1c6)];}get['McpToolCallFailed'](){const _0xc58a45=_0x4ab902;return e[_0xc58a45(0x1db)][_0xc58a45(0x1cf)];}}i[_0x4ab902(0x1cb)][_0x4ab902(0x1c8)](r);class s extends i[_0x4ab902(0x1df)]{[_0x4ab902(0x1ca)](_0x409752){const _0x13f091=_0x4ab902;this[_0x13f091(0x1d6)](_0x409752);}[_0x4ab902(0x1d6)](_0x2714fe){const _0x130eb0=_0x4ab902,_0xddf1ae=_0x2714fe[_0x130eb0(0x1c5)](e[_0x130eb0(0x1e3)]);this[_0x130eb0(0x1d2)](this['Event'][_0x130eb0(0x1be)],()=>l[_0x130eb0(0x1c2)](_0xddf1ae[_0x130eb0(0x1c4)][_0x130eb0(0x1c0)](_0x34e902=>{const _0x3b3835=_0x130eb0;_0x34e902[_0x3b3835(0x1e4)]===e[_0x3b3835(0x1db)]['McpConnectionStatusChanged']&&this['fireEvent'](this['Event'][_0x3b3835(0x1be)],_0x34e902[_0x3b3835(0x1e0)]);}))),this[_0x130eb0(0x1d2)](this[_0x130eb0(0x1d7)][_0x130eb0(0x1c3)],()=>l[_0x130eb0(0x1c2)](_0xddf1ae[_0x130eb0(0x1c4)][_0x130eb0(0x1c0)](_0x37eba1=>{const _0x4c706d=_0x130eb0;_0x37eba1['type']===e[_0x4c706d(0x1db)][_0x4c706d(0x1c3)]&&this['fireEvent'](this[_0x4c706d(0x1d7)][_0x4c706d(0x1c3)],_0x37eba1[_0x4c706d(0x1e0)]);}))),this['registerEventHandler'](this[_0x130eb0(0x1d7)][_0x130eb0(0x1c6)],()=>l[_0x130eb0(0x1c2)](_0xddf1ae[_0x130eb0(0x1c4)][_0x130eb0(0x1c0)](_0x117565=>{const _0x363227=_0x130eb0;_0x117565[_0x363227(0x1e4)]===e[_0x363227(0x1db)][_0x363227(0x1c6)]&&this[_0x363227(0x1d4)](this[_0x363227(0x1d7)][_0x363227(0x1c6)],_0x117565[_0x363227(0x1e0)]);}))),this[_0x130eb0(0x1d2)](this[_0x130eb0(0x1d7)][_0x130eb0(0x1cf)],()=>l[_0x130eb0(0x1c2)](_0xddf1ae[_0x130eb0(0x1c4)][_0x130eb0(0x1c0)](_0x1b31fb=>{const _0x2fe9bd=_0x130eb0;_0x1b31fb['type']===e['MCPEventId'][_0x2fe9bd(0x1cf)]&&this['fireEvent'](this[_0x2fe9bd(0x1d7)][_0x2fe9bd(0x1cf)],_0x1b31fb[_0x2fe9bd(0x1e0)]);})));}[_0x4ab902(0x1de)](_0x704fb0,_0x58cc4f){const _0x26f6b2=_0x4ab902;return this[_0x26f6b2(0x1bd)][_0x26f6b2(0x1c5)](e[_0x26f6b2(0x1e1)])['validateToolCall'](_0x704fb0,_0x58cc4f);}[_0x4ab902(0x1ce)](){const _0x440b71=_0x4ab902;return this[_0x440b71(0x1bd)][_0x440b71(0x1c5)](e[_0x440b71(0x1e1)])[_0x440b71(0x1dc)]();}[_0x4ab902(0x1bf)](_0x2b59f3,_0x4b6b57){const _0xbee39a=_0x4ab902;return this[_0xbee39a(0x1bd)][_0xbee39a(0x1c5)](e['IMCPToolRegistry'])['executeTool'](_0x2b59f3,_0x4b6b57);}[_0x4ab902(0x1e5)](){const _0x3f0212=_0x4ab902;return this[_0x3f0212(0x1bd)][_0x3f0212(0x1c5)](e[_0x3f0212(0x1da)])['getConnectionStatus']();}[_0x4ab902(0x1d3)](){const _0x36cef8=_0x4ab902;this[_0x36cef8(0x1bd)][_0x36cef8(0x1c5)](e[_0x36cef8(0x1da)])[_0x36cef8(0x1c9)]();}[_0x4ab902(0x1cc)](){const _0x52f5ad=_0x4ab902;this[_0x52f5ad(0x1bd)][_0x52f5ad(0x1c5)](e[_0x52f5ad(0x1da)])[_0x52f5ad(0x1cd)]();}}i[_0x4ab902(0x1df)]['extend'](s);
|