@univerjs-pro/mcp 0.10.14-nightly.202511070939 → 0.10.14-nightly.202511080715

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 _0x2d51(){const _0x5a7a06=['type','object','11760RkZNkE','disconnect','_initialize','2VWqHKC','MCPEventService','getAllMCPTools','callMCPTool','3968041PSgKvT','FUniver','@univerjs/core','120vXIxwk','MCPEventId','@univerjs/core/facade','McpToolCallReceived','1277657bwECTO','1229470LMqHAL','McpToolCallFailed','function','toDisposable','90wwdLic','get','McpToolCallExecuted','_registerMCPFacadeEvents','@univerjs-pro/mcp','IMCPToolRegistry','UniverCore','disconnectMCP','fireEvent','getConnectionStatus','registerEventHandler','7828578hIVQnM','_injector','connect','connectMCP','UniverCoreFacade','MCPConnectionController','4581ebcFhB','validateMCPToolCall','280FqPMVK','Event','McpConnectionStatusChanged','getAllTools','69284XFPvEA','41013GioXcG','data','event$','subscribe'];_0x2d51=function(){return _0x5a7a06;};return _0x2d51();}function _0x48e9(_0x474b77,_0x2a5b3c){const _0x2d5119=_0x2d51();return _0x48e9=function(_0x48e9f1,_0x3adc44){_0x48e9f1=_0x48e9f1-0xb7;let _0xc1ff8c=_0x2d5119[_0x48e9f1];return _0xc1ff8c;},_0x48e9(_0x474b77,_0x2a5b3c);}(function(_0x26f4ed,_0x568e0e){const _0x32f6c6=_0x48e9,_0x8c9f0b=_0x26f4ed();while(!![]){try{const _0x1c1d49=-parseInt(_0x32f6c6(0xcc))/0x1*(parseInt(_0x32f6c6(0xc1))/0x2)+parseInt(_0x32f6c6(0xd1))/0x3*(-parseInt(_0x32f6c6(0xb7))/0x4)+-parseInt(_0x32f6c6(0xcd))/0x5+-parseInt(_0x32f6c6(0xdc))/0x6+parseInt(_0x32f6c6(0xb8))/0x7*(-parseInt(_0x32f6c6(0xe4))/0x8)+parseInt(_0x32f6c6(0xe2))/0x9*(parseInt(_0x32f6c6(0xbe))/0xa)+parseInt(_0x32f6c6(0xc5))/0xb*(parseInt(_0x32f6c6(0xc8))/0xc);if(_0x1c1d49===_0x568e0e)break;else _0x8c9f0b['push'](_0x8c9f0b['shift']());}catch(_0x283c5c){_0x8c9f0b['push'](_0x8c9f0b['shift']());}}}(_0x2d51,0x9f655),function(_0x48dd20,_0x3ddeb1){const _0x2c01e8=_0x48e9;typeof exports==_0x2c01e8(0xbd)&&typeof module<'u'?_0x3ddeb1(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x2c01e8(0xcf)&&define['amd']?define([_0x2c01e8(0xd5),_0x2c01e8(0xca),_0x2c01e8(0xc7)],_0x3ddeb1):(_0x48dd20=typeof globalThis<'u'?globalThis:_0x48dd20||self,_0x3ddeb1(_0x48dd20['UniverProMcp'],_0x48dd20[_0x2c01e8(0xe0)],_0x48dd20[_0x2c01e8(0xd7)]));}(this,function(_0x4c976b,_0x869bf1,_0x80988){'use strict';const _0x57584a=_0x48e9;class _0x87b4d8{get[_0x57584a(0xe6)](){const _0x3b6c88=_0x57584a;return _0x4c976b[_0x3b6c88(0xc9)][_0x3b6c88(0xe6)];}get[_0x57584a(0xcb)](){const _0x4f7f7c=_0x57584a;return _0x4c976b[_0x4f7f7c(0xc9)][_0x4f7f7c(0xcb)];}get['McpToolCallExecuted'](){const _0x482b15=_0x57584a;return _0x4c976b['MCPEventId'][_0x482b15(0xd3)];}get[_0x57584a(0xce)](){const _0x134edc=_0x57584a;return _0x4c976b[_0x134edc(0xc9)][_0x134edc(0xce)];}}_0x869bf1['FEventName']['extend'](_0x87b4d8);class _0x3a23a9 extends _0x869bf1[_0x57584a(0xc6)]{[_0x57584a(0xc0)](_0x4f4959){this['_registerMCPFacadeEvents'](_0x4f4959);}[_0x57584a(0xd4)](_0x4949ab){const _0x2be428=_0x57584a,_0x513932=_0x4949ab[_0x2be428(0xd2)](_0x4c976b[_0x2be428(0xc2)]);this[_0x2be428(0xdb)](this[_0x2be428(0xe5)][_0x2be428(0xe6)],()=>_0x80988[_0x2be428(0xd0)](_0x513932[_0x2be428(0xba)]['subscribe'](_0x2c476f=>{const _0x4415a4=_0x2be428;_0x2c476f[_0x4415a4(0xbc)]===_0x4c976b[_0x4415a4(0xc9)][_0x4415a4(0xe6)]&&this[_0x4415a4(0xd9)](this[_0x4415a4(0xe5)]['McpConnectionStatusChanged'],_0x2c476f[_0x4415a4(0xb9)]);}))),this['registerEventHandler'](this['Event'][_0x2be428(0xcb)],()=>_0x80988[_0x2be428(0xd0)](_0x513932[_0x2be428(0xba)][_0x2be428(0xbb)](_0x552259=>{const _0x4048a4=_0x2be428;_0x552259[_0x4048a4(0xbc)]===_0x4c976b['MCPEventId']['McpToolCallReceived']&&this[_0x4048a4(0xd9)](this['Event'][_0x4048a4(0xcb)],_0x552259[_0x4048a4(0xb9)]);}))),this[_0x2be428(0xdb)](this[_0x2be428(0xe5)]['McpToolCallExecuted'],()=>_0x80988[_0x2be428(0xd0)](_0x513932[_0x2be428(0xba)][_0x2be428(0xbb)](_0x1a4cd5=>{const _0xe735f3=_0x2be428;_0x1a4cd5[_0xe735f3(0xbc)]===_0x4c976b[_0xe735f3(0xc9)][_0xe735f3(0xd3)]&&this[_0xe735f3(0xd9)](this['Event'][_0xe735f3(0xd3)],_0x1a4cd5[_0xe735f3(0xb9)]);}))),this[_0x2be428(0xdb)](this[_0x2be428(0xe5)]['McpToolCallFailed'],()=>_0x80988[_0x2be428(0xd0)](_0x513932[_0x2be428(0xba)][_0x2be428(0xbb)](_0x3dd722=>{const _0x4ff7f4=_0x2be428;_0x3dd722['type']===_0x4c976b['MCPEventId'][_0x4ff7f4(0xce)]&&this[_0x4ff7f4(0xd9)](this[_0x4ff7f4(0xe5)][_0x4ff7f4(0xce)],_0x3dd722[_0x4ff7f4(0xb9)]);})));}[_0x57584a(0xe3)](_0x563af8,_0x6e5030){const _0x44b6e8=_0x57584a;return this[_0x44b6e8(0xdd)][_0x44b6e8(0xd2)](_0x4c976b[_0x44b6e8(0xd6)])['validateToolCall'](_0x563af8,_0x6e5030);}[_0x57584a(0xc3)](){const _0x3de561=_0x57584a;return this[_0x3de561(0xdd)]['get'](_0x4c976b[_0x3de561(0xd6)])[_0x3de561(0xe7)]();}[_0x57584a(0xc4)](_0x43edfb,_0x3445a9){const _0x1aaefc=_0x57584a;return this[_0x1aaefc(0xdd)][_0x1aaefc(0xd2)](_0x4c976b[_0x1aaefc(0xd6)])['executeTool'](_0x43edfb,_0x3445a9);}['getMCPConnectionStatus'](){const _0x175abf=_0x57584a;return this[_0x175abf(0xdd)][_0x175abf(0xd2)](_0x4c976b[_0x175abf(0xe1)])[_0x175abf(0xda)]();}[_0x57584a(0xdf)](){const _0x11f55c=_0x57584a;this['_injector']['get'](_0x4c976b[_0x11f55c(0xe1)])[_0x11f55c(0xde)]();}[_0x57584a(0xd8)](){const _0xfb53ec=_0x57584a;this[_0xfb53ec(0xdd)][_0xfb53ec(0xd2)](_0x4c976b[_0xfb53ec(0xe1)])[_0xfb53ec(0xbf)]();}}_0x869bf1[_0x57584a(0xc6)]['extend'](_0x3a23a9);}));
1
+ function _0x4acd(_0x4475b4,_0x268552){const _0x31b0ac=_0x31b0();return _0x4acd=function(_0x4acd21,_0x299442){_0x4acd21=_0x4acd21-0xe1;let _0xdbfc37=_0x31b0ac[_0x4acd21];return _0xdbfc37;},_0x4acd(_0x4475b4,_0x268552);}(function(_0x598e0b,_0x53ab44){const _0x406535=_0x4acd,_0x5073e5=_0x598e0b();while(!![]){try{const _0xbb84f=parseInt(_0x406535(0xf3))/0x1+-parseInt(_0x406535(0xf7))/0x2*(parseInt(_0x406535(0x106))/0x3)+-parseInt(_0x406535(0xfe))/0x4+parseInt(_0x406535(0x107))/0x5+parseInt(_0x406535(0xf0))/0x6*(parseInt(_0x406535(0x10f))/0x7)+-parseInt(_0x406535(0xe5))/0x8+-parseInt(_0x406535(0x100))/0x9;if(_0xbb84f===_0x53ab44)break;else _0x5073e5['push'](_0x5073e5['shift']());}catch(_0x466790){_0x5073e5['push'](_0x5073e5['shift']());}}}(_0x31b0,0xcf36a),function(_0x567f26,_0x5e99c8){const _0x373adb=_0x4acd;typeof exports==_0x373adb(0xe4)&&typeof module<'u'?_0x5e99c8(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x373adb(0xec)&&define['amd']?define([_0x373adb(0xff),_0x373adb(0xf1),_0x373adb(0xe2)],_0x5e99c8):(_0x567f26=typeof globalThis<'u'?globalThis:_0x567f26||self,_0x5e99c8(_0x567f26[_0x373adb(0xf6)],_0x567f26[_0x373adb(0x10e)],_0x567f26['UniverCore']));}(this,function(_0x3e11e5,_0x3e43f6,_0x55bcbe){'use strict';const _0x33592f=_0x4acd;class _0x59027d{get['McpConnectionStatusChanged'](){const _0x343d84=_0x4acd;return _0x3e11e5['MCPEventId'][_0x343d84(0xea)];}get[_0x33592f(0xf8)](){const _0xd4e3b3=_0x33592f;return _0x3e11e5[_0xd4e3b3(0xe9)]['McpToolCallReceived'];}get[_0x33592f(0x101)](){const _0x1c21bb=_0x33592f;return _0x3e11e5['MCPEventId'][_0x1c21bb(0x101)];}get[_0x33592f(0xfc)](){const _0x4bbf04=_0x33592f;return _0x3e11e5[_0x4bbf04(0xe9)][_0x4bbf04(0xfc)];}}_0x3e43f6[_0x33592f(0x109)][_0x33592f(0xef)](_0x59027d);class _0x9b93a5 extends _0x3e43f6[_0x33592f(0xe6)]{[_0x33592f(0x10c)](_0xc270ff){this['_registerMCPFacadeEvents'](_0xc270ff);}[_0x33592f(0x102)](_0x45e1bd){const _0x5b1075=_0x33592f,_0x30c29a=_0x45e1bd[_0x5b1075(0x110)](_0x3e11e5[_0x5b1075(0xed)]);this[_0x5b1075(0xfa)](this[_0x5b1075(0x104)][_0x5b1075(0xea)],()=>_0x55bcbe[_0x5b1075(0x10d)](_0x30c29a[_0x5b1075(0xfb)][_0x5b1075(0xf9)](_0x1cba6f=>{const _0xca0eed=_0x5b1075;_0x1cba6f['type']===_0x3e11e5[_0xca0eed(0xe9)]['McpConnectionStatusChanged']&&this['fireEvent'](this['Event'][_0xca0eed(0xea)],_0x1cba6f[_0xca0eed(0x10a)]);}))),this[_0x5b1075(0xfa)](this[_0x5b1075(0x104)]['McpToolCallReceived'],()=>_0x55bcbe['toDisposable'](_0x30c29a[_0x5b1075(0xfb)][_0x5b1075(0xf9)](_0x158d1f=>{const _0x308f39=_0x5b1075;_0x158d1f[_0x308f39(0x108)]===_0x3e11e5[_0x308f39(0xe9)]['McpToolCallReceived']&&this[_0x308f39(0xe8)](this[_0x308f39(0x104)][_0x308f39(0xf8)],_0x158d1f[_0x308f39(0x10a)]);}))),this[_0x5b1075(0xfa)](this[_0x5b1075(0x104)]['McpToolCallExecuted'],()=>_0x55bcbe[_0x5b1075(0x10d)](_0x30c29a['event$']['subscribe'](_0x1187ca=>{const _0xeff560=_0x5b1075;_0x1187ca['type']===_0x3e11e5[_0xeff560(0xe9)][_0xeff560(0x101)]&&this[_0xeff560(0xe8)](this[_0xeff560(0x104)][_0xeff560(0x101)],_0x1187ca[_0xeff560(0x10a)]);}))),this[_0x5b1075(0xfa)](this[_0x5b1075(0x104)][_0x5b1075(0xfc)],()=>_0x55bcbe[_0x5b1075(0x10d)](_0x30c29a[_0x5b1075(0xfb)][_0x5b1075(0xf9)](_0x26a52e=>{const _0x5e1d60=_0x5b1075;_0x26a52e[_0x5e1d60(0x108)]===_0x3e11e5['MCPEventId'][_0x5e1d60(0xfc)]&&this[_0x5e1d60(0xe8)](this[_0x5e1d60(0x104)][_0x5e1d60(0xfc)],_0x26a52e[_0x5e1d60(0x10a)]);})));}[_0x33592f(0xf4)](_0x4d0f46,_0xdfecd){const _0x1ad85f=_0x33592f;return this['_injector'][_0x1ad85f(0x110)](_0x3e11e5['IMCPToolRegistry'])[_0x1ad85f(0xfd)](_0x4d0f46,_0xdfecd);}['getAllMCPTools'](){const _0x46b475=_0x33592f;return this[_0x46b475(0xeb)][_0x46b475(0x110)](_0x3e11e5[_0x46b475(0x10b)])[_0x46b475(0xee)]();}['callMCPTool'](_0x33c905,_0x452491){const _0x3ea35d=_0x33592f;return this[_0x3ea35d(0xeb)][_0x3ea35d(0x110)](_0x3e11e5[_0x3ea35d(0x10b)])[_0x3ea35d(0xf2)](_0x33c905,_0x452491);}[_0x33592f(0xe1)](){const _0x1bb9f0=_0x33592f;return this[_0x1bb9f0(0xeb)][_0x1bb9f0(0x110)](_0x3e11e5[_0x1bb9f0(0xf5)])[_0x1bb9f0(0x105)]();}[_0x33592f(0xe3)](){const _0x33a803=_0x33592f;this['_injector'][_0x33a803(0x110)](_0x3e11e5[_0x33a803(0xf5)])['connect']();}[_0x33592f(0x103)](){const _0x576986=_0x33592f;this[_0x576986(0xeb)][_0x576986(0x110)](_0x3e11e5[_0x576986(0xf5)])[_0x576986(0xe7)]();}}_0x3e43f6[_0x33592f(0xe6)]['extend'](_0x9b93a5);}));function _0x31b0(){const _0x2b831a=['data','IMCPToolRegistry','_initialize','toDisposable','UniverCoreFacade','16030wndOoq','get','getMCPConnectionStatus','@univerjs/core','connectMCP','object','8739088bOhqDo','FUniver','disconnect','fireEvent','MCPEventId','McpConnectionStatusChanged','_injector','function','MCPEventService','getAllTools','extend','1878zZTvRt','@univerjs/core/facade','executeTool','907616giUSVY','validateMCPToolCall','MCPConnectionController','UniverProMcp','6vOKbdn','McpToolCallReceived','subscribe','registerEventHandler','event$','McpToolCallFailed','validateToolCall','1014564OZMyKr','@univerjs-pro/mcp','723789VCvQgC','McpToolCallExecuted','_registerMCPFacadeEvents','disconnectMCP','Event','getConnectionStatus','921849IGlbWb','7863285zYpXze','type','FEventName'];_0x31b0=function(){return _0x2b831a;};return _0x31b0();}