@univerjs-pro/mcp 0.12.1 → 0.12.2-experimental.20251201-5b27b55
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 -6
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x4605(_0x507af3,_0x567440){const _0x52aac7=_0x52aa();return _0x4605=function(_0x4605db,_0x436a9e){_0x4605db=_0x4605db-0x138;let _0x1585e4=_0x52aac7[_0x4605db];return _0x1585e4;},_0x4605(_0x507af3,_0x567440);}function _0x52aa(){const _0x1b4742=['toDisposable','event$','disconnectMCP','134584CkeEKE','12wzZDeo','getAllMCPTools','1541749Juekgp','_injector','executeTool','getConnectionStatus','data','McpConnectionStatusChanged','UniverCore','9525DqLsEp','McpToolCallExecuted','1095165tKcDQW','MCPConnectionController','McpToolCallReceived','Event','registerEventHandler','130tjjrYf','FEventName','validateMCPToolCall','27582lqEDfw','UniverProMcp','@univerjs/core','@univerjs-pro/mcp','extend','212SgadHW','function','IMCPToolRegistry','FUniver','21kHcNKv','subscribe','241894xXVknI','McpToolCallFailed','disconnect','30Geawac','MCPEventId','fireEvent','get','84644XwamPP','type','connect','object','_registerMCPFacadeEvents'];_0x52aa=function(){return _0x1b4742;};return _0x52aa();}(function(_0x462d3a,_0x562296){const _0x235fe0=_0x4605,_0x1246ca=_0x462d3a();while(!![]){try{const _0x24b9a9=parseInt(_0x235fe0(0x14a))/0x1+-parseInt(_0x235fe0(0x143))/0x2+-parseInt(_0x235fe0(0x15c))/0x3*(-parseInt(_0x235fe0(0x13d))/0x4)+-parseInt(_0x235fe0(0x163))/0x5*(parseInt(_0x235fe0(0x138))/0x6)+-parseInt(_0x235fe0(0x141))/0x7*(parseInt(_0x235fe0(0x152))/0x8)+-parseInt(_0x235fe0(0x15e))/0x9*(-parseInt(_0x235fe0(0x146))/0xa)+parseInt(_0x235fe0(0x155))/0xb*(-parseInt(_0x235fe0(0x153))/0xc);if(_0x24b9a9===_0x562296)break;else _0x1246ca['push'](_0x1246ca['shift']());}catch(_0x183bb3){_0x1246ca['push'](_0x1246ca['shift']());}}}(_0x52aa,0x2d9fd),function(_0x24a04d,_0x5bfc48){const _0x383487=_0x4605;typeof exports==_0x383487(0x14d)&&typeof module<'u'?_0x5bfc48(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x383487(0x13e)&&define['amd']?define([_0x383487(0x13b),'@univerjs/core/facade',_0x383487(0x13a)],_0x5bfc48):(_0x24a04d=typeof globalThis<'u'?globalThis:_0x24a04d||self,_0x5bfc48(_0x24a04d[_0x383487(0x139)],_0x24a04d['UniverCoreFacade'],_0x24a04d[_0x383487(0x15b)]));}(this,function(_0x3e3bc7,_0x17c544,_0x27ef2e){'use strict';const _0x1cf59f=_0x4605;class _0x3a89d6{get[_0x1cf59f(0x15a)](){const _0x4ffa9d=_0x1cf59f;return _0x3e3bc7['MCPEventId'][_0x4ffa9d(0x15a)];}get[_0x1cf59f(0x160)](){const _0x4e6676=_0x1cf59f;return _0x3e3bc7[_0x4e6676(0x147)][_0x4e6676(0x160)];}get[_0x1cf59f(0x15d)](){const _0xcdd15f=_0x1cf59f;return _0x3e3bc7['MCPEventId'][_0xcdd15f(0x15d)];}get['McpToolCallFailed'](){const _0x22b1d4=_0x1cf59f;return _0x3e3bc7[_0x22b1d4(0x147)][_0x22b1d4(0x144)];}}_0x17c544[_0x1cf59f(0x164)][_0x1cf59f(0x13c)](_0x3a89d6);class _0x1ea160 extends _0x17c544[_0x1cf59f(0x140)]{['_initialize'](_0x1f67e5){const _0x1325c9=_0x1cf59f;this[_0x1325c9(0x14e)](_0x1f67e5);}[_0x1cf59f(0x14e)](_0x2dd2bd){const _0xa208f3=_0x1cf59f,_0x20a23a=_0x2dd2bd['get'](_0x3e3bc7['MCPEventService']);this[_0xa208f3(0x162)](this[_0xa208f3(0x161)]['McpConnectionStatusChanged'],()=>_0x27ef2e[_0xa208f3(0x14f)](_0x20a23a['event$']['subscribe'](_0x9ce5e6=>{const _0x13779a=_0xa208f3;_0x9ce5e6['type']===_0x3e3bc7[_0x13779a(0x147)][_0x13779a(0x15a)]&&this[_0x13779a(0x148)](this[_0x13779a(0x161)][_0x13779a(0x15a)],_0x9ce5e6['data']);}))),this[_0xa208f3(0x162)](this[_0xa208f3(0x161)][_0xa208f3(0x160)],()=>_0x27ef2e['toDisposable'](_0x20a23a[_0xa208f3(0x150)][_0xa208f3(0x142)](_0xed990d=>{const _0x52f9ea=_0xa208f3;_0xed990d[_0x52f9ea(0x14b)]===_0x3e3bc7[_0x52f9ea(0x147)][_0x52f9ea(0x160)]&&this['fireEvent'](this['Event'][_0x52f9ea(0x160)],_0xed990d[_0x52f9ea(0x159)]);}))),this[_0xa208f3(0x162)](this[_0xa208f3(0x161)][_0xa208f3(0x15d)],()=>_0x27ef2e[_0xa208f3(0x14f)](_0x20a23a[_0xa208f3(0x150)][_0xa208f3(0x142)](_0x4e18cb=>{const _0x544589=_0xa208f3;_0x4e18cb[_0x544589(0x14b)]===_0x3e3bc7[_0x544589(0x147)]['McpToolCallExecuted']&&this[_0x544589(0x148)](this[_0x544589(0x161)][_0x544589(0x15d)],_0x4e18cb[_0x544589(0x159)]);}))),this[_0xa208f3(0x162)](this['Event'][_0xa208f3(0x144)],()=>_0x27ef2e['toDisposable'](_0x20a23a[_0xa208f3(0x150)][_0xa208f3(0x142)](_0x468f6a=>{const _0x483a46=_0xa208f3;_0x468f6a['type']===_0x3e3bc7['MCPEventId'][_0x483a46(0x144)]&&this[_0x483a46(0x148)](this[_0x483a46(0x161)][_0x483a46(0x144)],_0x468f6a[_0x483a46(0x159)]);})));}[_0x1cf59f(0x165)](_0xd049f7,_0x33c6f0){const _0x4bc51c=_0x1cf59f;return this[_0x4bc51c(0x156)]['get'](_0x3e3bc7[_0x4bc51c(0x13f)])['validateToolCall'](_0xd049f7,_0x33c6f0);}[_0x1cf59f(0x154)](){const _0x1e129a=_0x1cf59f;return this[_0x1e129a(0x156)]['get'](_0x3e3bc7['IMCPToolRegistry'])['getAllTools']();}['callMCPTool'](_0x54ab1a,_0xd258bf){const _0x3b3c45=_0x1cf59f;return this['_injector'][_0x3b3c45(0x149)](_0x3e3bc7['IMCPToolRegistry'])[_0x3b3c45(0x157)](_0x54ab1a,_0xd258bf);}['getMCPConnectionStatus'](){const _0x1ca1c9=_0x1cf59f;return this['_injector'][_0x1ca1c9(0x149)](_0x3e3bc7['MCPConnectionController'])[_0x1ca1c9(0x158)]();}['connectMCP'](){const _0x372113=_0x1cf59f;this[_0x372113(0x156)][_0x372113(0x149)](_0x3e3bc7[_0x372113(0x15f)])[_0x372113(0x14c)]();}[_0x1cf59f(0x151)](){const _0xfe2862=_0x1cf59f;this[_0xfe2862(0x156)][_0xfe2862(0x149)](_0x3e3bc7[_0xfe2862(0x15f)])[_0xfe2862(0x145)]();}}_0x17c544[_0x1cf59f(0x140)][_0x1cf59f(0x13c)](_0x1ea160);}));
|