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

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 _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();}
1
+ (function(_0x18a62f,_0x401f3c){const _0x1e8c0a=_0x3763,_0x44522c=_0x18a62f();while(!![]){try{const _0x156dad=parseInt(_0x1e8c0a(0x1ba))/0x1+-parseInt(_0x1e8c0a(0x1a7))/0x2*(-parseInt(_0x1e8c0a(0x19a))/0x3)+-parseInt(_0x1e8c0a(0x19d))/0x4+parseInt(_0x1e8c0a(0x1a6))/0x5*(-parseInt(_0x1e8c0a(0x1b2))/0x6)+-parseInt(_0x1e8c0a(0x1a4))/0x7*(parseInt(_0x1e8c0a(0x1ac))/0x8)+parseInt(_0x1e8c0a(0x1bc))/0x9*(parseInt(_0x1e8c0a(0x1ae))/0xa)+parseInt(_0x1e8c0a(0x1b3))/0xb*(parseInt(_0x1e8c0a(0x195))/0xc);if(_0x156dad===_0x401f3c)break;else _0x44522c['push'](_0x44522c['shift']());}catch(_0x36332c){_0x44522c['push'](_0x44522c['shift']());}}}(_0x5c42,0xc1458),function(_0x4453ba,_0x5578cc){const _0x25b957=_0x3763;typeof exports=='object'&&typeof module<'u'?_0x5578cc(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x25b957(0x1a9)&&define[_0x25b957(0x1c2)]?define([_0x25b957(0x191),_0x25b957(0x1bd),_0x25b957(0x1a5)],_0x5578cc):(_0x4453ba=typeof globalThis<'u'?globalThis:_0x4453ba||self,_0x5578cc(_0x4453ba[_0x25b957(0x1a8)],_0x4453ba[_0x25b957(0x1a0)],_0x4453ba['UniverCore']));}(this,function(_0x1760eb,_0x3186df,_0x2aad53){'use strict';const _0x5a67b1=_0x3763;class _0x3bde9a{get[_0x5a67b1(0x1bb)](){const _0x3fff32=_0x5a67b1;return _0x1760eb[_0x3fff32(0x1c1)]['McpConnectionStatusChanged'];}get[_0x5a67b1(0x196)](){const _0x40c4cd=_0x5a67b1;return _0x1760eb[_0x40c4cd(0x1c1)][_0x40c4cd(0x196)];}get[_0x5a67b1(0x194)](){return _0x1760eb['MCPEventId']['McpToolCallExecuted'];}get[_0x5a67b1(0x1c0)](){const _0x17352c=_0x5a67b1;return _0x1760eb[_0x17352c(0x1c1)][_0x17352c(0x1c0)];}}_0x3186df[_0x5a67b1(0x197)]['extend'](_0x3bde9a);class _0x5836b1 extends _0x3186df['FUniver']{[_0x5a67b1(0x1a3)](_0x2f8214){const _0x4ccb36=_0x5a67b1;this[_0x4ccb36(0x1b8)](_0x2f8214);}['_registerMCPFacadeEvents'](_0x537d4f){const _0x410889=_0x5a67b1,_0x28d94d=_0x537d4f[_0x410889(0x19e)](_0x1760eb[_0x410889(0x1aa)]);this[_0x410889(0x199)](this[_0x410889(0x1ad)][_0x410889(0x1bb)],()=>_0x2aad53[_0x410889(0x1b1)](_0x28d94d[_0x410889(0x192)][_0x410889(0x1b0)](_0x54e136=>{const _0x374ba6=_0x410889;_0x54e136[_0x374ba6(0x193)]===_0x1760eb[_0x374ba6(0x1c1)][_0x374ba6(0x1bb)]&&this[_0x374ba6(0x1ab)](this[_0x374ba6(0x1ad)][_0x374ba6(0x1bb)],_0x54e136[_0x374ba6(0x1af)]);}))),this[_0x410889(0x199)](this[_0x410889(0x1ad)]['McpToolCallReceived'],()=>_0x2aad53[_0x410889(0x1b1)](_0x28d94d[_0x410889(0x192)][_0x410889(0x1b0)](_0xf21029=>{const _0x319399=_0x410889;_0xf21029[_0x319399(0x193)]===_0x1760eb[_0x319399(0x1c1)][_0x319399(0x196)]&&this['fireEvent'](this[_0x319399(0x1ad)][_0x319399(0x196)],_0xf21029[_0x319399(0x1af)]);}))),this['registerEventHandler'](this[_0x410889(0x1ad)][_0x410889(0x194)],()=>_0x2aad53[_0x410889(0x1b1)](_0x28d94d[_0x410889(0x192)][_0x410889(0x1b0)](_0x4128d1=>{const _0x4da860=_0x410889;_0x4128d1[_0x4da860(0x193)]===_0x1760eb[_0x4da860(0x1c1)]['McpToolCallExecuted']&&this['fireEvent'](this[_0x4da860(0x1ad)]['McpToolCallExecuted'],_0x4128d1[_0x4da860(0x1af)]);}))),this[_0x410889(0x199)](this['Event'][_0x410889(0x1c0)],()=>_0x2aad53[_0x410889(0x1b1)](_0x28d94d[_0x410889(0x192)][_0x410889(0x1b0)](_0x293997=>{const _0x1d2f30=_0x410889;_0x293997[_0x1d2f30(0x193)]===_0x1760eb['MCPEventId'][_0x1d2f30(0x1c0)]&&this[_0x1d2f30(0x1ab)](this[_0x1d2f30(0x1ad)][_0x1d2f30(0x1c0)],_0x293997['data']);})));}[_0x5a67b1(0x1b7)](_0x3546ce,_0x3cd4c1){const _0x136671=_0x5a67b1;return this[_0x136671(0x1b4)][_0x136671(0x19e)](_0x1760eb[_0x136671(0x1b9)])[_0x136671(0x1a1)](_0x3546ce,_0x3cd4c1);}[_0x5a67b1(0x19c)](){const _0xf30d12=_0x5a67b1;return this[_0xf30d12(0x1b4)]['get'](_0x1760eb[_0xf30d12(0x1b9)])[_0xf30d12(0x19f)]();}[_0x5a67b1(0x1b5)](_0x310ae8,_0x2caa8b){const _0x59e20f=_0x5a67b1;return this['_injector'][_0x59e20f(0x19e)](_0x1760eb[_0x59e20f(0x1b9)])['executeTool'](_0x310ae8,_0x2caa8b);}['getMCPConnectionStatus'](){const _0x5d7694=_0x5a67b1;return this['_injector']['get'](_0x1760eb[_0x5d7694(0x19b)])['getConnectionStatus']();}['connectMCP'](){const _0x22ac19=_0x5a67b1;this[_0x22ac19(0x1b4)][_0x22ac19(0x19e)](_0x1760eb[_0x22ac19(0x19b)])[_0x22ac19(0x198)]();}[_0x5a67b1(0x1a2)](){const _0xd3645b=_0x5a67b1;this[_0xd3645b(0x1b4)][_0xd3645b(0x19e)](_0x1760eb['MCPConnectionController'])[_0xd3645b(0x1bf)]();}}_0x3186df[_0x5a67b1(0x1b6)][_0x5a67b1(0x1be)](_0x5836b1);}));function _0x3763(_0x94ae5c,_0x33e2af){const _0x5c42b8=_0x5c42();return _0x3763=function(_0x376389,_0x294b5d){_0x376389=_0x376389-0x191;let _0xefeed0=_0x5c42b8[_0x376389];return _0xefeed0;},_0x3763(_0x94ae5c,_0x33e2af);}function _0x5c42(){const _0x5ddcfc=['MCPConnectionController','getAllMCPTools','2773968YNEtHm','get','getAllTools','UniverCoreFacade','validateToolCall','disconnectMCP','_initialize','2071279ZJaEgU','@univerjs/core','385XQwGYp','58abPygq','UniverProMcp','function','MCPEventService','fireEvent','24HjAraM','Event','8783730QsgzoO','data','subscribe','toDisposable','25698wqhGSd','10054CtxiZb','_injector','callMCPTool','FUniver','validateMCPToolCall','_registerMCPFacadeEvents','IMCPToolRegistry','1361921sHTluo','McpConnectionStatusChanged','9wsRuiH','@univerjs/core/facade','extend','disconnect','McpToolCallFailed','MCPEventId','amd','@univerjs-pro/mcp','event$','type','McpToolCallExecuted','1788plXeYK','McpToolCallReceived','FEventName','connect','registerEventHandler','33738yLqKPR'];_0x5c42=function(){return _0x5ddcfc;};return _0x5c42();}