@univerjs-pro/mcp 0.15.2 → 0.15.3-insiders.20260131-cbd5fac
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 +6 -5
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x2bbcdd=_0x4e9e;(function(_0x151b83,_0x204285){const _0x983c45=_0x4e9e,_0x81c1f6=_0x151b83();while(!![]){try{const _0x5b2667=parseInt(_0x983c45(0x1c3))/0x1+parseInt(_0x983c45(0x1c4))/0x2*(parseInt(_0x983c45(0x1c9))/0x3)+-parseInt(_0x983c45(0x1c2))/0x4*(parseInt(_0x983c45(0x1bc))/0x5)+-parseInt(_0x983c45(0x1c5))/0x6+-parseInt(_0x983c45(0x1c6))/0x7+-parseInt(_0x983c45(0x1ad))/0x8+parseInt(_0x983c45(0x1b3))/0x9;if(_0x5b2667===_0x204285)break;else _0x81c1f6['push'](_0x81c1f6['shift']());}catch(_0x3870e1){_0x81c1f6['push'](_0x81c1f6['shift']());}}}(_0x57ba,0x7e9be));const e=require('@univerjs-pro/mcp'),l=require('@univerjs/core/facade'),i=require('@univerjs/core');function _0x4e9e(_0x58177c,_0x5d07a3){_0x58177c=_0x58177c-0x1a7;const _0x57baa0=_0x57ba();let _0x4e9ea8=_0x57baa0[_0x58177c];return _0x4e9ea8;}class s{get[_0x2bbcdd(0x1b8)](){const _0x367885=_0x2bbcdd;return e[_0x367885(0x1b7)][_0x367885(0x1b8)];}get[_0x2bbcdd(0x1b4)](){const _0x8a4c0=_0x2bbcdd;return e[_0x8a4c0(0x1b7)][_0x8a4c0(0x1b4)];}get[_0x2bbcdd(0x1bd)](){const _0x31b188=_0x2bbcdd;return e['MCPEventId'][_0x31b188(0x1bd)];}get[_0x2bbcdd(0x1a8)](){const _0x56dcf2=_0x2bbcdd;return e[_0x56dcf2(0x1b7)]['McpToolCallFailed'];}}function _0x57ba(){const _0xa2dc68=['2659608LdCYSu','toDisposable','IMCPToolRegistry','MCPEventService','fireEvent','getMCPConnectionStatus','11404530rtKINg','McpToolCallReceived','disconnect','get','MCPEventId','McpConnectionStatusChanged','disconnectMCP','data','Event','5vhdvHu','McpToolCallExecuted','connectMCP','subscribe','_injector','event$','462212yybIlF','435313npsbsR','14662KkDDsR','1633302dAEtUJ','5708920ggWVcM','executeTool','FUniver','144wgJbBw','disposeWithMe','callMCPTool','McpToolCallFailed','connect','type','registerEventHandler','MCPConnectionController'];_0x57ba=function(){return _0xa2dc68;};return _0x57ba();}l['FEventName']['extend'](s);class r extends l[_0x2bbcdd(0x1c8)]{['_initialize'](_0x3207f1){this['_registerMCPFacadeEvents'](_0x3207f1);}['_registerMCPFacadeEvents'](_0x3fdf12){const _0x18a6f1=_0x2bbcdd,_0x31fe5b=_0x3fdf12[_0x18a6f1(0x1b6)](e[_0x18a6f1(0x1b0)]);this[_0x18a6f1(0x1ca)](this[_0x18a6f1(0x1ab)](this[_0x18a6f1(0x1bb)][_0x18a6f1(0x1b8)],()=>i[_0x18a6f1(0x1ae)](_0x31fe5b[_0x18a6f1(0x1c1)][_0x18a6f1(0x1bf)](_0x38d74b=>{const _0x3f9ec2=_0x18a6f1;_0x38d74b[_0x3f9ec2(0x1aa)]===e[_0x3f9ec2(0x1b7)][_0x3f9ec2(0x1b8)]&&this[_0x3f9ec2(0x1b1)](this[_0x3f9ec2(0x1bb)][_0x3f9ec2(0x1b8)],_0x38d74b[_0x3f9ec2(0x1ba)]);})))),this['disposeWithMe'](this[_0x18a6f1(0x1ab)](this[_0x18a6f1(0x1bb)][_0x18a6f1(0x1b4)],()=>i['toDisposable'](_0x31fe5b[_0x18a6f1(0x1c1)][_0x18a6f1(0x1bf)](_0x1e128a=>{const _0x126a62=_0x18a6f1;_0x1e128a[_0x126a62(0x1aa)]===e[_0x126a62(0x1b7)][_0x126a62(0x1b4)]&&this[_0x126a62(0x1b1)](this[_0x126a62(0x1bb)]['McpToolCallReceived'],_0x1e128a[_0x126a62(0x1ba)]);})))),this[_0x18a6f1(0x1ca)](this['registerEventHandler'](this[_0x18a6f1(0x1bb)][_0x18a6f1(0x1bd)],()=>i['toDisposable'](_0x31fe5b['event$']['subscribe'](_0x5a3703=>{const _0x41cf78=_0x18a6f1;_0x5a3703[_0x41cf78(0x1aa)]===e[_0x41cf78(0x1b7)]['McpToolCallExecuted']&&this[_0x41cf78(0x1b1)](this[_0x41cf78(0x1bb)]['McpToolCallExecuted'],_0x5a3703[_0x41cf78(0x1ba)]);})))),this[_0x18a6f1(0x1ca)](this[_0x18a6f1(0x1ab)](this['Event'][_0x18a6f1(0x1a8)],()=>i[_0x18a6f1(0x1ae)](_0x31fe5b[_0x18a6f1(0x1c1)][_0x18a6f1(0x1bf)](_0x4d84ba=>{const _0x3f754f=_0x18a6f1;_0x4d84ba[_0x3f754f(0x1aa)]===e[_0x3f754f(0x1b7)]['McpToolCallFailed']&&this[_0x3f754f(0x1b1)](this[_0x3f754f(0x1bb)][_0x3f754f(0x1a8)],_0x4d84ba['data']);}))));}['validateMCPToolCall'](_0x3e951d,_0x28fb7f){const _0x206b9e=_0x2bbcdd;return this[_0x206b9e(0x1c0)][_0x206b9e(0x1b6)](e[_0x206b9e(0x1af)])['validateToolCall'](_0x3e951d,_0x28fb7f);}['getAllMCPTools'](){const _0x22ff53=_0x2bbcdd;return this['_injector'][_0x22ff53(0x1b6)](e[_0x22ff53(0x1af)])['getAllTools']();}[_0x2bbcdd(0x1a7)](_0x365241,_0x2d6a68){const _0x28277b=_0x2bbcdd;return this[_0x28277b(0x1c0)][_0x28277b(0x1b6)](e[_0x28277b(0x1af)])[_0x28277b(0x1c7)](_0x365241,_0x2d6a68);}[_0x2bbcdd(0x1b2)](){const _0x201007=_0x2bbcdd;return this[_0x201007(0x1c0)][_0x201007(0x1b6)](e[_0x201007(0x1ac)])['getConnectionStatus']();}[_0x2bbcdd(0x1be)](){const _0x52a2cc=_0x2bbcdd;this[_0x52a2cc(0x1c0)][_0x52a2cc(0x1b6)](e['MCPConnectionController'])[_0x52a2cc(0x1a9)]();}[_0x2bbcdd(0x1b9)](){const _0x1d6b8c=_0x2bbcdd;this[_0x1d6b8c(0x1c0)][_0x1d6b8c(0x1b6)](e[_0x1d6b8c(0x1ac)])[_0x1d6b8c(0x1b5)]();}}l[_0x2bbcdd(0x1c8)]['extend'](r);
|