@univerjs-pro/mcp 0.12.0 → 0.12.1-nightly.202511221011
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 +4 -4
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x1fb171=_0x30a5;(function(_0x24a7ca,_0x330617){const _0x447ab3=_0x30a5,_0x549fb0=_0x24a7ca();while(!![]){try{const _0x26a1fe=parseInt(_0x447ab3(0x9a))/0x1*(parseInt(_0x447ab3(0xa0))/0x2)+-parseInt(_0x447ab3(0x7d))/0x3+-parseInt(_0x447ab3(0x83))/0x4*(parseInt(_0x447ab3(0x94))/0x5)+parseInt(_0x447ab3(0x99))/0x6+parseInt(_0x447ab3(0x8c))/0x7+parseInt(_0x447ab3(0xa5))/0x8*(-parseInt(_0x447ab3(0x90))/0x9)+-parseInt(_0x447ab3(0xa4))/0xa*(-parseInt(_0x447ab3(0x92))/0xb);if(_0x26a1fe===_0x330617)break;else _0x549fb0['push'](_0x549fb0['shift']());}catch(_0x2fd00c){_0x549fb0['push'](_0x549fb0['shift']());}}}(_0x155a,0x18e91));function _0x30a5(_0x501aee,_0x521dcf){const _0x155ab0=_0x155a();return _0x30a5=function(_0x30a553,_0x5e9e3f){_0x30a553=_0x30a553-0x7d;let _0x2a5933=_0x155ab0[_0x30a553];return _0x2a5933;},_0x30a5(_0x501aee,_0x521dcf);}const e=require('@univerjs-pro/mcp'),i=require('@univerjs/core/facade'),l=require('@univerjs/core');class r{get[_0x1fb171(0x96)](){const _0x77f430=_0x1fb171;return e[_0x77f430(0x98)][_0x77f430(0x96)];}get[_0x1fb171(0x9f)](){const _0xea09fe=_0x1fb171;return e['MCPEventId'][_0xea09fe(0x9f)];}get[_0x1fb171(0x93)](){const _0x1cdefe=_0x1fb171;return e[_0x1cdefe(0x98)][_0x1cdefe(0x93)];}get[_0x1fb171(0x82)](){const _0x28f425=_0x1fb171;return e[_0x28f425(0x98)][_0x28f425(0x82)];}}i[_0x1fb171(0x89)][_0x1fb171(0x81)](r);class s extends i[_0x1fb171(0x7e)]{[_0x1fb171(0x8d)](_0x2d148a){const _0x3b2ee3=_0x1fb171;this[_0x3b2ee3(0x87)](_0x2d148a);}[_0x1fb171(0x87)](_0x25d68d){const _0x4aaf27=_0x1fb171,_0x12e97b=_0x25d68d['get'](e[_0x4aaf27(0xa3)]);this['registerEventHandler'](this['Event']['McpConnectionStatusChanged'],()=>l[_0x4aaf27(0x9d)](_0x12e97b[_0x4aaf27(0x7f)]['subscribe'](_0x371ff8=>{const _0x139eb9=_0x4aaf27;_0x371ff8[_0x139eb9(0xa6)]===e[_0x139eb9(0x98)][_0x139eb9(0x96)]&&this[_0x139eb9(0x8a)](this[_0x139eb9(0x8b)][_0x139eb9(0x96)],_0x371ff8[_0x139eb9(0x8f)]);}))),this[_0x4aaf27(0x91)](this[_0x4aaf27(0x8b)][_0x4aaf27(0x9f)],()=>l['toDisposable'](_0x12e97b[_0x4aaf27(0x7f)][_0x4aaf27(0x9c)](_0x3656a2=>{const _0x3462dd=_0x4aaf27;_0x3656a2['type']===e[_0x3462dd(0x98)][_0x3462dd(0x9f)]&&this[_0x3462dd(0x8a)](this[_0x3462dd(0x8b)][_0x3462dd(0x9f)],_0x3656a2[_0x3462dd(0x8f)]);}))),this[_0x4aaf27(0x91)](this[_0x4aaf27(0x8b)][_0x4aaf27(0x93)],()=>l[_0x4aaf27(0x9d)](_0x12e97b[_0x4aaf27(0x7f)][_0x4aaf27(0x9c)](_0x3c8af7=>{const _0x2cfa01=_0x4aaf27;_0x3c8af7[_0x2cfa01(0xa6)]===e[_0x2cfa01(0x98)][_0x2cfa01(0x93)]&&this[_0x2cfa01(0x8a)](this['Event'][_0x2cfa01(0x93)],_0x3c8af7[_0x2cfa01(0x8f)]);}))),this[_0x4aaf27(0x91)](this[_0x4aaf27(0x8b)]['McpToolCallFailed'],()=>l[_0x4aaf27(0x9d)](_0x12e97b['event$'][_0x4aaf27(0x9c)](_0x24f1a0=>{const _0x38da90=_0x4aaf27;_0x24f1a0[_0x38da90(0xa6)]===e[_0x38da90(0x98)][_0x38da90(0x82)]&&this[_0x38da90(0x8a)](this[_0x38da90(0x8b)]['McpToolCallFailed'],_0x24f1a0[_0x38da90(0x8f)]);})));}[_0x1fb171(0x9e)](_0x373479,_0x221dc4){const _0x33d39b=_0x1fb171;return this['_injector'][_0x33d39b(0xa7)](e[_0x33d39b(0x80)])[_0x33d39b(0xa1)](_0x373479,_0x221dc4);}['getAllMCPTools'](){const _0x9fcd3a=_0x1fb171;return this[_0x9fcd3a(0x9b)][_0x9fcd3a(0xa7)](e[_0x9fcd3a(0x80)])[_0x9fcd3a(0x86)]();}[_0x1fb171(0x88)](_0x2caa26,_0x280d2e){const _0x82a709=_0x1fb171;return this[_0x82a709(0x9b)][_0x82a709(0xa7)](e[_0x82a709(0x80)])[_0x82a709(0x85)](_0x2caa26,_0x280d2e);}[_0x1fb171(0x8e)](){const _0x260117=_0x1fb171;return this[_0x260117(0x9b)][_0x260117(0xa7)](e[_0x260117(0x84)])[_0x260117(0x97)]();}['connectMCP'](){const _0x19c5c8=_0x1fb171;this['_injector'][_0x19c5c8(0xa7)](e['MCPConnectionController'])[_0x19c5c8(0xa2)]();}[_0x1fb171(0x95)](){const _0x4a3c84=_0x1fb171;this[_0x4a3c84(0x9b)][_0x4a3c84(0xa7)](e['MCPConnectionController'])['disconnect']();}}function _0x155a(){const _0x52d422=['497457wPEBww','registerEventHandler','1409188MSIbOp','McpToolCallExecuted','32855OdXXUC','disconnectMCP','McpConnectionStatusChanged','getConnectionStatus','MCPEventId','19380qufjVu','4OLQnqG','_injector','subscribe','toDisposable','validateMCPToolCall','McpToolCallReceived','83716udwIOR','validateToolCall','connect','MCPEventService','10dgkGRO','24IaNwVv','type','get','478917buHucy','FUniver','event$','IMCPToolRegistry','extend','McpToolCallFailed','36sJGvGJ','MCPConnectionController','executeTool','getAllTools','_registerMCPFacadeEvents','callMCPTool','FEventName','fireEvent','Event','1315020CQYapX','_initialize','getMCPConnectionStatus','data'];_0x155a=function(){return _0x52d422;};return _0x155a();}i[_0x1fb171(0x7e)][_0x1fb171(0x81)](s);
|