@univerjs-pro/mcp 0.10.9-nightly.202509260614 → 0.10.10-experimental.20251010-3f807c5

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 _0x1e07(){const _0x1f50ca=['toDisposable','event$','_injector','McpToolCallExecuted','extend','7466YtiZiW','UniverCoreFacade','@univerjs/core','16418208klxgAO','@univerjs/core/facade','MCPEventId','@univerjs-pro/mcp','data','McpConnectionStatusChanged','IMCPToolRegistry','7AlxeJn','786952CzdMFI','30NxsBmw','connect','validateToolCall','Event','MCPConnectionController','type','McpToolCallReceived','function','get','179oYLQmo','McpToolCallFailed','getAllTools','FEventName','subscribe','getConnectionStatus','fireEvent','MCPEventService','_registerMCPFacadeEvents','UniverProMcp','3yLwXGI','3565WlJGLX','registerEventHandler','6654VOUOfc','8842064qoaJOS','3232791gWuHBj','disconnectMCP','3091188kQlNza','executeTool','disconnect','_initialize','FUniver'];_0x1e07=function(){return _0x1f50ca;};return _0x1e07();}function _0x34ee(_0x70256d,_0x2b557d){const _0x1e07e3=_0x1e07();return _0x34ee=function(_0x34eece,_0x2f6e7c){_0x34eece=_0x34eece-0x64;let _0x45a26b=_0x1e07e3[_0x34eece];return _0x45a26b;},_0x34ee(_0x70256d,_0x2b557d);}(function(_0x181b36,_0x438e34){const _0x3f7012=_0x34ee,_0x259507=_0x181b36();while(!![]){try{const _0x1b59a4=-parseInt(_0x3f7012(0x92))/0x1*(-parseInt(_0x3f7012(0x7d))/0x2)+parseInt(_0x3f7012(0x6c))/0x3*(-parseInt(_0x3f7012(0x73))/0x4)+parseInt(_0x3f7012(0x6d))/0x5*(-parseInt(_0x3f7012(0x6f))/0x6)+parseInt(_0x3f7012(0x87))/0x7*(-parseInt(_0x3f7012(0x88))/0x8)+-parseInt(_0x3f7012(0x71))/0x9*(-parseInt(_0x3f7012(0x89))/0xa)+-parseInt(_0x3f7012(0x70))/0xb+parseInt(_0x3f7012(0x80))/0xc;if(_0x1b59a4===_0x438e34)break;else _0x259507['push'](_0x259507['shift']());}catch(_0x186a95){_0x259507['push'](_0x259507['shift']());}}}(_0x1e07,0x9e459),function(_0x2d51dc,_0x3d870c){const _0x537046=_0x34ee;typeof exports=='object'&&typeof module<'u'?_0x3d870c(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x537046(0x90)&&define['amd']?define([_0x537046(0x83),_0x537046(0x81),_0x537046(0x7f)],_0x3d870c):(_0x2d51dc=typeof globalThis<'u'?globalThis:_0x2d51dc||self,_0x3d870c(_0x2d51dc[_0x537046(0x6b)],_0x2d51dc[_0x537046(0x7e)],_0x2d51dc['UniverCore']));}(this,function(_0x528b23,_0x4f2cc2,_0x456302){'use strict';const _0x2926b7=_0x34ee;class _0x51eccc{get[_0x2926b7(0x85)](){const _0x2dda36=_0x2926b7;return _0x528b23[_0x2dda36(0x82)][_0x2dda36(0x85)];}get[_0x2926b7(0x8f)](){const _0x239b4e=_0x2926b7;return _0x528b23[_0x239b4e(0x82)]['McpToolCallReceived'];}get[_0x2926b7(0x7b)](){const _0x1aedb4=_0x2926b7;return _0x528b23['MCPEventId'][_0x1aedb4(0x7b)];}get[_0x2926b7(0x93)](){const _0x3acd18=_0x2926b7;return _0x528b23[_0x3acd18(0x82)]['McpToolCallFailed'];}}_0x4f2cc2[_0x2926b7(0x65)]['extend'](_0x51eccc);class _0x53a117 extends _0x4f2cc2[_0x2926b7(0x77)]{[_0x2926b7(0x76)](_0x34c044){const _0xf5ef8c=_0x2926b7;this[_0xf5ef8c(0x6a)](_0x34c044);}[_0x2926b7(0x6a)](_0x2b296a){const _0x62a35b=_0x2926b7,_0x582dac=_0x2b296a[_0x62a35b(0x91)](_0x528b23[_0x62a35b(0x69)]);this[_0x62a35b(0x6e)](this[_0x62a35b(0x8c)][_0x62a35b(0x85)],()=>_0x456302[_0x62a35b(0x78)](_0x582dac[_0x62a35b(0x79)][_0x62a35b(0x66)](_0x35283e=>{const _0x233737=_0x62a35b;_0x35283e[_0x233737(0x8e)]===_0x528b23['MCPEventId'][_0x233737(0x85)]&&this[_0x233737(0x68)](this[_0x233737(0x8c)]['McpConnectionStatusChanged'],_0x35283e['data']);}))),this['registerEventHandler'](this[_0x62a35b(0x8c)]['McpToolCallReceived'],()=>_0x456302[_0x62a35b(0x78)](_0x582dac[_0x62a35b(0x79)][_0x62a35b(0x66)](_0x30ec04=>{const _0x3f5527=_0x62a35b;_0x30ec04[_0x3f5527(0x8e)]===_0x528b23['MCPEventId'][_0x3f5527(0x8f)]&&this[_0x3f5527(0x68)](this[_0x3f5527(0x8c)][_0x3f5527(0x8f)],_0x30ec04['data']);}))),this[_0x62a35b(0x6e)](this[_0x62a35b(0x8c)][_0x62a35b(0x7b)],()=>_0x456302['toDisposable'](_0x582dac[_0x62a35b(0x79)][_0x62a35b(0x66)](_0x328497=>{const _0x13e125=_0x62a35b;_0x328497['type']===_0x528b23['MCPEventId'][_0x13e125(0x7b)]&&this[_0x13e125(0x68)](this[_0x13e125(0x8c)][_0x13e125(0x7b)],_0x328497['data']);}))),this[_0x62a35b(0x6e)](this[_0x62a35b(0x8c)][_0x62a35b(0x93)],()=>_0x456302[_0x62a35b(0x78)](_0x582dac[_0x62a35b(0x79)][_0x62a35b(0x66)](_0x3bc5fc=>{const _0x583f51=_0x62a35b;_0x3bc5fc[_0x583f51(0x8e)]===_0x528b23[_0x583f51(0x82)][_0x583f51(0x93)]&&this['fireEvent'](this[_0x583f51(0x8c)]['McpToolCallFailed'],_0x3bc5fc[_0x583f51(0x84)]);})));}['validateMCPToolCall'](_0x46048b,_0x29091a){const _0x469cd1=_0x2926b7;return this['_injector']['get'](_0x528b23[_0x469cd1(0x86)])[_0x469cd1(0x8b)](_0x46048b,_0x29091a);}['getAllMCPTools'](){const _0x14b802=_0x2926b7;return this[_0x14b802(0x7a)][_0x14b802(0x91)](_0x528b23['IMCPToolRegistry'])[_0x14b802(0x64)]();}['callMCPTool'](_0x597335,_0xf852ca){const _0x473227=_0x2926b7;return this[_0x473227(0x7a)][_0x473227(0x91)](_0x528b23[_0x473227(0x86)])[_0x473227(0x74)](_0x597335,_0xf852ca);}['getMCPConnectionStatus'](){const _0xdf3c31=_0x2926b7;return this[_0xdf3c31(0x7a)][_0xdf3c31(0x91)](_0x528b23[_0xdf3c31(0x8d)])[_0xdf3c31(0x67)]();}['connectMCP'](){const _0x33cd73=_0x2926b7;this[_0x33cd73(0x7a)][_0x33cd73(0x91)](_0x528b23[_0x33cd73(0x8d)])[_0x33cd73(0x8a)]();}[_0x2926b7(0x72)](){const _0x34175e=_0x2926b7;this['_injector'][_0x34175e(0x91)](_0x528b23[_0x34175e(0x8d)])[_0x34175e(0x75)]();}}_0x4f2cc2['FUniver'][_0x2926b7(0x7c)](_0x53a117);}));
1
+ function _0x192c(_0x45c74a,_0x9856a4){const _0x538cd3=_0x538c();return _0x192c=function(_0x192cbf,_0x16a408){_0x192cbf=_0x192cbf-0x15f;let _0x2ea084=_0x538cd3[_0x192cbf];return _0x2ea084;},_0x192c(_0x45c74a,_0x9856a4);}(function(_0x542474,_0x1c0c13){const _0x22e37d=_0x192c,_0x1a606a=_0x542474();while(!![]){try{const _0xbb0856=-parseInt(_0x22e37d(0x168))/0x1+parseInt(_0x22e37d(0x183))/0x2+parseInt(_0x22e37d(0x178))/0x3*(parseInt(_0x22e37d(0x160))/0x4)+-parseInt(_0x22e37d(0x181))/0x5+-parseInt(_0x22e37d(0x17e))/0x6*(-parseInt(_0x22e37d(0x172))/0x7)+parseInt(_0x22e37d(0x17f))/0x8+-parseInt(_0x22e37d(0x185))/0x9*(parseInt(_0x22e37d(0x16b))/0xa);if(_0xbb0856===_0x1c0c13)break;else _0x1a606a['push'](_0x1a606a['shift']());}catch(_0x579476){_0x1a606a['push'](_0x1a606a['shift']());}}}(_0x538c,0x66fa9),function(_0x80edec,_0x432864){const _0xbed0fe=_0x192c;typeof exports==_0xbed0fe(0x17a)&&typeof module<'u'?_0x432864(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0xbed0fe(0x167)&&define[_0xbed0fe(0x177)]?define([_0xbed0fe(0x15f),_0xbed0fe(0x163),_0xbed0fe(0x161)],_0x432864):(_0x80edec=typeof globalThis<'u'?globalThis:_0x80edec||self,_0x432864(_0x80edec[_0xbed0fe(0x17c)],_0x80edec['UniverCoreFacade'],_0x80edec[_0xbed0fe(0x18a)]));}(this,function(_0x515741,_0x485c58,_0x4de0f2){'use strict';const _0x24b061=_0x192c;class _0x171ed0{get['McpConnectionStatusChanged'](){const _0x281b65=_0x192c;return _0x515741['MCPEventId'][_0x281b65(0x16f)];}get[_0x24b061(0x184)](){const _0x5a3dc8=_0x24b061;return _0x515741[_0x5a3dc8(0x165)][_0x5a3dc8(0x184)];}get['McpToolCallExecuted'](){const _0x4df152=_0x24b061;return _0x515741[_0x4df152(0x165)][_0x4df152(0x173)];}get[_0x24b061(0x176)](){const _0x3aa08d=_0x24b061;return _0x515741[_0x3aa08d(0x165)][_0x3aa08d(0x176)];}}_0x485c58[_0x24b061(0x16c)][_0x24b061(0x189)](_0x171ed0);class _0x335304 extends _0x485c58[_0x24b061(0x16a)]{['_initialize'](_0x3b9f3e){const _0x1715a6=_0x24b061;this[_0x1715a6(0x171)](_0x3b9f3e);}[_0x24b061(0x171)](_0x54b8e7){const _0xc36550=_0x24b061,_0x56f5e8=_0x54b8e7['get'](_0x515741[_0xc36550(0x162)]);this[_0xc36550(0x174)](this[_0xc36550(0x17b)][_0xc36550(0x16f)],()=>_0x4de0f2[_0xc36550(0x188)](_0x56f5e8[_0xc36550(0x175)][_0xc36550(0x187)](_0x23fff9=>{const _0x20f144=_0xc36550;_0x23fff9['type']===_0x515741[_0x20f144(0x165)][_0x20f144(0x16f)]&&this[_0x20f144(0x18d)](this[_0x20f144(0x17b)][_0x20f144(0x16f)],_0x23fff9[_0x20f144(0x186)]);}))),this[_0xc36550(0x174)](this[_0xc36550(0x17b)][_0xc36550(0x184)],()=>_0x4de0f2[_0xc36550(0x188)](_0x56f5e8[_0xc36550(0x175)][_0xc36550(0x187)](_0x1a7062=>{const _0x113073=_0xc36550;_0x1a7062[_0x113073(0x166)]===_0x515741[_0x113073(0x165)][_0x113073(0x184)]&&this[_0x113073(0x18d)](this[_0x113073(0x17b)][_0x113073(0x184)],_0x1a7062[_0x113073(0x186)]);}))),this[_0xc36550(0x174)](this[_0xc36550(0x17b)][_0xc36550(0x173)],()=>_0x4de0f2[_0xc36550(0x188)](_0x56f5e8[_0xc36550(0x175)][_0xc36550(0x187)](_0x3b50e1=>{const _0x66ca2c=_0xc36550;_0x3b50e1['type']===_0x515741[_0x66ca2c(0x165)]['McpToolCallExecuted']&&this[_0x66ca2c(0x18d)](this[_0x66ca2c(0x17b)]['McpToolCallExecuted'],_0x3b50e1[_0x66ca2c(0x186)]);}))),this[_0xc36550(0x174)](this[_0xc36550(0x17b)][_0xc36550(0x176)],()=>_0x4de0f2[_0xc36550(0x188)](_0x56f5e8[_0xc36550(0x175)]['subscribe'](_0x42073f=>{const _0x4f1e37=_0xc36550;_0x42073f[_0x4f1e37(0x166)]===_0x515741[_0x4f1e37(0x165)][_0x4f1e37(0x176)]&&this[_0x4f1e37(0x18d)](this[_0x4f1e37(0x17b)][_0x4f1e37(0x176)],_0x42073f[_0x4f1e37(0x186)]);})));}[_0x24b061(0x179)](_0x2c1913,_0x4f7d8c){const _0x14a065=_0x24b061;return this[_0x14a065(0x170)][_0x14a065(0x18b)](_0x515741['IMCPToolRegistry'])[_0x14a065(0x169)](_0x2c1913,_0x4f7d8c);}['getAllMCPTools'](){const _0x24068e=_0x24b061;return this['_injector']['get'](_0x515741[_0x24068e(0x18c)])['getAllTools']();}[_0x24b061(0x164)](_0x36104d,_0x189774){const _0x1f6c21=_0x24b061;return this[_0x1f6c21(0x170)][_0x1f6c21(0x18b)](_0x515741[_0x1f6c21(0x18c)])['executeTool'](_0x36104d,_0x189774);}[_0x24b061(0x16e)](){const _0x4ce0f6=_0x24b061;return this['_injector'][_0x4ce0f6(0x18b)](_0x515741[_0x4ce0f6(0x17d)])['getConnectionStatus']();}[_0x24b061(0x16d)](){const _0x3e4949=_0x24b061;this[_0x3e4949(0x170)][_0x3e4949(0x18b)](_0x515741[_0x3e4949(0x17d)])[_0x3e4949(0x180)]();}[_0x24b061(0x182)](){const _0x19a626=_0x24b061;this[_0x19a626(0x170)][_0x19a626(0x18b)](_0x515741[_0x19a626(0x17d)])['disconnect']();}}_0x485c58[_0x24b061(0x16a)][_0x24b061(0x189)](_0x335304);}));function _0x538c(){const _0x134bf5=['validateMCPToolCall','object','Event','UniverProMcp','MCPConnectionController','6yftjHw','4399640qgWLQo','connect','1705115UDCCfA','disconnectMCP','1424076anQHTK','McpToolCallReceived','8841060SJrKdw','data','subscribe','toDisposable','extend','UniverCore','get','IMCPToolRegistry','fireEvent','@univerjs-pro/mcp','4ebrMEq','@univerjs/core','MCPEventService','@univerjs/core/facade','callMCPTool','MCPEventId','type','function','538005XpmEEb','validateToolCall','FUniver','10jSupHk','FEventName','connectMCP','getMCPConnectionStatus','McpConnectionStatusChanged','_injector','_registerMCPFacadeEvents','3483011LWlneg','McpToolCallExecuted','registerEventHandler','event$','McpToolCallFailed','amd','1570809QKXmbO'];_0x538c=function(){return _0x134bf5;};return _0x538c();}