@univerjs-pro/mcp 0.12.4-experimental.20251211-e01e32a → 0.12.4-insiders.20251211-c28f914

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 _0x2c73(_0x2748c0,_0x21b54c){_0x2748c0=_0x2748c0-0x9e;const _0x5a0ec2=_0x5a0e();let _0x2c7347=_0x5a0ec2[_0x2748c0];return _0x2c7347;}function _0x5a0e(){const _0x137052=['2020205uYvnrr','toDisposable','fireEvent','IMCPToolRegistry','MCPConnectionController','561894lppwUm','extend','@univerjs-pro/mcp','executeTool','event$','subscribe','3191220DazeIk','disconnect','connectMCP','MCPEventService','11HFGJQZ','McpToolCallReceived','UniverCoreFacade','McpToolCallFailed','4FRmhly','callMCPTool','McpConnectionStatusChanged','get','_injector','MCPEventId','969975iPnESD','registerEventHandler','@univerjs/core/facade','function','getMCPConnectionStatus','Event','FUniver','McpToolCallExecuted','1326783WNMPeu','getAllMCPTools','_initialize','28faZCUs','_registerMCPFacadeEvents','type','4277856zNJWyX','object','2rqMAbk','506370agbmUo','amd','validateMCPToolCall','UniverProMcp','data'];_0x5a0e=function(){return _0x137052;};return _0x5a0e();}(function(_0x528d66,_0x2ba0c2){const _0xa8e07b=_0x2c73,_0x636ef2=_0x528d66();while(!![]){try{const _0x302dd8=parseInt(_0xa8e07b(0xaf))/0x1+-parseInt(_0xa8e07b(0xa4))/0x2*(-parseInt(_0xa8e07b(0xcb))/0x3)+-parseInt(_0xa8e07b(0xbd))/0x4*(parseInt(_0xa8e07b(0xaa))/0x5)+-parseInt(_0xa8e07b(0xa5))/0x6*(parseInt(_0xa8e07b(0x9f))/0x7)+parseInt(_0xa8e07b(0xa2))/0x8+-parseInt(_0xa8e07b(0xc3))/0x9+-parseInt(_0xa8e07b(0xb5))/0xa*(parseInt(_0xa8e07b(0xb9))/0xb);if(_0x302dd8===_0x2ba0c2)break;else _0x636ef2['push'](_0x636ef2['shift']());}catch(_0x4b710c){_0x636ef2['push'](_0x636ef2['shift']());}}}(_0x5a0e,0x5a6c1),function(_0x50496a,_0x35947b){const _0x24475e=_0x2c73;typeof exports==_0x24475e(0xa3)&&typeof module<'u'?_0x35947b(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x24475e(0xc6)&&define[_0x24475e(0xa6)]?define([_0x24475e(0xb1),_0x24475e(0xc5),'@univerjs/core'],_0x35947b):(_0x50496a=typeof globalThis<'u'?globalThis:_0x50496a||self,_0x35947b(_0x50496a[_0x24475e(0xa8)],_0x50496a[_0x24475e(0xbb)],_0x50496a['UniverCore']));}(this,function(_0x236f7b,_0x22dea2,_0x3dd27e){'use strict';const _0x47881b=_0x2c73;class _0x147b07{get[_0x47881b(0xbf)](){const _0x1229d2=_0x47881b;return _0x236f7b['MCPEventId'][_0x1229d2(0xbf)];}get['McpToolCallReceived'](){const _0x4c851a=_0x47881b;return _0x236f7b[_0x4c851a(0xc2)]['McpToolCallReceived'];}get[_0x47881b(0xca)](){const _0x650da8=_0x47881b;return _0x236f7b[_0x650da8(0xc2)][_0x650da8(0xca)];}get['McpToolCallFailed'](){const _0x54a52c=_0x47881b;return _0x236f7b[_0x54a52c(0xc2)][_0x54a52c(0xbc)];}}_0x22dea2['FEventName'][_0x47881b(0xb0)](_0x147b07);class _0x1cd4d8 extends _0x22dea2[_0x47881b(0xc9)]{[_0x47881b(0x9e)](_0x2dd40c){const _0x5c07e3=_0x47881b;this[_0x5c07e3(0xa0)](_0x2dd40c);}[_0x47881b(0xa0)](_0x4c7f0d){const _0x5de5c3=_0x47881b,_0x41dad5=_0x4c7f0d[_0x5de5c3(0xc0)](_0x236f7b[_0x5de5c3(0xb8)]);this[_0x5de5c3(0xc4)](this[_0x5de5c3(0xc8)][_0x5de5c3(0xbf)],()=>_0x3dd27e[_0x5de5c3(0xab)](_0x41dad5['event$'][_0x5de5c3(0xb4)](_0x59fe6e=>{const _0x563664=_0x5de5c3;_0x59fe6e[_0x563664(0xa1)]===_0x236f7b[_0x563664(0xc2)][_0x563664(0xbf)]&&this[_0x563664(0xac)](this['Event']['McpConnectionStatusChanged'],_0x59fe6e[_0x563664(0xa9)]);}))),this[_0x5de5c3(0xc4)](this['Event'][_0x5de5c3(0xba)],()=>_0x3dd27e[_0x5de5c3(0xab)](_0x41dad5[_0x5de5c3(0xb3)]['subscribe'](_0x2822ce=>{const _0x2dc5dd=_0x5de5c3;_0x2822ce[_0x2dc5dd(0xa1)]===_0x236f7b[_0x2dc5dd(0xc2)]['McpToolCallReceived']&&this[_0x2dc5dd(0xac)](this[_0x2dc5dd(0xc8)][_0x2dc5dd(0xba)],_0x2822ce[_0x2dc5dd(0xa9)]);}))),this[_0x5de5c3(0xc4)](this[_0x5de5c3(0xc8)][_0x5de5c3(0xca)],()=>_0x3dd27e[_0x5de5c3(0xab)](_0x41dad5[_0x5de5c3(0xb3)]['subscribe'](_0x5dcf59=>{const _0x291e8c=_0x5de5c3;_0x5dcf59[_0x291e8c(0xa1)]===_0x236f7b[_0x291e8c(0xc2)][_0x291e8c(0xca)]&&this[_0x291e8c(0xac)](this[_0x291e8c(0xc8)]['McpToolCallExecuted'],_0x5dcf59[_0x291e8c(0xa9)]);}))),this[_0x5de5c3(0xc4)](this['Event'][_0x5de5c3(0xbc)],()=>_0x3dd27e[_0x5de5c3(0xab)](_0x41dad5['event$'][_0x5de5c3(0xb4)](_0x2ce0f3=>{const _0x530f72=_0x5de5c3;_0x2ce0f3[_0x530f72(0xa1)]===_0x236f7b[_0x530f72(0xc2)][_0x530f72(0xbc)]&&this[_0x530f72(0xac)](this[_0x530f72(0xc8)][_0x530f72(0xbc)],_0x2ce0f3['data']);})));}[_0x47881b(0xa7)](_0x3820cf,_0x2e4e53){const _0x2d9e0e=_0x47881b;return this[_0x2d9e0e(0xc1)][_0x2d9e0e(0xc0)](_0x236f7b[_0x2d9e0e(0xad)])['validateToolCall'](_0x3820cf,_0x2e4e53);}[_0x47881b(0xcc)](){const _0x536e26=_0x47881b;return this[_0x536e26(0xc1)][_0x536e26(0xc0)](_0x236f7b[_0x536e26(0xad)])['getAllTools']();}[_0x47881b(0xbe)](_0x1ecf77,_0x189b5d){const _0x5f172=_0x47881b;return this[_0x5f172(0xc1)][_0x5f172(0xc0)](_0x236f7b[_0x5f172(0xad)])[_0x5f172(0xb2)](_0x1ecf77,_0x189b5d);}[_0x47881b(0xc7)](){const _0x1d0c1f=_0x47881b;return this[_0x1d0c1f(0xc1)]['get'](_0x236f7b[_0x1d0c1f(0xae)])['getConnectionStatus']();}[_0x47881b(0xb7)](){const _0x201cd7=_0x47881b;this[_0x201cd7(0xc1)][_0x201cd7(0xc0)](_0x236f7b[_0x201cd7(0xae)])['connect']();}['disconnectMCP'](){const _0xfaef4f=_0x47881b;this[_0xfaef4f(0xc1)][_0xfaef4f(0xc0)](_0x236f7b[_0xfaef4f(0xae)])[_0xfaef4f(0xb6)]();}}_0x22dea2[_0x47881b(0xc9)][_0x47881b(0xb0)](_0x1cd4d8);}));
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();}