@univerjs-pro/mcp 0.12.3-experimental.20251205-8c9a6bf → 0.12.3-nightly.202512060617

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 _0x6dd7(_0x1a8af8,_0x65e03c){_0x1a8af8=_0x1a8af8-0xb6;const _0x51a6d7=_0x51a6();let _0x6dd7ba=_0x51a6d7[_0x1a8af8];return _0x6dd7ba;}function _0x51a6(){const _0x2a766d=['event$','connectMCP','getAllMCPTools','_injector','disconnect','get','amd','135369ruHsFz','type','function','McpToolCallExecuted','Event','getAllTools','568835PQZztu','36RmiaaP','MCPEventService','UniverCore','UniverProMcp','connect','MCPConnectionController','McpConnectionStatusChanged','getMCPConnectionStatus','McpToolCallReceived','fireEvent','IMCPToolRegistry','FUniver','toDisposable','56HobXnP','7shGqNm','332564wIptQn','_registerMCPFacadeEvents','@univerjs/core','executeTool','subscribe','6261470jeoFhu','callMCPTool','McpToolCallFailed','54MZXjMj','extend','registerEventHandler','MCPEventId','3782283NtUaQu','@univerjs-pro/mcp','1274791wPICBf','52001213ejaieT','data','_initialize'];_0x51a6=function(){return _0x2a766d;};return _0x51a6();}(function(_0x2339a9,_0x38fe3f){const _0xc9ad40=_0x6dd7,_0x16f89c=_0x2339a9();while(!![]){try{const _0x312046=parseInt(_0xc9ad40(0xd1))/0x1*(parseInt(_0xc9ad40(0xd2))/0x2)+parseInt(_0xc9ad40(0xde))/0x3+-parseInt(_0xc9ad40(0xc3))/0x4*(-parseInt(_0xc9ad40(0xc2))/0x5)+-parseInt(_0xc9ad40(0xda))/0x6*(-parseInt(_0xc9ad40(0xe0))/0x7)+parseInt(_0xc9ad40(0xd0))/0x8*(-parseInt(_0xc9ad40(0xbc))/0x9)+parseInt(_0xc9ad40(0xd7))/0xa+-parseInt(_0xc9ad40(0xe1))/0xb;if(_0x312046===_0x38fe3f)break;else _0x16f89c['push'](_0x16f89c['shift']());}catch(_0x1289e6){_0x16f89c['push'](_0x16f89c['shift']());}}}(_0x51a6,0xd71ec),function(_0x42502b,_0x301351){const _0x18c270=_0x6dd7;typeof exports=='object'&&typeof module<'u'?_0x301351(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x18c270(0xbe)&&define[_0x18c270(0xbb)]?define([_0x18c270(0xdf),'@univerjs/core/facade',_0x18c270(0xd4)],_0x301351):(_0x42502b=typeof globalThis<'u'?globalThis:_0x42502b||self,_0x301351(_0x42502b[_0x18c270(0xc6)],_0x42502b['UniverCoreFacade'],_0x42502b[_0x18c270(0xc5)]));}(this,function(_0x388a83,_0x52e9cb,_0x3b7017){'use strict';const _0x108e34=_0x6dd7;class _0x93c178{get[_0x108e34(0xc9)](){const _0x3ce541=_0x108e34;return _0x388a83[_0x3ce541(0xdd)][_0x3ce541(0xc9)];}get[_0x108e34(0xcb)](){const _0x459da8=_0x108e34;return _0x388a83[_0x459da8(0xdd)]['McpToolCallReceived'];}get[_0x108e34(0xbf)](){const _0x2ed61e=_0x108e34;return _0x388a83[_0x2ed61e(0xdd)][_0x2ed61e(0xbf)];}get[_0x108e34(0xd9)](){const _0x599e5b=_0x108e34;return _0x388a83[_0x599e5b(0xdd)][_0x599e5b(0xd9)];}}_0x52e9cb['FEventName'][_0x108e34(0xdb)](_0x93c178);class _0x160886 extends _0x52e9cb[_0x108e34(0xce)]{[_0x108e34(0xe3)](_0xc3380b){const _0x2ebe6d=_0x108e34;this[_0x2ebe6d(0xd3)](_0xc3380b);}[_0x108e34(0xd3)](_0x4c02a3){const _0x2d5ebc=_0x108e34,_0x2ac96f=_0x4c02a3[_0x2d5ebc(0xba)](_0x388a83[_0x2d5ebc(0xc4)]);this[_0x2d5ebc(0xdc)](this['Event'][_0x2d5ebc(0xc9)],()=>_0x3b7017['toDisposable'](_0x2ac96f[_0x2d5ebc(0xe4)][_0x2d5ebc(0xd6)](_0x30991a=>{const _0x331fdb=_0x2d5ebc;_0x30991a['type']===_0x388a83['MCPEventId']['McpConnectionStatusChanged']&&this['fireEvent'](this['Event']['McpConnectionStatusChanged'],_0x30991a[_0x331fdb(0xe2)]);}))),this[_0x2d5ebc(0xdc)](this[_0x2d5ebc(0xc0)][_0x2d5ebc(0xcb)],()=>_0x3b7017[_0x2d5ebc(0xcf)](_0x2ac96f[_0x2d5ebc(0xe4)]['subscribe'](_0xf5b543=>{const _0x578ae6=_0x2d5ebc;_0xf5b543[_0x578ae6(0xbd)]===_0x388a83[_0x578ae6(0xdd)][_0x578ae6(0xcb)]&&this['fireEvent'](this[_0x578ae6(0xc0)][_0x578ae6(0xcb)],_0xf5b543[_0x578ae6(0xe2)]);}))),this[_0x2d5ebc(0xdc)](this[_0x2d5ebc(0xc0)][_0x2d5ebc(0xbf)],()=>_0x3b7017[_0x2d5ebc(0xcf)](_0x2ac96f[_0x2d5ebc(0xe4)][_0x2d5ebc(0xd6)](_0xf2893d=>{const _0x2992a3=_0x2d5ebc;_0xf2893d[_0x2992a3(0xbd)]===_0x388a83['MCPEventId'][_0x2992a3(0xbf)]&&this[_0x2992a3(0xcc)](this[_0x2992a3(0xc0)][_0x2992a3(0xbf)],_0xf2893d['data']);}))),this[_0x2d5ebc(0xdc)](this['Event'][_0x2d5ebc(0xd9)],()=>_0x3b7017[_0x2d5ebc(0xcf)](_0x2ac96f[_0x2d5ebc(0xe4)]['subscribe'](_0x465f72=>{const _0x2a63e8=_0x2d5ebc;_0x465f72[_0x2a63e8(0xbd)]===_0x388a83['MCPEventId']['McpToolCallFailed']&&this[_0x2a63e8(0xcc)](this['Event'][_0x2a63e8(0xd9)],_0x465f72[_0x2a63e8(0xe2)]);})));}['validateMCPToolCall'](_0x2ad7dd,_0x196852){const _0x427067=_0x108e34;return this[_0x427067(0xb8)][_0x427067(0xba)](_0x388a83[_0x427067(0xcd)])['validateToolCall'](_0x2ad7dd,_0x196852);}[_0x108e34(0xb7)](){const _0x4ea175=_0x108e34;return this[_0x4ea175(0xb8)]['get'](_0x388a83[_0x4ea175(0xcd)])[_0x4ea175(0xc1)]();}[_0x108e34(0xd8)](_0x4f05de,_0x1df9b1){const _0x3d4e7c=_0x108e34;return this[_0x3d4e7c(0xb8)]['get'](_0x388a83[_0x3d4e7c(0xcd)])[_0x3d4e7c(0xd5)](_0x4f05de,_0x1df9b1);}[_0x108e34(0xca)](){const _0x158086=_0x108e34;return this[_0x158086(0xb8)][_0x158086(0xba)](_0x388a83[_0x158086(0xc8)])['getConnectionStatus']();}[_0x108e34(0xb6)](){const _0x599648=_0x108e34;this[_0x599648(0xb8)]['get'](_0x388a83[_0x599648(0xc8)])[_0x599648(0xc7)]();}['disconnectMCP'](){const _0x44f2e5=_0x108e34;this[_0x44f2e5(0xb8)][_0x44f2e5(0xba)](_0x388a83[_0x44f2e5(0xc8)])[_0x44f2e5(0xb9)]();}}_0x52e9cb['FUniver'][_0x108e34(0xdb)](_0x160886);}));
1
+ (function(_0x41df83,_0x10c79f){const _0x368e6e=_0x4046,_0x43c008=_0x41df83();while(!![]){try{const _0x308029=-parseInt(_0x368e6e(0xb6))/0x1+-parseInt(_0x368e6e(0xa3))/0x2+parseInt(_0x368e6e(0x9e))/0x3*(parseInt(_0x368e6e(0xaf))/0x4)+parseInt(_0x368e6e(0xb7))/0x5+parseInt(_0x368e6e(0x9f))/0x6+parseInt(_0x368e6e(0x97))/0x7+-parseInt(_0x368e6e(0xb3))/0x8;if(_0x308029===_0x10c79f)break;else _0x43c008['push'](_0x43c008['shift']());}catch(_0x5847b8){_0x43c008['push'](_0x43c008['shift']());}}}(_0x2598,0xf3bca),function(_0x862a4e,_0x881bf7){const _0x328663=_0x4046;typeof exports==_0x328663(0x99)&&typeof module<'u'?_0x881bf7(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x328663(0xbd)&&define[_0x328663(0x94)]?define(['@univerjs-pro/mcp',_0x328663(0xa6),_0x328663(0xa0)],_0x881bf7):(_0x862a4e=typeof globalThis<'u'?globalThis:_0x862a4e||self,_0x881bf7(_0x862a4e[_0x328663(0x9b)],_0x862a4e[_0x328663(0x98)],_0x862a4e[_0x328663(0xa7)]));}(this,function(_0x134a88,_0x391ad3,_0x371ff2){'use strict';const _0x42bceb=_0x4046;class _0x5301b6{get['McpConnectionStatusChanged'](){const _0x214a74=_0x4046;return _0x134a88[_0x214a74(0xa9)][_0x214a74(0xad)];}get[_0x42bceb(0xa5)](){const _0x30aa55=_0x42bceb;return _0x134a88['MCPEventId'][_0x30aa55(0xa5)];}get[_0x42bceb(0xb2)](){const _0x4fb3ae=_0x42bceb;return _0x134a88[_0x4fb3ae(0xa9)][_0x4fb3ae(0xb2)];}get[_0x42bceb(0xb4)](){const _0x1e73bd=_0x42bceb;return _0x134a88[_0x1e73bd(0xa9)]['McpToolCallFailed'];}}_0x391ad3[_0x42bceb(0xbb)][_0x42bceb(0xb1)](_0x5301b6);class _0x452713 extends _0x391ad3[_0x42bceb(0xbc)]{['_initialize'](_0x20e4f4){this['_registerMCPFacadeEvents'](_0x20e4f4);}[_0x42bceb(0xb0)](_0xb5f1d1){const _0x3b2efe=_0x42bceb,_0x423579=_0xb5f1d1[_0x3b2efe(0x96)](_0x134a88['MCPEventService']);this[_0x3b2efe(0xaa)](this[_0x3b2efe(0xa1)][_0x3b2efe(0xad)],()=>_0x371ff2['toDisposable'](_0x423579['event$'][_0x3b2efe(0x9d)](_0x5e8ec7=>{const _0x123f3c=_0x3b2efe;_0x5e8ec7[_0x123f3c(0xba)]===_0x134a88[_0x123f3c(0xa9)][_0x123f3c(0xad)]&&this['fireEvent'](this['Event'][_0x123f3c(0xad)],_0x5e8ec7['data']);}))),this[_0x3b2efe(0xaa)](this[_0x3b2efe(0xa1)]['McpToolCallReceived'],()=>_0x371ff2[_0x3b2efe(0xa2)](_0x423579['event$'][_0x3b2efe(0x9d)](_0x3cb02e=>{const _0x57e63e=_0x3b2efe;_0x3cb02e[_0x57e63e(0xba)]===_0x134a88[_0x57e63e(0xa9)]['McpToolCallReceived']&&this['fireEvent'](this[_0x57e63e(0xa1)]['McpToolCallReceived'],_0x3cb02e[_0x57e63e(0xa8)]);}))),this[_0x3b2efe(0xaa)](this[_0x3b2efe(0xa1)]['McpToolCallExecuted'],()=>_0x371ff2[_0x3b2efe(0xa2)](_0x423579['event$']['subscribe'](_0x1fab03=>{const _0x260bcc=_0x3b2efe;_0x1fab03[_0x260bcc(0xba)]===_0x134a88['MCPEventId'][_0x260bcc(0xb2)]&&this['fireEvent'](this['Event']['McpToolCallExecuted'],_0x1fab03[_0x260bcc(0xa8)]);}))),this[_0x3b2efe(0xaa)](this['Event'][_0x3b2efe(0xb4)],()=>_0x371ff2[_0x3b2efe(0xa2)](_0x423579[_0x3b2efe(0xb9)][_0x3b2efe(0x9d)](_0x56ab47=>{const _0x9b594d=_0x3b2efe;_0x56ab47['type']===_0x134a88[_0x9b594d(0xa9)][_0x9b594d(0xb4)]&&this[_0x9b594d(0xac)](this[_0x9b594d(0xa1)][_0x9b594d(0xb4)],_0x56ab47['data']);})));}['validateMCPToolCall'](_0x535d00,_0x24ad2a){const _0x1c0783=_0x42bceb;return this[_0x1c0783(0x95)]['get'](_0x134a88[_0x1c0783(0xab)])[_0x1c0783(0xb5)](_0x535d00,_0x24ad2a);}[_0x42bceb(0xbe)](){const _0xc3872b=_0x42bceb;return this[_0xc3872b(0x95)]['get'](_0x134a88[_0xc3872b(0xab)])[_0xc3872b(0x9a)]();}[_0x42bceb(0xae)](_0xcf1414,_0x284a61){const _0x58a748=_0x42bceb;return this['_injector'][_0x58a748(0x96)](_0x134a88['IMCPToolRegistry'])['executeTool'](_0xcf1414,_0x284a61);}['getMCPConnectionStatus'](){const _0x4bffab=_0x42bceb;return this['_injector'][_0x4bffab(0x96)](_0x134a88['MCPConnectionController'])['getConnectionStatus']();}[_0x42bceb(0x9c)](){const _0x4ab40e=_0x42bceb;this[_0x4ab40e(0x95)]['get'](_0x134a88['MCPConnectionController'])['connect']();}['disconnectMCP'](){const _0x2ea397=_0x42bceb;this[_0x2ea397(0x95)][_0x2ea397(0x96)](_0x134a88[_0x2ea397(0xb8)])[_0x2ea397(0xa4)]();}}_0x391ad3[_0x42bceb(0xbc)]['extend'](_0x452713);}));function _0x4046(_0x49eabf,_0x568631){_0x49eabf=_0x49eabf-0x94;const _0x259800=_0x2598();let _0x404660=_0x259800[_0x49eabf];return _0x404660;}function _0x2598(){const _0x575579=['_injector','get','1890910znNHhu','UniverCoreFacade','object','getAllTools','UniverProMcp','connectMCP','subscribe','418293aEYXFe','9768762HFaDjw','@univerjs/core','Event','toDisposable','3026732BFnKVr','disconnect','McpToolCallReceived','@univerjs/core/facade','UniverCore','data','MCPEventId','registerEventHandler','IMCPToolRegistry','fireEvent','McpConnectionStatusChanged','callMCPTool','32kxpCdR','_registerMCPFacadeEvents','extend','McpToolCallExecuted','9146384ZsNSkV','McpToolCallFailed','validateToolCall','297041oXEKSS','4691730nWYBDw','MCPConnectionController','event$','type','FEventName','FUniver','function','getAllMCPTools','amd'];_0x2598=function(){return _0x575579;};return _0x2598();}