@univerjs-pro/mcp 0.10.12-nightly.202510221114 → 0.10.12-nightly.202510251119

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(_0x2637b3,_0x2db8b3){const _0x473287=_0x3f14,_0x17e467=_0x2637b3();while(!![]){try{const _0x49c320=-parseInt(_0x473287(0xe1))/0x1*(parseInt(_0x473287(0xc6))/0x2)+parseInt(_0x473287(0xde))/0x3*(parseInt(_0x473287(0xd9))/0x4)+-parseInt(_0x473287(0xe4))/0x5+-parseInt(_0x473287(0xe7))/0x6*(parseInt(_0x473287(0xd3))/0x7)+parseInt(_0x473287(0xc7))/0x8*(-parseInt(_0x473287(0xda))/0x9)+parseInt(_0x473287(0xdc))/0xa*(-parseInt(_0x473287(0xe3))/0xb)+parseInt(_0x473287(0xce))/0xc*(parseInt(_0x473287(0xe8))/0xd);if(_0x49c320===_0x2db8b3)break;else _0x17e467['push'](_0x17e467['shift']());}catch(_0x384aa2){_0x17e467['push'](_0x17e467['shift']());}}}(_0x54b2,0x6dcdc),function(_0x53a2e3,_0x5594bf){const _0x4290f9=_0x3f14;typeof exports==_0x4290f9(0xd5)&&typeof module<'u'?_0x5594bf(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x4290f9(0xee)&&define[_0x4290f9(0xd2)]?define(['@univerjs-pro/mcp','@univerjs/core/facade',_0x4290f9(0xcf)],_0x5594bf):(_0x53a2e3=typeof globalThis<'u'?globalThis:_0x53a2e3||self,_0x5594bf(_0x53a2e3[_0x4290f9(0xcd)],_0x53a2e3['UniverCoreFacade'],_0x53a2e3[_0x4290f9(0xe2)]));}(this,function(_0x3a479a,_0x374edb,_0x122320){'use strict';const _0x462dd9=_0x3f14;class _0x3538bf{get[_0x462dd9(0xc1)](){return _0x3a479a['MCPEventId']['McpConnectionStatusChanged'];}get[_0x462dd9(0xe9)](){const _0x31a880=_0x462dd9;return _0x3a479a['MCPEventId'][_0x31a880(0xe9)];}get['McpToolCallExecuted'](){const _0x1739c0=_0x462dd9;return _0x3a479a['MCPEventId'][_0x1739c0(0xd4)];}get[_0x462dd9(0xc0)](){const _0x501960=_0x462dd9;return _0x3a479a[_0x501960(0xec)][_0x501960(0xc0)];}}_0x374edb[_0x462dd9(0xd6)][_0x462dd9(0xe0)](_0x3538bf);class _0x25025c extends _0x374edb[_0x462dd9(0xef)]{['_initialize'](_0xd80e3){const _0xa48d6d=_0x462dd9;this[_0xa48d6d(0xea)](_0xd80e3);}[_0x462dd9(0xea)](_0x5ba00d){const _0x24039c=_0x462dd9,_0x598bac=_0x5ba00d[_0x24039c(0xcb)](_0x3a479a[_0x24039c(0xc4)]);this[_0x24039c(0xbf)](this[_0x24039c(0xca)]['McpConnectionStatusChanged'],()=>_0x122320[_0x24039c(0xdd)](_0x598bac[_0x24039c(0xc3)][_0x24039c(0xeb)](_0x2786f1=>{const _0x34189e=_0x24039c;_0x2786f1[_0x34189e(0xd8)]===_0x3a479a[_0x34189e(0xec)][_0x34189e(0xc1)]&&this[_0x34189e(0xe5)](this['Event'][_0x34189e(0xc1)],_0x2786f1[_0x34189e(0xc5)]);}))),this['registerEventHandler'](this[_0x24039c(0xca)][_0x24039c(0xe9)],()=>_0x122320[_0x24039c(0xdd)](_0x598bac[_0x24039c(0xc3)][_0x24039c(0xeb)](_0x21bbdf=>{const _0x57e05f=_0x24039c;_0x21bbdf['type']===_0x3a479a['MCPEventId'][_0x57e05f(0xe9)]&&this[_0x57e05f(0xe5)](this[_0x57e05f(0xca)]['McpToolCallReceived'],_0x21bbdf['data']);}))),this['registerEventHandler'](this['Event'][_0x24039c(0xd4)],()=>_0x122320[_0x24039c(0xdd)](_0x598bac[_0x24039c(0xc3)][_0x24039c(0xeb)](_0x4bf773=>{const _0x24a895=_0x24039c;_0x4bf773['type']===_0x3a479a[_0x24a895(0xec)][_0x24a895(0xd4)]&&this[_0x24a895(0xe5)](this['Event'][_0x24a895(0xd4)],_0x4bf773['data']);}))),this['registerEventHandler'](this['Event'][_0x24039c(0xc0)],()=>_0x122320[_0x24039c(0xdd)](_0x598bac[_0x24039c(0xc3)][_0x24039c(0xeb)](_0x53ae66=>{const _0x25cc4f=_0x24039c;_0x53ae66[_0x25cc4f(0xd8)]===_0x3a479a['MCPEventId'][_0x25cc4f(0xc0)]&&this[_0x25cc4f(0xe5)](this[_0x25cc4f(0xca)][_0x25cc4f(0xc0)],_0x53ae66[_0x25cc4f(0xc5)]);})));}['validateMCPToolCall'](_0x2b5cf1,_0x22de15){const _0x436be1=_0x462dd9;return this['_injector'][_0x436be1(0xcb)](_0x3a479a[_0x436be1(0xed)])[_0x436be1(0xc8)](_0x2b5cf1,_0x22de15);}[_0x462dd9(0xdf)](){const _0x3a406f=_0x462dd9;return this[_0x3a406f(0xd1)][_0x3a406f(0xcb)](_0x3a479a[_0x3a406f(0xed)])[_0x3a406f(0xcc)]();}[_0x462dd9(0xd0)](_0x4605bf,_0x47decb){const _0x1222ec=_0x462dd9;return this[_0x1222ec(0xd1)][_0x1222ec(0xcb)](_0x3a479a[_0x1222ec(0xed)])[_0x1222ec(0xdb)](_0x4605bf,_0x47decb);}[_0x462dd9(0xd7)](){const _0x1e328f=_0x462dd9;return this[_0x1e328f(0xd1)][_0x1e328f(0xcb)](_0x3a479a[_0x1e328f(0xc9)])[_0x1e328f(0xe6)]();}['connectMCP'](){const _0x34a7ec=_0x462dd9;this[_0x34a7ec(0xd1)]['get'](_0x3a479a['MCPConnectionController'])['connect']();}['disconnectMCP'](){const _0x492107=_0x462dd9;this['_injector']['get'](_0x3a479a[_0x492107(0xc9)])[_0x492107(0xc2)]();}}_0x374edb[_0x462dd9(0xef)][_0x462dd9(0xe0)](_0x25025c);}));function _0x3f14(_0x396096,_0x773999){const _0x54b2af=_0x54b2();return _0x3f14=function(_0x3f14d0,_0x536a33){_0x3f14d0=_0x3f14d0-0xbf;let _0x47da1a=_0x54b2af[_0x3f14d0];return _0x47da1a;},_0x3f14(_0x396096,_0x773999);}function _0x54b2(){const _0x527bb3=['FUniver','registerEventHandler','McpToolCallFailed','McpConnectionStatusChanged','disconnect','event$','MCPEventService','data','654794JySiQp','83936OkJLYI','validateToolCall','MCPConnectionController','Event','get','getAllTools','UniverProMcp','23956092BRRpbp','@univerjs/core','callMCPTool','_injector','amd','327299ARWWAy','McpToolCallExecuted','object','FEventName','getMCPConnectionStatus','type','880868oeodoj','549zWFAod','executeTool','20KYFFVC','toDisposable','9mhCGvG','getAllMCPTools','extend','1wPVeyJ','UniverCore','4246748FQLUEs','935745UEKLat','fireEvent','getConnectionStatus','36PIOMuv','13RzgWiX','McpToolCallReceived','_registerMCPFacadeEvents','subscribe','MCPEventId','IMCPToolRegistry','function'];_0x54b2=function(){return _0x527bb3;};return _0x54b2();}
1
+ (function(_0x43113b,_0x767c44){const _0x1564e1=_0x1b5c,_0x473bed=_0x43113b();while(!![]){try{const _0x522ae0=parseInt(_0x1564e1(0x19b))/0x1+-parseInt(_0x1564e1(0x186))/0x2+-parseInt(_0x1564e1(0x1a6))/0x3+-parseInt(_0x1564e1(0x188))/0x4+parseInt(_0x1564e1(0x187))/0x5+-parseInt(_0x1564e1(0x1a9))/0x6*(parseInt(_0x1564e1(0x184))/0x7)+-parseInt(_0x1564e1(0x1a3))/0x8*(-parseInt(_0x1564e1(0x19c))/0x9);if(_0x522ae0===_0x767c44)break;else _0x473bed['push'](_0x473bed['shift']());}catch(_0x22e0c9){_0x473bed['push'](_0x473bed['shift']());}}}(_0x25db,0x89308),function(_0x53b16b,_0x5578b0){const _0x2dffc5=_0x1b5c;typeof exports==_0x2dffc5(0x17b)&&typeof module<'u'?_0x5578b0(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define=='function'&&define[_0x2dffc5(0x17d)]?define([_0x2dffc5(0x196),_0x2dffc5(0x192),_0x2dffc5(0x198)],_0x5578b0):(_0x53b16b=typeof globalThis<'u'?globalThis:_0x53b16b||self,_0x5578b0(_0x53b16b[_0x2dffc5(0x199)],_0x53b16b[_0x2dffc5(0x1a5)],_0x53b16b[_0x2dffc5(0x18f)]));}(this,function(_0x26c751,_0x2ffe21,_0x488f44){'use strict';const _0x39bae5=_0x1b5c;class _0x291322{get[_0x39bae5(0x18d)](){const _0x3d7d3e=_0x39bae5;return _0x26c751[_0x3d7d3e(0x19d)][_0x3d7d3e(0x18d)];}get[_0x39bae5(0x185)](){const _0x2f1287=_0x39bae5;return _0x26c751[_0x2f1287(0x19d)][_0x2f1287(0x185)];}get[_0x39bae5(0x17e)](){const _0x42d7d2=_0x39bae5;return _0x26c751[_0x42d7d2(0x19d)][_0x42d7d2(0x17e)];}get[_0x39bae5(0x18e)](){const _0x5b6019=_0x39bae5;return _0x26c751[_0x5b6019(0x19d)][_0x5b6019(0x18e)];}}_0x2ffe21[_0x39bae5(0x17a)][_0x39bae5(0x1a2)](_0x291322);class _0x1ece07 extends _0x2ffe21['FUniver']{[_0x39bae5(0x19f)](_0x887c74){const _0x24dbe5=_0x39bae5;this[_0x24dbe5(0x180)](_0x887c74);}[_0x39bae5(0x180)](_0x4ab87f){const _0x221e90=_0x39bae5,_0x4d5306=_0x4ab87f[_0x221e90(0x18a)](_0x26c751['MCPEventService']);this[_0x221e90(0x17c)](this['Event'][_0x221e90(0x18d)],()=>_0x488f44['toDisposable'](_0x4d5306[_0x221e90(0x181)][_0x221e90(0x1a1)](_0x270d08=>{const _0x14723c=_0x221e90;_0x270d08[_0x14723c(0x190)]===_0x26c751[_0x14723c(0x19d)][_0x14723c(0x18d)]&&this['fireEvent'](this[_0x14723c(0x1a4)][_0x14723c(0x18d)],_0x270d08[_0x14723c(0x19e)]);}))),this['registerEventHandler'](this[_0x221e90(0x1a4)][_0x221e90(0x185)],()=>_0x488f44[_0x221e90(0x19a)](_0x4d5306[_0x221e90(0x181)]['subscribe'](_0x24018c=>{const _0x65ced=_0x221e90;_0x24018c['type']===_0x26c751[_0x65ced(0x19d)][_0x65ced(0x185)]&&this[_0x65ced(0x197)](this[_0x65ced(0x1a4)][_0x65ced(0x185)],_0x24018c[_0x65ced(0x19e)]);}))),this[_0x221e90(0x17c)](this[_0x221e90(0x1a4)][_0x221e90(0x17e)],()=>_0x488f44['toDisposable'](_0x4d5306['event$'][_0x221e90(0x1a1)](_0x5b4c71=>{const _0x4ab57a=_0x221e90;_0x5b4c71[_0x4ab57a(0x190)]===_0x26c751[_0x4ab57a(0x19d)]['McpToolCallExecuted']&&this[_0x4ab57a(0x197)](this[_0x4ab57a(0x1a4)][_0x4ab57a(0x17e)],_0x5b4c71[_0x4ab57a(0x19e)]);}))),this[_0x221e90(0x17c)](this[_0x221e90(0x1a4)][_0x221e90(0x18e)],()=>_0x488f44[_0x221e90(0x19a)](_0x4d5306['event$'][_0x221e90(0x1a1)](_0x1a9cdd=>{const _0x43bffc=_0x221e90;_0x1a9cdd[_0x43bffc(0x190)]===_0x26c751[_0x43bffc(0x19d)][_0x43bffc(0x18e)]&&this[_0x43bffc(0x197)](this[_0x43bffc(0x1a4)][_0x43bffc(0x18e)],_0x1a9cdd['data']);})));}[_0x39bae5(0x18b)](_0xbe3af4,_0x303d77){const _0x13e133=_0x39bae5;return this[_0x13e133(0x18c)][_0x13e133(0x18a)](_0x26c751['IMCPToolRegistry'])['validateToolCall'](_0xbe3af4,_0x303d77);}[_0x39bae5(0x182)](){const _0x3dbe3a=_0x39bae5;return this['_injector'][_0x3dbe3a(0x18a)](_0x26c751[_0x3dbe3a(0x189)])[_0x3dbe3a(0x183)]();}[_0x39bae5(0x17f)](_0x50b1a2,_0x2489b7){const _0x33b882=_0x39bae5;return this['_injector'][_0x33b882(0x18a)](_0x26c751[_0x33b882(0x189)])[_0x33b882(0x193)](_0x50b1a2,_0x2489b7);}[_0x39bae5(0x1a0)](){const _0x6083e0=_0x39bae5;return this[_0x6083e0(0x18c)][_0x6083e0(0x18a)](_0x26c751[_0x6083e0(0x1a8)])[_0x6083e0(0x194)]();}[_0x39bae5(0x191)](){const _0xb73a22=_0x39bae5;this[_0xb73a22(0x18c)][_0xb73a22(0x18a)](_0x26c751[_0xb73a22(0x1a8)])['connect']();}[_0x39bae5(0x195)](){const _0x2e057a=_0x39bae5;this[_0x2e057a(0x18c)]['get'](_0x26c751[_0x2e057a(0x1a8)])['disconnect']();}}_0x2ffe21[_0x39bae5(0x1a7)][_0x39bae5(0x1a2)](_0x1ece07);}));function _0x1b5c(_0x4da5c1,_0x3c9062){const _0x25dbda=_0x25db();return _0x1b5c=function(_0x1b5cb8,_0x4ee4a9){_0x1b5cb8=_0x1b5cb8-0x17a;let _0x3f2bd7=_0x25dbda[_0x1b5cb8];return _0x3f2bd7;},_0x1b5c(_0x4da5c1,_0x3c9062);}function _0x25db(){const _0x4a893a=['@univerjs/core','UniverProMcp','toDisposable','1222BfNtDa','99tVLOXw','MCPEventId','data','_initialize','getMCPConnectionStatus','subscribe','extend','797072HELhok','Event','UniverCoreFacade','968334BtRAxy','FUniver','MCPConnectionController','746454EPJWTD','FEventName','object','registerEventHandler','amd','McpToolCallExecuted','callMCPTool','_registerMCPFacadeEvents','event$','getAllMCPTools','getAllTools','14XCPEQy','McpToolCallReceived','398666mYOKcI','3298505lddbZv','1696160OeXMVS','IMCPToolRegistry','get','validateMCPToolCall','_injector','McpConnectionStatusChanged','McpToolCallFailed','UniverCore','type','connectMCP','@univerjs/core/facade','executeTool','getConnectionStatus','disconnectMCP','@univerjs-pro/mcp','fireEvent'];_0x25db=function(){return _0x4a893a;};return _0x25db();}