@univerjs-pro/mcp 0.12.4-insiders.20251211-c28f914 → 0.12.4-insiders.20251212-6c41730

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 _0x2c1b(_0xd7fa5b,_0x3c82b1){_0xd7fa5b=_0xd7fa5b-0x8d;const _0x1f4132=_0x1f41();let _0x2c1be1=_0x1f4132[_0xd7fa5b];return _0x2c1be1;}(function(_0x863c4c,_0x4e5d87){const _0x4d49c2=_0x2c1b,_0x2d76e6=_0x863c4c();while(!![]){try{const _0x195d96=parseInt(_0x4d49c2(0xb9))/0x1*(parseInt(_0x4d49c2(0xbc))/0x2)+-parseInt(_0x4d49c2(0xad))/0x3*(parseInt(_0x4d49c2(0x90))/0x4)+-parseInt(_0x4d49c2(0xaf))/0x5*(-parseInt(_0x4d49c2(0x9e))/0x6)+parseInt(_0x4d49c2(0xab))/0x7*(-parseInt(_0x4d49c2(0x97))/0x8)+parseInt(_0x4d49c2(0xa6))/0x9+-parseInt(_0x4d49c2(0xb6))/0xa+parseInt(_0x4d49c2(0xa9))/0xb;if(_0x195d96===_0x4e5d87)break;else _0x2d76e6['push'](_0x2d76e6['shift']());}catch(_0x28a259){_0x2d76e6['push'](_0x2d76e6['shift']());}}}(_0x1f41,0x55b44),function(_0x3cb511,_0x38175b){const _0x52809f=_0x2c1b;typeof exports==_0x52809f(0xbb)&&typeof module<'u'?_0x38175b(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define=='function'&&define[_0x52809f(0x93)]?define([_0x52809f(0xa0),'@univerjs/core/facade',_0x52809f(0x9d)],_0x38175b):(_0x3cb511=typeof globalThis<'u'?globalThis:_0x3cb511||self,_0x38175b(_0x3cb511['UniverProMcp'],_0x3cb511[_0x52809f(0xb3)],_0x3cb511[_0x52809f(0xb1)]));}(this,function(_0x2491db,_0xc275e2,_0x4a3d61){'use strict';const _0x4aa35a=_0x2c1b;class _0x4b0c41{get['McpConnectionStatusChanged'](){const _0x40c5ce=_0x2c1b;return _0x2491db[_0x40c5ce(0xb8)]['McpConnectionStatusChanged'];}get[_0x4aa35a(0xbd)](){const _0x17f073=_0x4aa35a;return _0x2491db[_0x17f073(0xb8)][_0x17f073(0xbd)];}get[_0x4aa35a(0x9a)](){const _0x4e2661=_0x4aa35a;return _0x2491db[_0x4e2661(0xb8)][_0x4e2661(0x9a)];}get[_0x4aa35a(0xa5)](){const _0x1b97ba=_0x4aa35a;return _0x2491db[_0x1b97ba(0xb8)][_0x1b97ba(0xa5)];}}_0xc275e2[_0x4aa35a(0x9b)][_0x4aa35a(0x94)](_0x4b0c41);class _0x44cbc6 extends _0xc275e2[_0x4aa35a(0x8e)]{[_0x4aa35a(0x91)](_0x2342e3){const _0x19e77a=_0x4aa35a;this[_0x19e77a(0xb4)](_0x2342e3);}['_registerMCPFacadeEvents'](_0x4c5d03){const _0x434f77=_0x4aa35a,_0x7e1d0c=_0x4c5d03[_0x434f77(0xb7)](_0x2491db[_0x434f77(0xba)]);this[_0x434f77(0xa7)](this['Event'][_0x434f77(0xa1)],()=>_0x4a3d61[_0x434f77(0xac)](_0x7e1d0c[_0x434f77(0x99)][_0x434f77(0xaa)](_0x378fac=>{const _0x4745f9=_0x434f77;_0x378fac[_0x4745f9(0x96)]===_0x2491db[_0x4745f9(0xb8)][_0x4745f9(0xa1)]&&this[_0x4745f9(0x98)](this[_0x4745f9(0xa2)]['McpConnectionStatusChanged'],_0x378fac[_0x4745f9(0xb2)]);}))),this[_0x434f77(0xa7)](this[_0x434f77(0xa2)][_0x434f77(0xbd)],()=>_0x4a3d61[_0x434f77(0xac)](_0x7e1d0c['event$'][_0x434f77(0xaa)](_0xbe31e6=>{const _0xb9a90c=_0x434f77;_0xbe31e6[_0xb9a90c(0x96)]===_0x2491db[_0xb9a90c(0xb8)][_0xb9a90c(0xbd)]&&this[_0xb9a90c(0x98)](this['Event']['McpToolCallReceived'],_0xbe31e6[_0xb9a90c(0xb2)]);}))),this[_0x434f77(0xa7)](this[_0x434f77(0xa2)][_0x434f77(0x9a)],()=>_0x4a3d61[_0x434f77(0xac)](_0x7e1d0c[_0x434f77(0x99)]['subscribe'](_0x2b3ce4=>{const _0x25eec2=_0x434f77;_0x2b3ce4['type']===_0x2491db[_0x25eec2(0xb8)]['McpToolCallExecuted']&&this[_0x25eec2(0x98)](this['Event'][_0x25eec2(0x9a)],_0x2b3ce4[_0x25eec2(0xb2)]);}))),this['registerEventHandler'](this[_0x434f77(0xa2)][_0x434f77(0xa5)],()=>_0x4a3d61[_0x434f77(0xac)](_0x7e1d0c[_0x434f77(0x99)][_0x434f77(0xaa)](_0x509b7d=>{const _0x576274=_0x434f77;_0x509b7d[_0x576274(0x96)]===_0x2491db[_0x576274(0xb8)][_0x576274(0xa5)]&&this[_0x576274(0x98)](this[_0x576274(0xa2)][_0x576274(0xa5)],_0x509b7d['data']);})));}[_0x4aa35a(0x95)](_0x144d73,_0x3a223a){const _0x28b3b9=_0x4aa35a;return this[_0x28b3b9(0xb0)][_0x28b3b9(0xb7)](_0x2491db[_0x28b3b9(0xa8)])[_0x28b3b9(0xa3)](_0x144d73,_0x3a223a);}['getAllMCPTools'](){const _0x46f15b=_0x4aa35a;return this[_0x46f15b(0xb0)]['get'](_0x2491db[_0x46f15b(0xa8)])[_0x46f15b(0x8d)]();}['callMCPTool'](_0x444793,_0x5de8fa){const _0x3f6fd0=_0x4aa35a;return this[_0x3f6fd0(0xb0)][_0x3f6fd0(0xb7)](_0x2491db[_0x3f6fd0(0xa8)])[_0x3f6fd0(0x9f)](_0x444793,_0x5de8fa);}[_0x4aa35a(0x9c)](){const _0x12a083=_0x4aa35a;return this[_0x12a083(0xb0)][_0x12a083(0xb7)](_0x2491db['MCPConnectionController'])[_0x12a083(0xa4)]();}[_0x4aa35a(0xae)](){const _0x4565d5=_0x4aa35a;this[_0x4565d5(0xb0)]['get'](_0x2491db[_0x4565d5(0x8f)])[_0x4565d5(0xb5)]();}['disconnectMCP'](){const _0x285084=_0x4aa35a;this[_0x285084(0xb0)][_0x285084(0xb7)](_0x2491db[_0x285084(0x8f)])[_0x285084(0x92)]();}}_0xc275e2[_0x4aa35a(0x8e)][_0x4aa35a(0x94)](_0x44cbc6);}));function _0x1f41(){const _0x353cee=['McpConnectionStatusChanged','Event','validateToolCall','getConnectionStatus','McpToolCallFailed','964359QfhUkP','registerEventHandler','IMCPToolRegistry','7658233xKeNvB','subscribe','3580199oqgQxe','toDisposable','879234qnEPed','connectMCP','10BkYtrG','_injector','UniverCore','data','UniverCoreFacade','_registerMCPFacadeEvents','connect','5618070TPLbdi','get','MCPEventId','18ofyfyQ','MCPEventService','object','60756jXpgmH','McpToolCallReceived','getAllTools','FUniver','MCPConnectionController','8cLZdee','_initialize','disconnect','amd','extend','validateMCPToolCall','type','8BSYeIH','fireEvent','event$','McpToolCallExecuted','FEventName','getMCPConnectionStatus','@univerjs/core','1980918ZpWtgQ','executeTool','@univerjs-pro/mcp'];_0x1f41=function(){return _0x353cee;};return _0x1f41();}
1
+ function _0x572b(_0x3e676e,_0xebe122){_0x3e676e=_0x3e676e-0xce;const _0x4d12c2=_0x4d12();let _0x572b14=_0x4d12c2[_0x3e676e];return _0x572b14;}function _0x4d12(){const _0xde7b77=['McpToolCallExecuted','130470gRVIVX','type','subscribe','6906977AaZedI','IMCPToolRegistry','amd','data','connect','McpToolCallFailed','_injector','fireEvent','@univerjs/core/facade','validateToolCall','disconnect','getAllTools','function','MCPConnectionController','18620FyiZVE','registerEventHandler','418224ymKhvg','FEventName','2812965tEojVO','_registerMCPFacadeEvents','extend','Event','McpToolCallReceived','connectMCP','validateMCPToolCall','getConnectionStatus','executeTool','11496072GtMFEG','_initialize','toDisposable','FUniver','@univerjs/core','get','event$','getAllMCPTools','McpConnectionStatusChanged','MCPEventId','object','2843520HmrbDI','6hZtjCo'];_0x4d12=function(){return _0xde7b77;};return _0x4d12();}(function(_0x53d295,_0xf09863){const _0x28816c=_0x572b,_0x842b7c=_0x53d295();while(!![]){try{const _0x5bbdb9=-parseInt(_0x28816c(0xdf))/0x1+parseInt(_0x28816c(0xce))/0x2+-parseInt(_0x28816c(0xe1))/0x3+parseInt(_0x28816c(0xf7))/0x4+-parseInt(_0x28816c(0xe3))/0x5+parseInt(_0x28816c(0xf8))/0x6*(-parseInt(_0x28816c(0xd1))/0x7)+parseInt(_0x28816c(0xec))/0x8;if(_0x5bbdb9===_0xf09863)break;else _0x842b7c['push'](_0x842b7c['shift']());}catch(_0x281676){_0x842b7c['push'](_0x842b7c['shift']());}}}(_0x4d12,0x7b7c0),function(_0x48c0f1,_0x3d973e){const _0x2c22b3=_0x572b;typeof exports==_0x2c22b3(0xf6)&&typeof module<'u'?_0x3d973e(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x2c22b3(0xdd)&&define[_0x2c22b3(0xd3)]?define(['@univerjs-pro/mcp',_0x2c22b3(0xd9),_0x2c22b3(0xf0)],_0x3d973e):(_0x48c0f1=typeof globalThis<'u'?globalThis:_0x48c0f1||self,_0x3d973e(_0x48c0f1['UniverProMcp'],_0x48c0f1['UniverCoreFacade'],_0x48c0f1['UniverCore']));}(this,function(_0x42e4f2,_0x59ac7b,_0xabb46a){'use strict';const _0x170750=_0x572b;class _0x573a60{get[_0x170750(0xf4)](){const _0x586ac6=_0x170750;return _0x42e4f2[_0x586ac6(0xf5)][_0x586ac6(0xf4)];}get[_0x170750(0xe7)](){const _0x2f298c=_0x170750;return _0x42e4f2['MCPEventId'][_0x2f298c(0xe7)];}get[_0x170750(0xf9)](){const _0x2c2f97=_0x170750;return _0x42e4f2['MCPEventId'][_0x2c2f97(0xf9)];}get[_0x170750(0xd6)](){const _0x530c8f=_0x170750;return _0x42e4f2[_0x530c8f(0xf5)][_0x530c8f(0xd6)];}}_0x59ac7b[_0x170750(0xe2)]['extend'](_0x573a60);class _0x4c3cf2 extends _0x59ac7b['FUniver']{[_0x170750(0xed)](_0x3d2af7){const _0x152669=_0x170750;this[_0x152669(0xe4)](_0x3d2af7);}['_registerMCPFacadeEvents'](_0x152df6){const _0x42f502=_0x170750,_0x130f40=_0x152df6['get'](_0x42e4f2['MCPEventService']);this[_0x42f502(0xe0)](this[_0x42f502(0xe6)][_0x42f502(0xf4)],()=>_0xabb46a[_0x42f502(0xee)](_0x130f40[_0x42f502(0xf2)]['subscribe'](_0x42b316=>{const _0x43e195=_0x42f502;_0x42b316[_0x43e195(0xcf)]===_0x42e4f2[_0x43e195(0xf5)][_0x43e195(0xf4)]&&this[_0x43e195(0xd8)](this[_0x43e195(0xe6)][_0x43e195(0xf4)],_0x42b316[_0x43e195(0xd4)]);}))),this[_0x42f502(0xe0)](this[_0x42f502(0xe6)][_0x42f502(0xe7)],()=>_0xabb46a[_0x42f502(0xee)](_0x130f40['event$'][_0x42f502(0xd0)](_0x8aeb59=>{const _0x63f87b=_0x42f502;_0x8aeb59[_0x63f87b(0xcf)]===_0x42e4f2[_0x63f87b(0xf5)][_0x63f87b(0xe7)]&&this['fireEvent'](this[_0x63f87b(0xe6)][_0x63f87b(0xe7)],_0x8aeb59[_0x63f87b(0xd4)]);}))),this['registerEventHandler'](this['Event'][_0x42f502(0xf9)],()=>_0xabb46a[_0x42f502(0xee)](_0x130f40[_0x42f502(0xf2)][_0x42f502(0xd0)](_0x3399db=>{const _0x33ce5e=_0x42f502;_0x3399db[_0x33ce5e(0xcf)]===_0x42e4f2['MCPEventId']['McpToolCallExecuted']&&this[_0x33ce5e(0xd8)](this[_0x33ce5e(0xe6)]['McpToolCallExecuted'],_0x3399db[_0x33ce5e(0xd4)]);}))),this[_0x42f502(0xe0)](this[_0x42f502(0xe6)]['McpToolCallFailed'],()=>_0xabb46a[_0x42f502(0xee)](_0x130f40['event$']['subscribe'](_0x35cac8=>{const _0x5071ff=_0x42f502;_0x35cac8[_0x5071ff(0xcf)]===_0x42e4f2[_0x5071ff(0xf5)]['McpToolCallFailed']&&this[_0x5071ff(0xd8)](this['Event'][_0x5071ff(0xd6)],_0x35cac8[_0x5071ff(0xd4)]);})));}[_0x170750(0xe9)](_0x626301,_0x2a0fd5){const _0x19a47a=_0x170750;return this[_0x19a47a(0xd7)][_0x19a47a(0xf1)](_0x42e4f2[_0x19a47a(0xd2)])[_0x19a47a(0xda)](_0x626301,_0x2a0fd5);}[_0x170750(0xf3)](){const _0xd82dfc=_0x170750;return this[_0xd82dfc(0xd7)]['get'](_0x42e4f2['IMCPToolRegistry'])[_0xd82dfc(0xdc)]();}['callMCPTool'](_0x47d41c,_0x26ce69){const _0x2da3a3=_0x170750;return this[_0x2da3a3(0xd7)][_0x2da3a3(0xf1)](_0x42e4f2[_0x2da3a3(0xd2)])[_0x2da3a3(0xeb)](_0x47d41c,_0x26ce69);}['getMCPConnectionStatus'](){const _0x37bc61=_0x170750;return this[_0x37bc61(0xd7)][_0x37bc61(0xf1)](_0x42e4f2[_0x37bc61(0xde)])[_0x37bc61(0xea)]();}[_0x170750(0xe8)](){const _0x521e36=_0x170750;this[_0x521e36(0xd7)][_0x521e36(0xf1)](_0x42e4f2[_0x521e36(0xde)])[_0x521e36(0xd5)]();}['disconnectMCP'](){const _0x115772=_0x170750;this[_0x115772(0xd7)][_0x115772(0xf1)](_0x42e4f2[_0x115772(0xde)])[_0x115772(0xdb)]();}}_0x59ac7b[_0x170750(0xef)][_0x170750(0xe5)](_0x4c3cf2);}));