@univerjs-pro/mcp 0.14.0-insiders.20251227-b250a8d → 0.15.0
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/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x925e(_0x8139d1,_0x5cf76d){_0x8139d1=_0x8139d1-0xff;const _0x31e81e=_0x31e8();let _0x925e03=_0x31e81e[_0x8139d1];return _0x925e03;}function _0x31e8(){const _0x37b737=['MCPEventService','509RSNNXt','_injector','object','4923630CybKSQ','McpToolCallReceived','IMCPToolRegistry','connect','UniverProMcp','connectMCP','getAllTools','get','McpConnectionStatusChanged','McpToolCallFailed','FEventName','event$','extend','208313foaIgJ','@univerjs/core/facade','396aPhQHb','MCPConnectionController','callMCPTool','_registerMCPFacadeEvents','4384280llGYCE','data','FUniver','amd','@univerjs/core','MCPEventId','Event','validateMCPToolCall','disconnect','16gyPtpp','UniverCore','registerEventHandler','getMCPConnectionStatus','getAllMCPTools','3755SlvcLd','toDisposable','executeTool','337300awRmIw','type','function','899481LvmgCt','_initialize','794FPnUjm','fireEvent','disconnectMCP','McpToolCallExecuted','subscribe'];_0x31e8=function(){return _0x37b737;};return _0x31e8();}(function(_0x3b04a4,_0x5661c8){const _0x53f88c=_0x925e,_0x3a742b=_0x3b04a4();while(!![]){try{const _0x31b8bc=parseInt(_0x53f88c(0x122))/0x1*(-parseInt(_0x53f88c(0x11c))/0x2)+-parseInt(_0x53f88c(0x11a))/0x3+-parseInt(_0x53f88c(0x117))/0x4+parseInt(_0x53f88c(0x114))/0x5*(-parseInt(_0x53f88c(0x102))/0x6)+-parseInt(_0x53f88c(0x100))/0x7*(parseInt(_0x53f88c(0x10f))/0x8)+parseInt(_0x53f88c(0x125))/0x9+parseInt(_0x53f88c(0x106))/0xa;if(_0x31b8bc===_0x5661c8)break;else _0x3a742b['push'](_0x3a742b['shift']());}catch(_0x383f60){_0x3a742b['push'](_0x3a742b['shift']());}}}(_0x31e8,0x46d8d),function(_0x11a6b4,_0x4e0861){const _0x1ded4a=_0x925e;typeof exports==_0x1ded4a(0x124)&&typeof module<'u'?_0x4e0861(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x1ded4a(0x119)&&define[_0x1ded4a(0x109)]?define(['@univerjs-pro/mcp',_0x1ded4a(0x101),_0x1ded4a(0x10a)],_0x4e0861):(_0x11a6b4=typeof globalThis<'u'?globalThis:_0x11a6b4||self,_0x4e0861(_0x11a6b4[_0x1ded4a(0x129)],_0x11a6b4['UniverCoreFacade'],_0x11a6b4[_0x1ded4a(0x110)]));}(this,function(_0x597554,_0x4d2e59,_0x6c2663){'use strict';const _0x2770f3=_0x925e;class _0x27ef41{get[_0x2770f3(0x12d)](){return _0x597554['MCPEventId']['McpConnectionStatusChanged'];}get[_0x2770f3(0x126)](){const _0x335c15=_0x2770f3;return _0x597554[_0x335c15(0x10b)][_0x335c15(0x126)];}get[_0x2770f3(0x11f)](){const _0x200b52=_0x2770f3;return _0x597554[_0x200b52(0x10b)]['McpToolCallExecuted'];}get[_0x2770f3(0x12e)](){const _0x65b601=_0x2770f3;return _0x597554[_0x65b601(0x10b)][_0x65b601(0x12e)];}}_0x4d2e59[_0x2770f3(0x12f)][_0x2770f3(0xff)](_0x27ef41);class _0x3c6c12 extends _0x4d2e59[_0x2770f3(0x108)]{[_0x2770f3(0x11b)](_0x1fa7f6){const _0x4f7b01=_0x2770f3;this[_0x4f7b01(0x105)](_0x1fa7f6);}[_0x2770f3(0x105)](_0x4cd919){const _0x2f0a10=_0x2770f3,_0x379da9=_0x4cd919[_0x2f0a10(0x12c)](_0x597554[_0x2f0a10(0x121)]);this['registerEventHandler'](this[_0x2f0a10(0x10c)][_0x2f0a10(0x12d)],()=>_0x6c2663[_0x2f0a10(0x115)](_0x379da9['event$'][_0x2f0a10(0x120)](_0xc69235=>{const _0x3910c4=_0x2f0a10;_0xc69235[_0x3910c4(0x118)]===_0x597554[_0x3910c4(0x10b)][_0x3910c4(0x12d)]&&this[_0x3910c4(0x11d)](this[_0x3910c4(0x10c)][_0x3910c4(0x12d)],_0xc69235[_0x3910c4(0x107)]);}))),this[_0x2f0a10(0x111)](this[_0x2f0a10(0x10c)][_0x2f0a10(0x126)],()=>_0x6c2663[_0x2f0a10(0x115)](_0x379da9[_0x2f0a10(0x130)][_0x2f0a10(0x120)](_0x25d909=>{const _0x411463=_0x2f0a10;_0x25d909[_0x411463(0x118)]===_0x597554[_0x411463(0x10b)][_0x411463(0x126)]&&this[_0x411463(0x11d)](this[_0x411463(0x10c)][_0x411463(0x126)],_0x25d909['data']);}))),this[_0x2f0a10(0x111)](this[_0x2f0a10(0x10c)][_0x2f0a10(0x11f)],()=>_0x6c2663[_0x2f0a10(0x115)](_0x379da9[_0x2f0a10(0x130)][_0x2f0a10(0x120)](_0xc0f32d=>{const _0x231b8f=_0x2f0a10;_0xc0f32d['type']===_0x597554[_0x231b8f(0x10b)][_0x231b8f(0x11f)]&&this[_0x231b8f(0x11d)](this[_0x231b8f(0x10c)]['McpToolCallExecuted'],_0xc0f32d[_0x231b8f(0x107)]);}))),this['registerEventHandler'](this[_0x2f0a10(0x10c)]['McpToolCallFailed'],()=>_0x6c2663[_0x2f0a10(0x115)](_0x379da9[_0x2f0a10(0x130)][_0x2f0a10(0x120)](_0x3736f7=>{const _0x30ad05=_0x2f0a10;_0x3736f7[_0x30ad05(0x118)]===_0x597554[_0x30ad05(0x10b)][_0x30ad05(0x12e)]&&this['fireEvent'](this['Event'][_0x30ad05(0x12e)],_0x3736f7[_0x30ad05(0x107)]);})));}[_0x2770f3(0x10d)](_0x215b48,_0x23c408){const _0x5ab423=_0x2770f3;return this[_0x5ab423(0x123)][_0x5ab423(0x12c)](_0x597554[_0x5ab423(0x127)])['validateToolCall'](_0x215b48,_0x23c408);}[_0x2770f3(0x113)](){const _0x4fc381=_0x2770f3;return this[_0x4fc381(0x123)]['get'](_0x597554[_0x4fc381(0x127)])[_0x4fc381(0x12b)]();}[_0x2770f3(0x104)](_0x1a40eb,_0x54e21b){const _0x25041d=_0x2770f3;return this[_0x25041d(0x123)][_0x25041d(0x12c)](_0x597554[_0x25041d(0x127)])[_0x25041d(0x116)](_0x1a40eb,_0x54e21b);}[_0x2770f3(0x112)](){const _0x38c45d=_0x2770f3;return this['_injector']['get'](_0x597554[_0x38c45d(0x103)])['getConnectionStatus']();}[_0x2770f3(0x12a)](){const _0x98c65f=_0x2770f3;this[_0x98c65f(0x123)]['get'](_0x597554[_0x98c65f(0x103)])[_0x98c65f(0x128)]();}[_0x2770f3(0x11e)](){const _0x2a7546=_0x2770f3;this[_0x2a7546(0x123)]['get'](_0x597554[_0x2a7546(0x103)])[_0x2a7546(0x10e)]();}}_0x4d2e59[_0x2770f3(0x108)][_0x2770f3(0xff)](_0x3c6c12);}));
|