@univerjs-pro/mcp 0.15.2-insiders.20260119-edc718c → 0.15.2-insiders.20260124-12fc7f0

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 _0x110f(_0x45bcaa,_0x177798){_0x45bcaa=_0x45bcaa-0x1e6;const _0x507026=_0x5070();let _0x110f92=_0x507026[_0x45bcaa];return _0x110f92;}(function(_0x2635bd,_0x15adb0){const _0x75000f=_0x110f,_0x7b372c=_0x2635bd();while(!![]){try{const _0x34d42c=parseInt(_0x75000f(0x217))/0x1*(parseInt(_0x75000f(0x214))/0x2)+parseInt(_0x75000f(0x20e))/0x3+parseInt(_0x75000f(0x202))/0x4+-parseInt(_0x75000f(0x20b))/0x5+-parseInt(_0x75000f(0x1f5))/0x6*(parseInt(_0x75000f(0x1fd))/0x7)+parseInt(_0x75000f(0x200))/0x8*(-parseInt(_0x75000f(0x201))/0x9)+-parseInt(_0x75000f(0x1f9))/0xa*(-parseInt(_0x75000f(0x1ff))/0xb);if(_0x34d42c===_0x15adb0)break;else _0x7b372c['push'](_0x7b372c['shift']());}catch(_0x56bac3){_0x7b372c['push'](_0x7b372c['shift']());}}}(_0x5070,0x90f4e),function(_0x9e083d,_0x510e83){const _0xccd502=_0x110f;typeof exports==_0xccd502(0x206)&&typeof module<'u'?_0x510e83(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0xccd502(0x218)&&define[_0xccd502(0x1f6)]?define([_0xccd502(0x1e9),_0xccd502(0x211),_0xccd502(0x208)],_0x510e83):(_0x9e083d=typeof globalThis<'u'?globalThis:_0x9e083d||self,_0x510e83(_0x9e083d[_0xccd502(0x213)],_0x9e083d[_0xccd502(0x20c)],_0x9e083d[_0xccd502(0x204)]));}(this,function(_0x18d4b6,_0x45e7f7,_0x6d49be){'use strict';const _0x5f0216=_0x110f;class _0x353359{get[_0x5f0216(0x209)](){const _0x555a64=_0x5f0216;return _0x18d4b6[_0x555a64(0x205)][_0x555a64(0x209)];}get['McpToolCallReceived'](){const _0x369df1=_0x5f0216;return _0x18d4b6['MCPEventId'][_0x369df1(0x1e7)];}get[_0x5f0216(0x20f)](){const _0x5f3aaf=_0x5f0216;return _0x18d4b6[_0x5f3aaf(0x205)]['McpToolCallExecuted'];}get[_0x5f0216(0x216)](){const _0x4c3069=_0x5f0216;return _0x18d4b6[_0x4c3069(0x205)][_0x4c3069(0x216)];}}_0x45e7f7['FEventName'][_0x5f0216(0x1f7)](_0x353359);class _0x4c1895 extends _0x45e7f7[_0x5f0216(0x1f2)]{[_0x5f0216(0x1f4)](_0xa01933){const _0x25a3bd=_0x5f0216;this[_0x25a3bd(0x1f3)](_0xa01933);}[_0x5f0216(0x1f3)](_0x3b0da8){const _0x420114=_0x5f0216,_0x2036ab=_0x3b0da8[_0x420114(0x203)](_0x18d4b6[_0x420114(0x1ee)]);this[_0x420114(0x1ef)](this[_0x420114(0x1fc)][_0x420114(0x209)],()=>_0x6d49be[_0x420114(0x1f0)](_0x2036ab[_0x420114(0x1ea)]['subscribe'](_0x955442=>{const _0xc743df=_0x420114;_0x955442['type']===_0x18d4b6[_0xc743df(0x205)][_0xc743df(0x209)]&&this['fireEvent'](this[_0xc743df(0x1fc)][_0xc743df(0x209)],_0x955442[_0xc743df(0x1f1)]);}))),this[_0x420114(0x1ef)](this[_0x420114(0x1fc)][_0x420114(0x1e7)],()=>_0x6d49be[_0x420114(0x1f0)](_0x2036ab[_0x420114(0x1ea)][_0x420114(0x1fe)](_0x27e1a2=>{const _0x1366f4=_0x420114;_0x27e1a2[_0x1366f4(0x1e6)]===_0x18d4b6[_0x1366f4(0x205)][_0x1366f4(0x1e7)]&&this[_0x1366f4(0x20d)](this['Event'][_0x1366f4(0x1e7)],_0x27e1a2['data']);}))),this[_0x420114(0x1ef)](this['Event'][_0x420114(0x20f)],()=>_0x6d49be[_0x420114(0x1f0)](_0x2036ab[_0x420114(0x1ea)][_0x420114(0x1fe)](_0x1f5852=>{const _0x22bea2=_0x420114;_0x1f5852[_0x22bea2(0x1e6)]===_0x18d4b6[_0x22bea2(0x205)][_0x22bea2(0x20f)]&&this['fireEvent'](this[_0x22bea2(0x1fc)][_0x22bea2(0x20f)],_0x1f5852[_0x22bea2(0x1f1)]);}))),this[_0x420114(0x1ef)](this['Event'][_0x420114(0x216)],()=>_0x6d49be[_0x420114(0x1f0)](_0x2036ab[_0x420114(0x1ea)][_0x420114(0x1fe)](_0x56f092=>{const _0x5f10e3=_0x420114;_0x56f092[_0x5f10e3(0x1e6)]===_0x18d4b6[_0x5f10e3(0x205)][_0x5f10e3(0x216)]&&this[_0x5f10e3(0x20d)](this[_0x5f10e3(0x1fc)][_0x5f10e3(0x216)],_0x56f092[_0x5f10e3(0x1f1)]);})));}[_0x5f0216(0x207)](_0x1ac5a9,_0x1cae2c){const _0x1f66e6=_0x5f0216;return this['_injector'][_0x1f66e6(0x203)](_0x18d4b6[_0x1f66e6(0x1f8)])[_0x1f66e6(0x215)](_0x1ac5a9,_0x1cae2c);}[_0x5f0216(0x212)](){const _0x455816=_0x5f0216;return this['_injector']['get'](_0x18d4b6[_0x455816(0x1f8)])['getAllTools']();}[_0x5f0216(0x20a)](_0xd5f971,_0x54767b){const _0x1e2f02=_0x5f0216;return this[_0x1e2f02(0x210)][_0x1e2f02(0x203)](_0x18d4b6[_0x1e2f02(0x1f8)])[_0x1e2f02(0x1fb)](_0xd5f971,_0x54767b);}[_0x5f0216(0x1fa)](){const _0x3a0d1f=_0x5f0216;return this[_0x3a0d1f(0x210)][_0x3a0d1f(0x203)](_0x18d4b6[_0x3a0d1f(0x1eb)])[_0x3a0d1f(0x1ec)]();}[_0x5f0216(0x1ed)](){const _0x487d09=_0x5f0216;this[_0x487d09(0x210)][_0x487d09(0x203)](_0x18d4b6['MCPConnectionController'])['connect']();}[_0x5f0216(0x1e8)](){const _0x1177ce=_0x5f0216;this[_0x1177ce(0x210)][_0x1177ce(0x203)](_0x18d4b6[_0x1177ce(0x1eb)])['disconnect']();}}_0x45e7f7['FUniver'][_0x5f0216(0x1f7)](_0x4c1895);}));function _0x5070(){const _0x4469ea=['data','FUniver','_registerMCPFacadeEvents','_initialize','577164poMIwE','amd','extend','IMCPToolRegistry','50errRly','getMCPConnectionStatus','executeTool','Event','49ToeOYe','subscribe','421102swJmOS','329392HfTicb','126ndQmQD','4278692tCHPzG','get','UniverCore','MCPEventId','object','validateMCPToolCall','@univerjs/core','McpConnectionStatusChanged','callMCPTool','4568340VLYvfK','UniverCoreFacade','fireEvent','1192392uIYVbW','McpToolCallExecuted','_injector','@univerjs/core/facade','getAllMCPTools','UniverProMcp','18tUVYsZ','validateToolCall','McpToolCallFailed','122073bywBms','function','type','McpToolCallReceived','disconnectMCP','@univerjs-pro/mcp','event$','MCPConnectionController','getConnectionStatus','connectMCP','MCPEventService','registerEventHandler','toDisposable'];_0x5070=function(){return _0x4469ea;};return _0x5070();}
1
+ function _0x3992(_0x5ba9cc,_0xcbe287){_0x5ba9cc=_0x5ba9cc-0xa5;const _0x15866a=_0x1586();let _0x399249=_0x15866a[_0x5ba9cc];return _0x399249;}(function(_0x376ea1,_0x5aa18c){const _0x1ef8c5=_0x3992,_0x30772b=_0x376ea1();while(!![]){try{const _0x118d00=-parseInt(_0x1ef8c5(0xaa))/0x1*(-parseInt(_0x1ef8c5(0xa7))/0x2)+parseInt(_0x1ef8c5(0xa9))/0x3*(parseInt(_0x1ef8c5(0xcb))/0x4)+parseInt(_0x1ef8c5(0xc5))/0x5*(-parseInt(_0x1ef8c5(0xd0))/0x6)+parseInt(_0x1ef8c5(0xaf))/0x7+parseInt(_0x1ef8c5(0xd5))/0x8+parseInt(_0x1ef8c5(0xbb))/0x9+-parseInt(_0x1ef8c5(0xbf))/0xa;if(_0x118d00===_0x5aa18c)break;else _0x30772b['push'](_0x30772b['shift']());}catch(_0x2d1949){_0x30772b['push'](_0x30772b['shift']());}}}(_0x1586,0xd120a),function(_0x5e2dda,_0xa4b1e){const _0x4a153=_0x3992;typeof exports==_0x4a153(0xc6)&&typeof module<'u'?_0xa4b1e(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x4a153(0xc0)&&define[_0x4a153(0xcc)]?define([_0x4a153(0xae),_0x4a153(0xab),_0x4a153(0xb6)],_0xa4b1e):(_0x5e2dda=typeof globalThis<'u'?globalThis:_0x5e2dda||self,_0xa4b1e(_0x5e2dda[_0x4a153(0xcf)],_0x5e2dda['UniverCoreFacade'],_0x5e2dda[_0x4a153(0xa8)]));}(this,function(_0x215eec,_0x2848e1,_0x2f4c6f){'use strict';const _0xd2cea1=_0x3992;class _0x39e778{get[_0xd2cea1(0xd6)](){const _0x496399=_0xd2cea1;return _0x215eec[_0x496399(0xb4)][_0x496399(0xd6)];}get['McpToolCallReceived'](){const _0x582d8a=_0xd2cea1;return _0x215eec[_0x582d8a(0xb4)][_0x582d8a(0xcd)];}get[_0xd2cea1(0xc4)](){const _0x2ee771=_0xd2cea1;return _0x215eec[_0x2ee771(0xb4)]['McpToolCallExecuted'];}get[_0xd2cea1(0xc1)](){const _0x1e4632=_0xd2cea1;return _0x215eec[_0x1e4632(0xb4)][_0x1e4632(0xc1)];}}_0x2848e1[_0xd2cea1(0xce)]['extend'](_0x39e778);class _0x4c44e4 extends _0x2848e1[_0xd2cea1(0xc2)]{['_initialize'](_0x60b960){const _0x45d468=_0xd2cea1;this[_0x45d468(0xbc)](_0x60b960);}[_0xd2cea1(0xbc)](_0x529e0e){const _0x25ac24=_0xd2cea1,_0x4ede8e=_0x529e0e[_0x25ac24(0xa6)](_0x215eec[_0x25ac24(0xd2)]);this[_0x25ac24(0xba)](this[_0x25ac24(0xd4)][_0x25ac24(0xd6)],()=>_0x2f4c6f['toDisposable'](_0x4ede8e[_0x25ac24(0xc9)][_0x25ac24(0xac)](_0x2cf97d=>{const _0x4a874f=_0x25ac24;_0x2cf97d[_0x4a874f(0xb7)]===_0x215eec[_0x4a874f(0xb4)][_0x4a874f(0xd6)]&&this[_0x4a874f(0xb3)](this[_0x4a874f(0xd4)][_0x4a874f(0xd6)],_0x2cf97d[_0x4a874f(0xd3)]);}))),this['registerEventHandler'](this[_0x25ac24(0xd4)]['McpToolCallReceived'],()=>_0x2f4c6f[_0x25ac24(0xb0)](_0x4ede8e[_0x25ac24(0xc9)][_0x25ac24(0xac)](_0x2414f1=>{const _0x5599ec=_0x25ac24;_0x2414f1['type']===_0x215eec['MCPEventId'][_0x5599ec(0xcd)]&&this[_0x5599ec(0xb3)](this[_0x5599ec(0xd4)][_0x5599ec(0xcd)],_0x2414f1[_0x5599ec(0xd3)]);}))),this[_0x25ac24(0xba)](this[_0x25ac24(0xd4)][_0x25ac24(0xc4)],()=>_0x2f4c6f[_0x25ac24(0xb0)](_0x4ede8e['event$'][_0x25ac24(0xac)](_0x18b37d=>{const _0x3a9f04=_0x25ac24;_0x18b37d['type']===_0x215eec[_0x3a9f04(0xb4)][_0x3a9f04(0xc4)]&&this[_0x3a9f04(0xb3)](this[_0x3a9f04(0xd4)][_0x3a9f04(0xc4)],_0x18b37d['data']);}))),this[_0x25ac24(0xba)](this['Event'][_0x25ac24(0xc1)],()=>_0x2f4c6f[_0x25ac24(0xb0)](_0x4ede8e['event$'][_0x25ac24(0xac)](_0x339074=>{const _0x5661fe=_0x25ac24;_0x339074['type']===_0x215eec[_0x5661fe(0xb4)][_0x5661fe(0xc1)]&&this[_0x5661fe(0xb3)](this[_0x5661fe(0xd4)]['McpToolCallFailed'],_0x339074[_0x5661fe(0xd3)]);})));}[_0xd2cea1(0xad)](_0x9ef708,_0x522c9a){const _0x88777c=_0xd2cea1;return this['_injector']['get'](_0x215eec[_0x88777c(0xa5)])[_0x88777c(0xb2)](_0x9ef708,_0x522c9a);}[_0xd2cea1(0xc3)](){const _0xaef68d=_0xd2cea1;return this['_injector'][_0xaef68d(0xa6)](_0x215eec[_0xaef68d(0xa5)])['getAllTools']();}[_0xd2cea1(0xb8)](_0xab70cc,_0xe3a63){const _0x226abb=_0xd2cea1;return this[_0x226abb(0xc7)][_0x226abb(0xa6)](_0x215eec[_0x226abb(0xa5)])[_0x226abb(0xbe)](_0xab70cc,_0xe3a63);}[_0xd2cea1(0xb9)](){const _0x4897c8=_0xd2cea1;return this[_0x4897c8(0xc7)][_0x4897c8(0xa6)](_0x215eec[_0x4897c8(0xb5)])[_0x4897c8(0xb1)]();}[_0xd2cea1(0xc8)](){const _0x4c2811=_0xd2cea1;this[_0x4c2811(0xc7)][_0x4c2811(0xa6)](_0x215eec[_0x4c2811(0xb5)])['connect']();}[_0xd2cea1(0xd1)](){const _0x4f4434=_0xd2cea1;this[_0x4f4434(0xc7)]['get'](_0x215eec[_0x4f4434(0xb5)])[_0x4f4434(0xbd)]();}}_0x2848e1[_0xd2cea1(0xc2)][_0xd2cea1(0xca)](_0x4c44e4);}));function _0x1586(){const _0x156a6b=['UniverCore','87oWMlyF','3dRyxuF','@univerjs/core/facade','subscribe','validateMCPToolCall','@univerjs-pro/mcp','381577zbDaRP','toDisposable','getConnectionStatus','validateToolCall','fireEvent','MCPEventId','MCPConnectionController','@univerjs/core','type','callMCPTool','getMCPConnectionStatus','registerEventHandler','8409006ZViipv','_registerMCPFacadeEvents','disconnect','executeTool','14581120uELkZo','function','McpToolCallFailed','FUniver','getAllMCPTools','McpToolCallExecuted','3427715esahfh','object','_injector','connectMCP','event$','extend','145052NyOIBV','amd','McpToolCallReceived','FEventName','UniverProMcp','12oivYDn','disconnectMCP','MCPEventService','data','Event','11883320gwbJnY','McpConnectionStatusChanged','IMCPToolRegistry','get','106598JCZerE'];_0x1586=function(){return _0x156a6b;};return _0x1586();}