@univerjs-pro/mcp 0.11.0 → 0.12.0-nightly.202511220628
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 +5 -5
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function _0x5643(_0x130f04,_0x53a9d0){const _0x47f43a=_0x47f4();return _0x5643=function(_0x5643d0,_0x2d24e6){_0x5643d0=_0x5643d0-0xa0;let _0x2c1fac=_0x47f43a[_0x5643d0];return _0x2c1fac;},_0x5643(_0x130f04,_0x53a9d0);}const _0x1bd437=_0x5643;(function(_0x5892ee,_0x53f71b){const _0x42380c=_0x5643,_0x4045b0=_0x5892ee();while(!![]){try{const _0x5e2a39=-parseInt(_0x42380c(0xc0))/0x1*(-parseInt(_0x42380c(0xaf))/0x2)+-parseInt(_0x42380c(0xc4))/0x3*(parseInt(_0x42380c(0xac))/0x4)+-parseInt(_0x42380c(0xc7))/0x5+-parseInt(_0x42380c(0xa3))/0x6+-parseInt(_0x42380c(0xb2))/0x7+-parseInt(_0x42380c(0xc2))/0x8*(parseInt(_0x42380c(0xc5))/0x9)+parseInt(_0x42380c(0xad))/0xa*(parseInt(_0x42380c(0xc9))/0xb);if(_0x5e2a39===_0x53f71b)break;else _0x4045b0['push'](_0x4045b0['shift']());}catch(_0x2401c6){_0x4045b0['push'](_0x4045b0['shift']());}}}(_0x47f4,0x705da));function _0x47f4(){const _0x140775=['McpToolCallReceived','3430504UqGXBd','getMCPConnectionStatus','event$','fireEvent','getAllMCPTools','_initialize','get','MCPConnectionController','FEventName','extend','_injector','MCPEventService','getConnectionStatus','validateMCPToolCall','125206INTGfv','connect','1296056bAedcA','subscribe','120sPQyVe','27VXSHXn','FUniver','514450aVLMWN','disconnect','889262QwDECg','type','data','registerEventHandler','_registerMCPFacadeEvents','4118310PbxfVb','Event','McpToolCallExecuted','McpToolCallFailed','getAllTools','IMCPToolRegistry','validateToolCall','MCPEventId','executeTool','148byOhBy','260gSJxvO','McpConnectionStatusChanged','2qhMsZJ','toDisposable'];_0x47f4=function(){return _0x140775;};return _0x47f4();}const e=require('@univerjs-pro/mcp'),i=require('@univerjs/core/facade'),l=require('@univerjs/core');class r{get[_0x1bd437(0xae)](){const _0x40b20f=_0x1bd437;return e[_0x40b20f(0xaa)]['McpConnectionStatusChanged'];}get[_0x1bd437(0xb1)](){const _0x4acdbf=_0x1bd437;return e[_0x4acdbf(0xaa)][_0x4acdbf(0xb1)];}get[_0x1bd437(0xa5)](){const _0x21b136=_0x1bd437;return e[_0x21b136(0xaa)][_0x21b136(0xa5)];}get[_0x1bd437(0xa6)](){const _0x4c2231=_0x1bd437;return e[_0x4c2231(0xaa)]['McpToolCallFailed'];}}i[_0x1bd437(0xba)][_0x1bd437(0xbb)](r);class s extends i[_0x1bd437(0xc6)]{[_0x1bd437(0xb7)](_0x25ade9){this['_registerMCPFacadeEvents'](_0x25ade9);}[_0x1bd437(0xa2)](_0x3357dc){const _0x47dea2=_0x1bd437,_0x26d7f9=_0x3357dc[_0x47dea2(0xb8)](e[_0x47dea2(0xbd)]);this[_0x47dea2(0xa1)](this[_0x47dea2(0xa4)]['McpConnectionStatusChanged'],()=>l[_0x47dea2(0xb0)](_0x26d7f9['event$'][_0x47dea2(0xc3)](_0x24dbdb=>{const _0x32a627=_0x47dea2;_0x24dbdb[_0x32a627(0xca)]===e[_0x32a627(0xaa)][_0x32a627(0xae)]&&this[_0x32a627(0xb5)](this[_0x32a627(0xa4)][_0x32a627(0xae)],_0x24dbdb[_0x32a627(0xa0)]);}))),this[_0x47dea2(0xa1)](this[_0x47dea2(0xa4)][_0x47dea2(0xb1)],()=>l[_0x47dea2(0xb0)](_0x26d7f9[_0x47dea2(0xb4)][_0x47dea2(0xc3)](_0x18a745=>{const _0x4aa405=_0x47dea2;_0x18a745['type']===e[_0x4aa405(0xaa)][_0x4aa405(0xb1)]&&this[_0x4aa405(0xb5)](this['Event'][_0x4aa405(0xb1)],_0x18a745[_0x4aa405(0xa0)]);}))),this[_0x47dea2(0xa1)](this['Event']['McpToolCallExecuted'],()=>l[_0x47dea2(0xb0)](_0x26d7f9[_0x47dea2(0xb4)]['subscribe'](_0x53db29=>{const _0x4a02bb=_0x47dea2;_0x53db29['type']===e[_0x4a02bb(0xaa)][_0x4a02bb(0xa5)]&&this[_0x4a02bb(0xb5)](this[_0x4a02bb(0xa4)][_0x4a02bb(0xa5)],_0x53db29['data']);}))),this[_0x47dea2(0xa1)](this[_0x47dea2(0xa4)][_0x47dea2(0xa6)],()=>l[_0x47dea2(0xb0)](_0x26d7f9[_0x47dea2(0xb4)]['subscribe'](_0x58335f=>{const _0x255035=_0x47dea2;_0x58335f['type']===e[_0x255035(0xaa)][_0x255035(0xa6)]&&this[_0x255035(0xb5)](this[_0x255035(0xa4)][_0x255035(0xa6)],_0x58335f[_0x255035(0xa0)]);})));}[_0x1bd437(0xbf)](_0xa50f21,_0x5e6277){const _0x2ad499=_0x1bd437;return this[_0x2ad499(0xbc)][_0x2ad499(0xb8)](e[_0x2ad499(0xa8)])[_0x2ad499(0xa9)](_0xa50f21,_0x5e6277);}[_0x1bd437(0xb6)](){const _0x3ad544=_0x1bd437;return this['_injector']['get'](e['IMCPToolRegistry'])[_0x3ad544(0xa7)]();}['callMCPTool'](_0x37f58a,_0x333599){const _0x1cf2b7=_0x1bd437;return this[_0x1cf2b7(0xbc)][_0x1cf2b7(0xb8)](e[_0x1cf2b7(0xa8)])[_0x1cf2b7(0xab)](_0x37f58a,_0x333599);}[_0x1bd437(0xb3)](){const _0x10f187=_0x1bd437;return this[_0x10f187(0xbc)][_0x10f187(0xb8)](e[_0x10f187(0xb9)])[_0x10f187(0xbe)]();}['connectMCP'](){const _0x4a440d=_0x1bd437;this['_injector']['get'](e[_0x4a440d(0xb9)])[_0x4a440d(0xc1)]();}['disconnectMCP'](){const _0x1bdd58=_0x1bd437;this[_0x1bdd58(0xbc)][_0x1bdd58(0xb8)](e[_0x1bdd58(0xb9)])[_0x1bdd58(0xc8)]();}}i[_0x1bd437(0xc6)]['extend'](s);
|