@univerjs-pro/mcp 0.12.4-experimental.20251208-c4b8a44 → 0.12.4-experimental.20251210-b08bdee

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(_0x2cdc1f,_0x3f2259){const _0x192ef8=_0x3943,_0x1069b2=_0x2cdc1f();while(!![]){try{const _0x396e57=-parseInt(_0x192ef8(0x204))/0x1+parseInt(_0x192ef8(0x215))/0x2+parseInt(_0x192ef8(0x20d))/0x3+parseInt(_0x192ef8(0x206))/0x4+parseInt(_0x192ef8(0x1f1))/0x5*(-parseInt(_0x192ef8(0x1fd))/0x6)+-parseInt(_0x192ef8(0x1f9))/0x7+-parseInt(_0x192ef8(0x216))/0x8*(-parseInt(_0x192ef8(0x1f4))/0x9);if(_0x396e57===_0x3f2259)break;else _0x1069b2['push'](_0x1069b2['shift']());}catch(_0x4e8ad8){_0x1069b2['push'](_0x1069b2['shift']());}}}(_0x24f6,0x749c8),function(_0x532025,_0xa93f56){const _0xbd466d=_0x3943;typeof exports=='object'&&typeof module<'u'?_0xa93f56(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0xbd466d(0x219)&&define[_0xbd466d(0x1fa)]?define([_0xbd466d(0x1ec),'@univerjs/core/facade',_0xbd466d(0x207)],_0xa93f56):(_0x532025=typeof globalThis<'u'?globalThis:_0x532025||self,_0xa93f56(_0x532025[_0xbd466d(0x210)],_0x532025[_0xbd466d(0x214)],_0x532025[_0xbd466d(0x20f)]));}(this,function(_0x522753,_0x2da985,_0x124ec2){'use strict';const _0x4b53f9=_0x3943;class _0x227e7d{get[_0x4b53f9(0x200)](){const _0x47a2e5=_0x4b53f9;return _0x522753['MCPEventId'][_0x47a2e5(0x200)];}get['McpToolCallReceived'](){const _0x1e7205=_0x4b53f9;return _0x522753[_0x1e7205(0x20c)]['McpToolCallReceived'];}get[_0x4b53f9(0x208)](){const _0x50fcf0=_0x4b53f9;return _0x522753[_0x50fcf0(0x20c)][_0x50fcf0(0x208)];}get[_0x4b53f9(0x211)](){const _0x5bab56=_0x4b53f9;return _0x522753[_0x5bab56(0x20c)][_0x5bab56(0x211)];}}_0x2da985[_0x4b53f9(0x1ef)][_0x4b53f9(0x205)](_0x227e7d);class _0x4fa088 extends _0x2da985['FUniver']{[_0x4b53f9(0x202)](_0x555e5a){const _0x1e6184=_0x4b53f9;this[_0x1e6184(0x1ff)](_0x555e5a);}[_0x4b53f9(0x1ff)](_0x18ba2c){const _0x4c6236=_0x4b53f9,_0x5b520a=_0x18ba2c[_0x4c6236(0x212)](_0x522753['MCPEventService']);this[_0x4c6236(0x1ee)](this[_0x4c6236(0x1f7)][_0x4c6236(0x200)],()=>_0x124ec2[_0x4c6236(0x1f2)](_0x5b520a['event$'][_0x4c6236(0x213)](_0x5f0236=>{const _0x589123=_0x4c6236;_0x5f0236[_0x589123(0x1f6)]===_0x522753[_0x589123(0x20c)][_0x589123(0x200)]&&this[_0x589123(0x217)](this[_0x589123(0x1f7)][_0x589123(0x200)],_0x5f0236[_0x589123(0x201)]);}))),this[_0x4c6236(0x1ee)](this['Event']['McpToolCallReceived'],()=>_0x124ec2[_0x4c6236(0x1f2)](_0x5b520a[_0x4c6236(0x218)][_0x4c6236(0x213)](_0x2cb3be=>{const _0x2c7b86=_0x4c6236;_0x2cb3be['type']===_0x522753[_0x2c7b86(0x20c)][_0x2c7b86(0x21a)]&&this[_0x2c7b86(0x217)](this['Event'][_0x2c7b86(0x21a)],_0x2cb3be[_0x2c7b86(0x201)]);}))),this[_0x4c6236(0x1ee)](this[_0x4c6236(0x1f7)][_0x4c6236(0x208)],()=>_0x124ec2[_0x4c6236(0x1f2)](_0x5b520a[_0x4c6236(0x218)]['subscribe'](_0x4139dd=>{const _0x15c138=_0x4c6236;_0x4139dd[_0x15c138(0x1f6)]===_0x522753['MCPEventId'][_0x15c138(0x208)]&&this['fireEvent'](this[_0x15c138(0x1f7)]['McpToolCallExecuted'],_0x4139dd['data']);}))),this[_0x4c6236(0x1ee)](this[_0x4c6236(0x1f7)][_0x4c6236(0x211)],()=>_0x124ec2[_0x4c6236(0x1f2)](_0x5b520a['event$'][_0x4c6236(0x213)](_0x4d41ea=>{const _0x1912c4=_0x4c6236;_0x4d41ea[_0x1912c4(0x1f6)]===_0x522753[_0x1912c4(0x20c)][_0x1912c4(0x211)]&&this[_0x1912c4(0x217)](this[_0x1912c4(0x1f7)][_0x1912c4(0x211)],_0x4d41ea[_0x1912c4(0x201)]);})));}[_0x4b53f9(0x1fb)](_0x488539,_0x33ab8c){const _0x362650=_0x4b53f9;return this['_injector'][_0x362650(0x212)](_0x522753['IMCPToolRegistry'])[_0x362650(0x203)](_0x488539,_0x33ab8c);}['getAllMCPTools'](){const _0x1e97e8=_0x4b53f9;return this[_0x1e97e8(0x1f8)][_0x1e97e8(0x212)](_0x522753[_0x1e97e8(0x1f5)])[_0x1e97e8(0x209)]();}[_0x4b53f9(0x20a)](_0x15a4f8,_0x524a20){const _0x439a7e=_0x4b53f9;return this['_injector']['get'](_0x522753[_0x439a7e(0x1f5)])['executeTool'](_0x15a4f8,_0x524a20);}[_0x4b53f9(0x1ed)](){const _0x50889e=_0x4b53f9;return this[_0x50889e(0x1f8)]['get'](_0x522753[_0x50889e(0x21b)])[_0x50889e(0x20e)]();}[_0x4b53f9(0x1fe)](){const _0x245c4c=_0x4b53f9;this[_0x245c4c(0x1f8)][_0x245c4c(0x212)](_0x522753[_0x245c4c(0x21b)])[_0x245c4c(0x1fc)]();}[_0x4b53f9(0x1f3)](){const _0x15b591=_0x4b53f9;this['_injector'][_0x15b591(0x212)](_0x522753[_0x15b591(0x21b)])[_0x15b591(0x20b)]();}}_0x2da985[_0x4b53f9(0x1f0)][_0x4b53f9(0x205)](_0x4fa088);}));function _0x3943(_0x503c2f,_0x105c10){_0x503c2f=_0x503c2f-0x1ec;const _0x24f607=_0x24f6();let _0x394316=_0x24f607[_0x503c2f];return _0x394316;}function _0x24f6(){const _0x2751fb=['disconnectMCP','225kmNjKF','IMCPToolRegistry','type','Event','_injector','4645368fBVEHO','amd','validateMCPToolCall','connect','30nmzPiV','connectMCP','_registerMCPFacadeEvents','McpConnectionStatusChanged','data','_initialize','validateToolCall','576074qzhIix','extend','1725176mMTlrI','@univerjs/core','McpToolCallExecuted','getAllTools','callMCPTool','disconnect','MCPEventId','934422NbnzHz','getConnectionStatus','UniverCore','UniverProMcp','McpToolCallFailed','get','subscribe','UniverCoreFacade','833070BaSsQF','407072neiJOm','fireEvent','event$','function','McpToolCallReceived','MCPConnectionController','@univerjs-pro/mcp','getMCPConnectionStatus','registerEventHandler','FEventName','FUniver','714065iieMry','toDisposable'];_0x24f6=function(){return _0x2751fb;};return _0x24f6();}
1
+ (function(_0x31c638,_0x43ad91){const _0x5de8eb=_0x2559,_0x51cde=_0x31c638();while(!![]){try{const _0x1625af=parseInt(_0x5de8eb(0xb4))/0x1+parseInt(_0x5de8eb(0xa2))/0x2+parseInt(_0x5de8eb(0xb1))/0x3+-parseInt(_0x5de8eb(0xb3))/0x4+parseInt(_0x5de8eb(0x9d))/0x5*(parseInt(_0x5de8eb(0xbd))/0x6)+parseInt(_0x5de8eb(0xa0))/0x7*(parseInt(_0x5de8eb(0xad))/0x8)+parseInt(_0x5de8eb(0x9c))/0x9*(-parseInt(_0x5de8eb(0xa5))/0xa);if(_0x1625af===_0x43ad91)break;else _0x51cde['push'](_0x51cde['shift']());}catch(_0x71bbc7){_0x51cde['push'](_0x51cde['shift']());}}}(_0x432a,0x3979e),function(_0x3f75d5,_0xd6a7f8){const _0x51a018=_0x2559;typeof exports==_0x51a018(0x99)&&typeof module<'u'?_0xd6a7f8(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x51a018(0xc3)&&define[_0x51a018(0x95)]?define([_0x51a018(0x9a),_0x51a018(0xb7),'@univerjs/core'],_0xd6a7f8):(_0x3f75d5=typeof globalThis<'u'?globalThis:_0x3f75d5||self,_0xd6a7f8(_0x3f75d5[_0x51a018(0x98)],_0x3f75d5[_0x51a018(0xba)],_0x3f75d5['UniverCore']));}(this,function(_0x3559a3,_0x47826e,_0x2d380d){'use strict';const _0xde5065=_0x2559;class _0xbe429c{get[_0xde5065(0x9f)](){const _0x5cb23f=_0xde5065;return _0x3559a3[_0x5cb23f(0xa7)]['McpConnectionStatusChanged'];}get['McpToolCallReceived'](){return _0x3559a3['MCPEventId']['McpToolCallReceived'];}get['McpToolCallExecuted'](){const _0xee3a37=_0xde5065;return _0x3559a3[_0xee3a37(0xa7)][_0xee3a37(0xb6)];}get[_0xde5065(0xc2)](){const _0x25c50a=_0xde5065;return _0x3559a3[_0x25c50a(0xa7)][_0x25c50a(0xc2)];}}_0x47826e[_0xde5065(0xa1)][_0xde5065(0xbb)](_0xbe429c);class _0x238943 extends _0x47826e[_0xde5065(0xb0)]{[_0xde5065(0xa9)](_0x31831c){const _0x21d851=_0xde5065;this[_0x21d851(0xaf)](_0x31831c);}[_0xde5065(0xaf)](_0x1ba2c2){const _0x2fcb8f=_0xde5065,_0x111040=_0x1ba2c2['get'](_0x3559a3[_0x2fcb8f(0xab)]);this[_0x2fcb8f(0xaa)](this[_0x2fcb8f(0xa4)][_0x2fcb8f(0x9f)],()=>_0x2d380d[_0x2fcb8f(0xb5)](_0x111040[_0x2fcb8f(0xb8)][_0x2fcb8f(0xb9)](_0x54d0c1=>{const _0x1df0a2=_0x2fcb8f;_0x54d0c1[_0x1df0a2(0x93)]===_0x3559a3[_0x1df0a2(0xa7)][_0x1df0a2(0x9f)]&&this[_0x1df0a2(0xbc)](this['Event'][_0x1df0a2(0x9f)],_0x54d0c1[_0x1df0a2(0x9e)]);}))),this[_0x2fcb8f(0xaa)](this[_0x2fcb8f(0xa4)][_0x2fcb8f(0xb2)],()=>_0x2d380d[_0x2fcb8f(0xb5)](_0x111040[_0x2fcb8f(0xb8)][_0x2fcb8f(0xb9)](_0xfd650e=>{const _0x5b3a95=_0x2fcb8f;_0xfd650e[_0x5b3a95(0x93)]===_0x3559a3['MCPEventId'][_0x5b3a95(0xb2)]&&this[_0x5b3a95(0xbc)](this[_0x5b3a95(0xa4)]['McpToolCallReceived'],_0xfd650e[_0x5b3a95(0x9e)]);}))),this[_0x2fcb8f(0xaa)](this[_0x2fcb8f(0xa4)][_0x2fcb8f(0xb6)],()=>_0x2d380d['toDisposable'](_0x111040['event$'][_0x2fcb8f(0xb9)](_0x521bf6=>{const _0x43a236=_0x2fcb8f;_0x521bf6[_0x43a236(0x93)]===_0x3559a3[_0x43a236(0xa7)][_0x43a236(0xb6)]&&this[_0x43a236(0xbc)](this[_0x43a236(0xa4)]['McpToolCallExecuted'],_0x521bf6[_0x43a236(0x9e)]);}))),this[_0x2fcb8f(0xaa)](this[_0x2fcb8f(0xa4)][_0x2fcb8f(0xc2)],()=>_0x2d380d['toDisposable'](_0x111040[_0x2fcb8f(0xb8)]['subscribe'](_0x2e2526=>{const _0xca1a0f=_0x2fcb8f;_0x2e2526[_0xca1a0f(0x93)]===_0x3559a3['MCPEventId'][_0xca1a0f(0xc2)]&&this['fireEvent'](this[_0xca1a0f(0xa4)][_0xca1a0f(0xc2)],_0x2e2526[_0xca1a0f(0x9e)]);})));}['validateMCPToolCall'](_0x2d52ca,_0x20d6af){const _0x3665b6=_0xde5065;return this[_0x3665b6(0xae)][_0x3665b6(0xa6)](_0x3559a3[_0x3665b6(0x94)])[_0x3665b6(0xa3)](_0x2d52ca,_0x20d6af);}[_0xde5065(0xc1)](){const _0x52844e=_0xde5065;return this[_0x52844e(0xae)][_0x52844e(0xa6)](_0x3559a3[_0x52844e(0x94)])[_0x52844e(0xbf)]();}[_0xde5065(0x96)](_0x4d91c3,_0x3cc77f){const _0x451e52=_0xde5065;return this['_injector'][_0x451e52(0xa6)](_0x3559a3['IMCPToolRegistry'])['executeTool'](_0x4d91c3,_0x3cc77f);}[_0xde5065(0xa8)](){const _0x563c0d=_0xde5065;return this['_injector']['get'](_0x3559a3[_0x563c0d(0x9b)])[_0x563c0d(0xbe)]();}[_0xde5065(0x97)](){const _0x74bda4=_0xde5065;this[_0x74bda4(0xae)]['get'](_0x3559a3[_0x74bda4(0x9b)])['connect']();}[_0xde5065(0xac)](){const _0x4d9e4b=_0xde5065;this['_injector']['get'](_0x3559a3[_0x4d9e4b(0x9b)])[_0x4d9e4b(0xc0)]();}}_0x47826e['FUniver']['extend'](_0x238943);}));function _0x2559(_0x417994,_0x2fa9d8){_0x417994=_0x417994-0x93;const _0x432a16=_0x432a();let _0x2559a1=_0x432a16[_0x417994];return _0x2559a1;}function _0x432a(){const _0x476733=['112390asBMHI','get','MCPEventId','getMCPConnectionStatus','_initialize','registerEventHandler','MCPEventService','disconnectMCP','16gkXKDB','_injector','_registerMCPFacadeEvents','FUniver','1255398XacStR','McpToolCallReceived','1158484xpVKJC','460645BYshSj','toDisposable','McpToolCallExecuted','@univerjs/core/facade','event$','subscribe','UniverCoreFacade','extend','fireEvent','6OgXrhA','getConnectionStatus','getAllTools','disconnect','getAllMCPTools','McpToolCallFailed','function','type','IMCPToolRegistry','amd','callMCPTool','connectMCP','UniverProMcp','object','@univerjs-pro/mcp','MCPConnectionController','873qVPApx','1606790zKjcZk','data','McpConnectionStatusChanged','1215634jAWTTc','FEventName','134866Dfembv','validateToolCall','Event'];_0x432a=function(){return _0x476733;};return _0x432a();}