@univerjs-pro/mcp 0.15.2-insiders.20260119-edc718c → 0.15.2-insiders.20260122-b1556b1

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(_0x503663,_0x53b88f){const _0x4a1da3=_0x4622,_0x12aee8=_0x503663();while(!![]){try{const _0x73e4f0=-parseInt(_0x4a1da3(0x1f6))/0x1*(parseInt(_0x4a1da3(0x1fa))/0x2)+parseInt(_0x4a1da3(0x1fb))/0x3+-parseInt(_0x4a1da3(0x1ff))/0x4+parseInt(_0x4a1da3(0x1f4))/0x5+-parseInt(_0x4a1da3(0x1fd))/0x6*(-parseInt(_0x4a1da3(0x1de))/0x7)+-parseInt(_0x4a1da3(0x1f8))/0x8*(parseInt(_0x4a1da3(0x1d2))/0x9)+parseInt(_0x4a1da3(0x200))/0xa;if(_0x73e4f0===_0x53b88f)break;else _0x12aee8['push'](_0x12aee8['shift']());}catch(_0x206d7a){_0x12aee8['push'](_0x12aee8['shift']());}}}(_0x278f,0x6ecd9),function(_0x23319a,_0x3cf6c0){const _0x4c86a0=_0x4622;typeof exports=='object'&&typeof module<'u'?_0x3cf6c0(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x4c86a0(0x1dd)&&define[_0x4c86a0(0x1da)]?define([_0x4c86a0(0x1f5),_0x4c86a0(0x1e6),_0x4c86a0(0x1fe)],_0x3cf6c0):(_0x23319a=typeof globalThis<'u'?globalThis:_0x23319a||self,_0x3cf6c0(_0x23319a['UniverProMcp'],_0x23319a[_0x4c86a0(0x1ed)],_0x23319a[_0x4c86a0(0x1f3)]));}(this,function(_0x5c6068,_0x10b7e2,_0x184fb7){'use strict';const _0x1e59a2=_0x4622;class _0x5aaa75{get['McpConnectionStatusChanged'](){const _0x5de72e=_0x4622;return _0x5c6068['MCPEventId'][_0x5de72e(0x1e0)];}get[_0x1e59a2(0x1e9)](){return _0x5c6068['MCPEventId']['McpToolCallReceived'];}get[_0x1e59a2(0x1f1)](){const _0x3d2bb3=_0x1e59a2;return _0x5c6068['MCPEventId'][_0x3d2bb3(0x1f1)];}get[_0x1e59a2(0x1d9)](){const _0x32d939=_0x1e59a2;return _0x5c6068['MCPEventId'][_0x32d939(0x1d9)];}}_0x10b7e2[_0x1e59a2(0x1ec)]['extend'](_0x5aaa75);class _0x48881c extends _0x10b7e2['FUniver']{[_0x1e59a2(0x1ea)](_0x4fddfa){this['_registerMCPFacadeEvents'](_0x4fddfa);}['_registerMCPFacadeEvents'](_0x58fe13){const _0x109327=_0x1e59a2,_0x4258ed=_0x58fe13[_0x109327(0x1f2)](_0x5c6068['MCPEventService']);this[_0x109327(0x1eb)](this['Event'][_0x109327(0x1e0)],()=>_0x184fb7[_0x109327(0x1e7)](_0x4258ed['event$']['subscribe'](_0x1e158d=>{const _0x351e24=_0x109327;_0x1e158d[_0x351e24(0x1d3)]===_0x5c6068[_0x351e24(0x1e5)][_0x351e24(0x1e0)]&&this['fireEvent'](this[_0x351e24(0x1f9)]['McpConnectionStatusChanged'],_0x1e158d[_0x351e24(0x1e8)]);}))),this[_0x109327(0x1eb)](this['Event'][_0x109327(0x1e9)],()=>_0x184fb7[_0x109327(0x1e7)](_0x4258ed[_0x109327(0x1e1)]['subscribe'](_0x580a80=>{const _0x3756e1=_0x109327;_0x580a80[_0x3756e1(0x1d3)]===_0x5c6068['MCPEventId'][_0x3756e1(0x1e9)]&&this[_0x3756e1(0x1dc)](this[_0x3756e1(0x1f9)]['McpToolCallReceived'],_0x580a80[_0x3756e1(0x1e8)]);}))),this[_0x109327(0x1eb)](this[_0x109327(0x1f9)][_0x109327(0x1f1)],()=>_0x184fb7[_0x109327(0x1e7)](_0x4258ed[_0x109327(0x1e1)][_0x109327(0x1d8)](_0x5624c6=>{const _0x1ca649=_0x109327;_0x5624c6[_0x1ca649(0x1d3)]===_0x5c6068['MCPEventId']['McpToolCallExecuted']&&this['fireEvent'](this[_0x1ca649(0x1f9)]['McpToolCallExecuted'],_0x5624c6[_0x1ca649(0x1e8)]);}))),this['registerEventHandler'](this[_0x109327(0x1f9)][_0x109327(0x1d9)],()=>_0x184fb7[_0x109327(0x1e7)](_0x4258ed[_0x109327(0x1e1)]['subscribe'](_0x84f9ea=>{const _0x496459=_0x109327;_0x84f9ea[_0x496459(0x1d3)]===_0x5c6068['MCPEventId'][_0x496459(0x1d9)]&&this[_0x496459(0x1dc)](this['Event'][_0x496459(0x1d9)],_0x84f9ea['data']);})));}[_0x1e59a2(0x1e2)](_0x22e399,_0x547b1a){const _0x4d6de7=_0x1e59a2;return this['_injector']['get'](_0x5c6068[_0x4d6de7(0x1f7)])[_0x4d6de7(0x1ef)](_0x22e399,_0x547b1a);}['getAllMCPTools'](){const _0x1df57e=_0x1e59a2;return this[_0x1df57e(0x1fc)][_0x1df57e(0x1f2)](_0x5c6068[_0x1df57e(0x1f7)])[_0x1df57e(0x1e4)]();}[_0x1e59a2(0x1e3)](_0x24f146,_0x4556e9){const _0x217485=_0x1e59a2;return this[_0x217485(0x1fc)][_0x217485(0x1f2)](_0x5c6068[_0x217485(0x1f7)])[_0x217485(0x1d6)](_0x24f146,_0x4556e9);}[_0x1e59a2(0x1f0)](){const _0x508c10=_0x1e59a2;return this[_0x508c10(0x1fc)][_0x508c10(0x1f2)](_0x5c6068['MCPConnectionController'])[_0x508c10(0x1d5)]();}[_0x1e59a2(0x1ee)](){const _0x1a0936=_0x1e59a2;this[_0x1a0936(0x1fc)]['get'](_0x5c6068[_0x1a0936(0x1df)])['connect']();}[_0x1e59a2(0x1db)](){const _0x2220d2=_0x1e59a2;this['_injector'][_0x2220d2(0x1f2)](_0x5c6068['MCPConnectionController'])[_0x2220d2(0x1d7)]();}}_0x10b7e2[_0x1e59a2(0x1d4)]['extend'](_0x48881c);}));function _0x4622(_0x3bf93f,_0x47eebf){_0x3bf93f=_0x3bf93f-0x1d2;const _0x278f99=_0x278f();let _0x462292=_0x278f99[_0x3bf93f];return _0x462292;}function _0x278f(){const _0xff3a3f=['MCPEventId','@univerjs/core/facade','toDisposable','data','McpToolCallReceived','_initialize','registerEventHandler','FEventName','UniverCoreFacade','connectMCP','validateToolCall','getMCPConnectionStatus','McpToolCallExecuted','get','UniverCore','810925IXkeYt','@univerjs-pro/mcp','388337NaoANm','IMCPToolRegistry','405568dgmtjC','Event','4tJWylL','2204052OZHNhg','_injector','2154aBboAc','@univerjs/core','399520ESovEl','11771010EghEmc','135ocKyFx','type','FUniver','getConnectionStatus','executeTool','disconnect','subscribe','McpToolCallFailed','amd','disconnectMCP','fireEvent','function','329mitojR','MCPConnectionController','McpConnectionStatusChanged','event$','validateMCPToolCall','callMCPTool','getAllTools'];_0x278f=function(){return _0xff3a3f;};return _0x278f();}