@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/umd/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x38c4(_0x4ddbf3,_0x535219){_0x4ddbf3=_0x4ddbf3-0x6f;const _0x32287a=_0x3228();let _0x38c48f=_0x32287a[_0x4ddbf3];return _0x38c48f;}function _0x3228(){const _0x44a575=['McpToolCallFailed','560483QqvORb','connect','_registerMCPFacadeEvents','FUniver','getConnectionStatus','getMCPConnectionStatus','MCPEventId','callMCPTool','UniverProMcp','extend','10qRMsMl','MCPConnectionController','get','data','McpToolCallExecuted','connectMCP','1370224PjIRya','validateMCPToolCall','108MuOalR','3056CJpSdG','registerEventHandler','@univerjs-pro/mcp','toDisposable','subscribe','object','_injector','UniverCoreFacade','IMCPToolRegistry','type','6234eoWlXF','302044BzFrHQ','3iISunP','fireEvent','disconnect','UniverCore','1283760SahKnq','McpConnectionStatusChanged','Event','McpToolCallReceived','@univerjs/core','@univerjs/core/facade','event$','2131481afSIPT','60IZflFC','disconnectMCP'];_0x3228=function(){return _0x44a575;};return _0x3228();}(function(_0x1c7888,_0x5e0c6f){const _0x56ba0d=_0x38c4,_0x4940ce=_0x1c7888();while(!![]){try{const _0x44de90=parseInt(_0x56ba0d(0x84))/0x1+-parseInt(_0x56ba0d(0x97))/0x2+parseInt(_0x56ba0d(0x93))/0x3*(parseInt(_0x56ba0d(0x92))/0x4)+-parseInt(_0x56ba0d(0x71))/0x5*(-parseInt(_0x56ba0d(0x91))/0x6)+parseInt(_0x56ba0d(0x74))/0x7+parseInt(_0x56ba0d(0x87))/0x8*(-parseInt(_0x56ba0d(0x86))/0x9)+parseInt(_0x56ba0d(0x7e))/0xa*(-parseInt(_0x56ba0d(0x70))/0xb);if(_0x44de90===_0x5e0c6f)break;else _0x4940ce['push'](_0x4940ce['shift']());}catch(_0x18ae0b){_0x4940ce['push'](_0x4940ce['shift']());}}}(_0x3228,0xaa6b5),function(_0x33268b,_0x3dc410){const _0x456134=_0x38c4;typeof exports==_0x456134(0x8c)&&typeof module<'u'?_0x3dc410(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define=='function'&&define['amd']?define([_0x456134(0x89),_0x456134(0x9c),_0x456134(0x9b)],_0x3dc410):(_0x33268b=typeof globalThis<'u'?globalThis:_0x33268b||self,_0x3dc410(_0x33268b[_0x456134(0x7c)],_0x33268b[_0x456134(0x8e)],_0x33268b[_0x456134(0x96)]));}(this,function(_0xfc1923,_0x537252,_0xf6e4ea){'use strict';const _0x38f3a6=_0x38c4;class _0xfbfec0{get[_0x38f3a6(0x98)](){const _0x57cb3b=_0x38f3a6;return _0xfc1923[_0x57cb3b(0x7a)][_0x57cb3b(0x98)];}get[_0x38f3a6(0x9a)](){const _0x45dc99=_0x38f3a6;return _0xfc1923[_0x45dc99(0x7a)]['McpToolCallReceived'];}get[_0x38f3a6(0x82)](){const _0x1e4826=_0x38f3a6;return _0xfc1923[_0x1e4826(0x7a)][_0x1e4826(0x82)];}get['McpToolCallFailed'](){const _0x11fb75=_0x38f3a6;return _0xfc1923[_0x11fb75(0x7a)][_0x11fb75(0x73)];}}_0x537252['FEventName'][_0x38f3a6(0x7d)](_0xfbfec0);class _0x1e71ce extends _0x537252[_0x38f3a6(0x77)]{['_initialize'](_0x3733f3){const _0x65fb4e=_0x38f3a6;this[_0x65fb4e(0x76)](_0x3733f3);}[_0x38f3a6(0x76)](_0x58153f){const _0xf76761=_0x38f3a6,_0x3f8c47=_0x58153f['get'](_0xfc1923['MCPEventService']);this['registerEventHandler'](this['Event']['McpConnectionStatusChanged'],()=>_0xf6e4ea[_0xf76761(0x8a)](_0x3f8c47[_0xf76761(0x6f)][_0xf76761(0x8b)](_0x2d4972=>{const _0x48c905=_0xf76761;_0x2d4972[_0x48c905(0x90)]===_0xfc1923[_0x48c905(0x7a)]['McpConnectionStatusChanged']&&this['fireEvent'](this[_0x48c905(0x99)]['McpConnectionStatusChanged'],_0x2d4972[_0x48c905(0x81)]);}))),this[_0xf76761(0x88)](this[_0xf76761(0x99)]['McpToolCallReceived'],()=>_0xf6e4ea[_0xf76761(0x8a)](_0x3f8c47['event$'][_0xf76761(0x8b)](_0x3c750c=>{const _0x37b1a7=_0xf76761;_0x3c750c[_0x37b1a7(0x90)]===_0xfc1923[_0x37b1a7(0x7a)][_0x37b1a7(0x9a)]&&this[_0x37b1a7(0x94)](this[_0x37b1a7(0x99)][_0x37b1a7(0x9a)],_0x3c750c[_0x37b1a7(0x81)]);}))),this[_0xf76761(0x88)](this[_0xf76761(0x99)][_0xf76761(0x82)],()=>_0xf6e4ea['toDisposable'](_0x3f8c47['event$'][_0xf76761(0x8b)](_0xe444e7=>{const _0x48f14f=_0xf76761;_0xe444e7[_0x48f14f(0x90)]===_0xfc1923['MCPEventId'][_0x48f14f(0x82)]&&this[_0x48f14f(0x94)](this[_0x48f14f(0x99)]['McpToolCallExecuted'],_0xe444e7['data']);}))),this[_0xf76761(0x88)](this[_0xf76761(0x99)][_0xf76761(0x73)],()=>_0xf6e4ea[_0xf76761(0x8a)](_0x3f8c47['event$']['subscribe'](_0x16a16c=>{const _0x3e499b=_0xf76761;_0x16a16c['type']===_0xfc1923[_0x3e499b(0x7a)][_0x3e499b(0x73)]&&this[_0x3e499b(0x94)](this[_0x3e499b(0x99)][_0x3e499b(0x73)],_0x16a16c[_0x3e499b(0x81)]);})));}[_0x38f3a6(0x85)](_0x58a1e3,_0x10477c){const _0x2136be=_0x38f3a6;return this['_injector'][_0x2136be(0x80)](_0xfc1923[_0x2136be(0x8f)])['validateToolCall'](_0x58a1e3,_0x10477c);}['getAllMCPTools'](){const _0x4ee112=_0x38f3a6;return this[_0x4ee112(0x8d)]['get'](_0xfc1923[_0x4ee112(0x8f)])['getAllTools']();}[_0x38f3a6(0x7b)](_0x4913b2,_0x6e57e5){const _0x1f3e1e=_0x38f3a6;return this[_0x1f3e1e(0x8d)]['get'](_0xfc1923[_0x1f3e1e(0x8f)])['executeTool'](_0x4913b2,_0x6e57e5);}[_0x38f3a6(0x79)](){const _0x3ae7b7=_0x38f3a6;return this['_injector'][_0x3ae7b7(0x80)](_0xfc1923[_0x3ae7b7(0x7f)])[_0x3ae7b7(0x78)]();}[_0x38f3a6(0x83)](){const _0x21555e=_0x38f3a6;this[_0x21555e(0x8d)]['get'](_0xfc1923['MCPConnectionController'])[_0x21555e(0x75)]();}[_0x38f3a6(0x72)](){const _0x311d45=_0x38f3a6;this[_0x311d45(0x8d)][_0x311d45(0x80)](_0xfc1923[_0x311d45(0x7f)])[_0x311d45(0x95)]();}}_0x537252['FUniver'][_0x38f3a6(0x7d)](_0x1e71ce);}));
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);}));