@univerjs-pro/mcp 0.10.10-nightly.202510180256 → 0.10.10-nightly.202510180327

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(_0xa9a9dd,_0xae68fd){const _0xf9d4bf=_0x30fc,_0x2d963f=_0xa9a9dd();while(!![]){try{const _0x562e91=-parseInt(_0xf9d4bf(0xd3))/0x1*(parseInt(_0xf9d4bf(0xc7))/0x2)+parseInt(_0xf9d4bf(0xe4))/0x3+-parseInt(_0xf9d4bf(0xd2))/0x4*(-parseInt(_0xf9d4bf(0xcf))/0x5)+-parseInt(_0xf9d4bf(0xc4))/0x6+parseInt(_0xf9d4bf(0xdf))/0x7+-parseInt(_0xf9d4bf(0xc3))/0x8+parseInt(_0xf9d4bf(0xd8))/0x9;if(_0x562e91===_0xae68fd)break;else _0x2d963f['push'](_0x2d963f['shift']());}catch(_0x173d59){_0x2d963f['push'](_0x2d963f['shift']());}}}(_0x528e,0x29b65),function(_0x5be26c,_0x59053c){const _0x5c3f91=_0x30fc;typeof exports==_0x5c3f91(0xc0)&&typeof module<'u'?_0x59053c(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x5c3f91(0xe6)&&define[_0x5c3f91(0xc9)]?define([_0x5c3f91(0xdc),'@univerjs/core/facade',_0x5c3f91(0xe8)],_0x59053c):(_0x5be26c=typeof globalThis<'u'?globalThis:_0x5be26c||self,_0x59053c(_0x5be26c[_0x5c3f91(0xe7)],_0x5be26c[_0x5c3f91(0xdb)],_0x5be26c['UniverCore']));}(this,function(_0x16c6a7,_0x52d34d,_0x4fe5d0){'use strict';const _0x2ee846=_0x30fc;class _0x29351a{get[_0x2ee846(0xc1)](){const _0xa7367a=_0x2ee846;return _0x16c6a7['MCPEventId'][_0xa7367a(0xc1)];}get['McpToolCallReceived'](){const _0x2e46d=_0x2ee846;return _0x16c6a7[_0x2e46d(0xd9)][_0x2e46d(0xbc)];}get['McpToolCallExecuted'](){const _0x251003=_0x2ee846;return _0x16c6a7[_0x251003(0xd9)][_0x251003(0xbe)];}get[_0x2ee846(0xe0)](){const _0x4ac083=_0x2ee846;return _0x16c6a7[_0x4ac083(0xd9)][_0x4ac083(0xe0)];}}_0x52d34d[_0x2ee846(0xd7)][_0x2ee846(0xc8)](_0x29351a);class _0x4ed123 extends _0x52d34d[_0x2ee846(0xde)]{[_0x2ee846(0xd1)](_0x1e2929){const _0x18750e=_0x2ee846;this[_0x18750e(0xce)](_0x1e2929);}[_0x2ee846(0xce)](_0x39adbf){const _0x2a95c9=_0x2ee846,_0x38623c=_0x39adbf[_0x2a95c9(0xcc)](_0x16c6a7['MCPEventService']);this[_0x2a95c9(0xcb)](this[_0x2a95c9(0xe5)]['McpConnectionStatusChanged'],()=>_0x4fe5d0[_0x2a95c9(0xc6)](_0x38623c[_0x2a95c9(0xdd)]['subscribe'](_0x420911=>{const _0x5f2667=_0x2a95c9;_0x420911[_0x5f2667(0xd4)]===_0x16c6a7[_0x5f2667(0xd9)][_0x5f2667(0xc1)]&&this[_0x5f2667(0xd0)](this[_0x5f2667(0xe5)][_0x5f2667(0xc1)],_0x420911[_0x5f2667(0xd6)]);}))),this[_0x2a95c9(0xcb)](this[_0x2a95c9(0xe5)][_0x2a95c9(0xbc)],()=>_0x4fe5d0[_0x2a95c9(0xc6)](_0x38623c[_0x2a95c9(0xdd)][_0x2a95c9(0xe1)](_0x10646b=>{const _0x57294e=_0x2a95c9;_0x10646b[_0x57294e(0xd4)]===_0x16c6a7[_0x57294e(0xd9)]['McpToolCallReceived']&&this[_0x57294e(0xd0)](this[_0x57294e(0xe5)][_0x57294e(0xbc)],_0x10646b['data']);}))),this[_0x2a95c9(0xcb)](this[_0x2a95c9(0xe5)][_0x2a95c9(0xbe)],()=>_0x4fe5d0[_0x2a95c9(0xc6)](_0x38623c[_0x2a95c9(0xdd)][_0x2a95c9(0xe1)](_0x309f7a=>{const _0x5c3364=_0x2a95c9;_0x309f7a['type']===_0x16c6a7[_0x5c3364(0xd9)]['McpToolCallExecuted']&&this[_0x5c3364(0xd0)](this['Event'][_0x5c3364(0xbe)],_0x309f7a[_0x5c3364(0xd6)]);}))),this[_0x2a95c9(0xcb)](this[_0x2a95c9(0xe5)][_0x2a95c9(0xe0)],()=>_0x4fe5d0[_0x2a95c9(0xc6)](_0x38623c['event$'][_0x2a95c9(0xe1)](_0xd00b54=>{const _0x56648c=_0x2a95c9;_0xd00b54[_0x56648c(0xd4)]===_0x16c6a7[_0x56648c(0xd9)][_0x56648c(0xe0)]&&this[_0x56648c(0xd0)](this[_0x56648c(0xe5)][_0x56648c(0xe0)],_0xd00b54[_0x56648c(0xd6)]);})));}[_0x2ee846(0xca)](_0x30f8f6,_0x57398c){const _0x2608bb=_0x2ee846;return this[_0x2608bb(0xe9)]['get'](_0x16c6a7[_0x2608bb(0xd5)])[_0x2608bb(0xeb)](_0x30f8f6,_0x57398c);}[_0x2ee846(0xc2)](){const _0x5d9e7c=_0x2ee846;return this[_0x5d9e7c(0xe9)]['get'](_0x16c6a7[_0x5d9e7c(0xd5)])[_0x5d9e7c(0xbf)]();}[_0x2ee846(0xe3)](_0x1c6f95,_0x3b2f96){const _0x31296a=_0x2ee846;return this[_0x31296a(0xe9)]['get'](_0x16c6a7['IMCPToolRegistry'])['executeTool'](_0x1c6f95,_0x3b2f96);}[_0x2ee846(0xcd)](){const _0x117d95=_0x2ee846;return this[_0x117d95(0xe9)]['get'](_0x16c6a7[_0x117d95(0xe2)])['getConnectionStatus']();}[_0x2ee846(0xda)](){const _0x108bba=_0x2ee846;this[_0x108bba(0xe9)][_0x108bba(0xcc)](_0x16c6a7['MCPConnectionController'])[_0x108bba(0xbd)]();}[_0x2ee846(0xea)](){const _0x52eb28=_0x2ee846;this[_0x52eb28(0xe9)]['get'](_0x16c6a7['MCPConnectionController'])[_0x52eb28(0xc5)]();}}_0x52d34d[_0x2ee846(0xde)][_0x2ee846(0xc8)](_0x4ed123);}));function _0x30fc(_0x4e7ec1,_0x3285c4){const _0x528e3d=_0x528e();return _0x30fc=function(_0x30fc4f,_0x4bd3d4){_0x30fc4f=_0x30fc4f-0xbc;let _0x700b26=_0x528e3d[_0x30fc4f];return _0x700b26;},_0x30fc(_0x4e7ec1,_0x3285c4);}function _0x528e(){const _0x47bd2d=['toDisposable','6ZUXFku','extend','amd','validateMCPToolCall','registerEventHandler','get','getMCPConnectionStatus','_registerMCPFacadeEvents','1495yebKrl','fireEvent','_initialize','1612ktuyeg','8969JdUUjr','type','IMCPToolRegistry','data','FEventName','1845936DlnqDV','MCPEventId','connectMCP','UniverCoreFacade','@univerjs-pro/mcp','event$','FUniver','1539447bQhUeM','McpToolCallFailed','subscribe','MCPConnectionController','callMCPTool','335802wzPIdB','Event','function','UniverProMcp','@univerjs/core','_injector','disconnectMCP','validateToolCall','McpToolCallReceived','connect','McpToolCallExecuted','getAllTools','object','McpConnectionStatusChanged','getAllMCPTools','1673864SERkhf','1502778bodsYW','disconnect'];_0x528e=function(){return _0x47bd2d;};return _0x528e();}
1
+ function _0x4fbb(_0x4aa9ff,_0x11b6c0){const _0x1c56b6=_0x1c56();return _0x4fbb=function(_0x4fbba5,_0x1bfc69){_0x4fbba5=_0x4fbba5-0x12b;let _0x1d893a=_0x1c56b6[_0x4fbba5];return _0x1d893a;},_0x4fbb(_0x4aa9ff,_0x11b6c0);}(function(_0x514c52,_0x5dac51){const _0x5d0562=_0x4fbb,_0x5d9f11=_0x514c52();while(!![]){try{const _0x2f84bf=parseInt(_0x5d0562(0x145))/0x1+-parseInt(_0x5d0562(0x13e))/0x2+parseInt(_0x5d0562(0x134))/0x3+parseInt(_0x5d0562(0x13a))/0x4*(-parseInt(_0x5d0562(0x136))/0x5)+parseInt(_0x5d0562(0x12e))/0x6*(-parseInt(_0x5d0562(0x132))/0x7)+parseInt(_0x5d0562(0x147))/0x8+parseInt(_0x5d0562(0x133))/0x9;if(_0x2f84bf===_0x5dac51)break;else _0x5d9f11['push'](_0x5d9f11['shift']());}catch(_0x380516){_0x5d9f11['push'](_0x5d9f11['shift']());}}}(_0x1c56,0xd908f),function(_0x16cf04,_0x3228f4){const _0x452a8f=_0x4fbb;typeof exports=='object'&&typeof module<'u'?_0x3228f4(require('@univerjs-pro/mcp'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define=='function'&&define[_0x452a8f(0x143)]?define([_0x452a8f(0x149),'@univerjs/core/facade',_0x452a8f(0x12b)],_0x3228f4):(_0x16cf04=typeof globalThis<'u'?globalThis:_0x16cf04||self,_0x3228f4(_0x16cf04[_0x452a8f(0x141)],_0x16cf04[_0x452a8f(0x150)],_0x16cf04[_0x452a8f(0x148)]));}(this,function(_0x136b08,_0xd4af4d,_0x462dc0){'use strict';const _0xea2aad=_0x4fbb;class _0x15740e{get[_0xea2aad(0x14c)](){const _0x2ce65e=_0xea2aad;return _0x136b08[_0x2ce65e(0x13d)][_0x2ce65e(0x14c)];}get['McpToolCallReceived'](){const _0x18c39f=_0xea2aad;return _0x136b08[_0x18c39f(0x13d)][_0x18c39f(0x138)];}get[_0xea2aad(0x14e)](){const _0x72ac2e=_0xea2aad;return _0x136b08['MCPEventId'][_0x72ac2e(0x14e)];}get[_0xea2aad(0x144)](){const _0x531261=_0xea2aad;return _0x136b08[_0x531261(0x13d)][_0x531261(0x144)];}}_0xd4af4d[_0xea2aad(0x130)]['extend'](_0x15740e);class _0x5d6b36 extends _0xd4af4d[_0xea2aad(0x14a)]{[_0xea2aad(0x14b)](_0x3ab5da){this['_registerMCPFacadeEvents'](_0x3ab5da);}['_registerMCPFacadeEvents'](_0x3c1b05){const _0x1c3980=_0xea2aad,_0x3c6da6=_0x3c1b05[_0x1c3980(0x12f)](_0x136b08['MCPEventService']);this[_0x1c3980(0x12d)](this['Event'][_0x1c3980(0x14c)],()=>_0x462dc0['toDisposable'](_0x3c6da6[_0x1c3980(0x13f)][_0x1c3980(0x151)](_0x24b0f1=>{const _0x5b579f=_0x1c3980;_0x24b0f1[_0x5b579f(0x12c)]===_0x136b08[_0x5b579f(0x13d)][_0x5b579f(0x14c)]&&this[_0x5b579f(0x155)](this[_0x5b579f(0x13b)][_0x5b579f(0x14c)],_0x24b0f1[_0x5b579f(0x14d)]);}))),this[_0x1c3980(0x12d)](this['Event'][_0x1c3980(0x138)],()=>_0x462dc0['toDisposable'](_0x3c6da6[_0x1c3980(0x13f)][_0x1c3980(0x151)](_0x136082=>{const _0x41cef8=_0x1c3980;_0x136082['type']===_0x136b08[_0x41cef8(0x13d)][_0x41cef8(0x138)]&&this['fireEvent'](this[_0x41cef8(0x13b)][_0x41cef8(0x138)],_0x136082[_0x41cef8(0x14d)]);}))),this[_0x1c3980(0x12d)](this[_0x1c3980(0x13b)][_0x1c3980(0x14e)],()=>_0x462dc0[_0x1c3980(0x137)](_0x3c6da6[_0x1c3980(0x13f)]['subscribe'](_0x3fd142=>{const _0x31f073=_0x1c3980;_0x3fd142[_0x31f073(0x12c)]===_0x136b08[_0x31f073(0x13d)]['McpToolCallExecuted']&&this[_0x31f073(0x155)](this['Event']['McpToolCallExecuted'],_0x3fd142[_0x31f073(0x14d)]);}))),this[_0x1c3980(0x12d)](this[_0x1c3980(0x13b)][_0x1c3980(0x144)],()=>_0x462dc0[_0x1c3980(0x137)](_0x3c6da6[_0x1c3980(0x13f)][_0x1c3980(0x151)](_0xc551c9=>{const _0xf07979=_0x1c3980;_0xc551c9[_0xf07979(0x12c)]===_0x136b08[_0xf07979(0x13d)][_0xf07979(0x144)]&&this[_0xf07979(0x155)](this[_0xf07979(0x13b)][_0xf07979(0x144)],_0xc551c9['data']);})));}['validateMCPToolCall'](_0x40169b,_0x1798c8){const _0x2ba1a0=_0xea2aad;return this[_0x2ba1a0(0x131)][_0x2ba1a0(0x12f)](_0x136b08[_0x2ba1a0(0x153)])[_0x2ba1a0(0x140)](_0x40169b,_0x1798c8);}['getAllMCPTools'](){const _0x54c59f=_0xea2aad;return this['_injector']['get'](_0x136b08[_0x54c59f(0x153)])[_0x54c59f(0x142)]();}['callMCPTool'](_0x25fd5e,_0x36dce5){const _0x1ba940=_0xea2aad;return this[_0x1ba940(0x131)][_0x1ba940(0x12f)](_0x136b08[_0x1ba940(0x153)])['executeTool'](_0x25fd5e,_0x36dce5);}[_0xea2aad(0x139)](){const _0x258365=_0xea2aad;return this[_0x258365(0x131)][_0x258365(0x12f)](_0x136b08[_0x258365(0x13c)])['getConnectionStatus']();}[_0xea2aad(0x135)](){const _0x704372=_0xea2aad;this[_0x704372(0x131)][_0x704372(0x12f)](_0x136b08[_0x704372(0x13c)])[_0x704372(0x146)]();}[_0xea2aad(0x154)](){const _0x424a25=_0xea2aad;this[_0x424a25(0x131)][_0x424a25(0x12f)](_0x136b08[_0x424a25(0x13c)])[_0x424a25(0x152)]();}}_0xd4af4d[_0xea2aad(0x14a)][_0xea2aad(0x14f)](_0x5d6b36);}));function _0x1c56(){const _0x366956=['2025246SICrHD','connectMCP','531890qAFexH','toDisposable','McpToolCallReceived','getMCPConnectionStatus','56FayRAN','Event','MCPConnectionController','MCPEventId','2828362fWsShD','event$','validateToolCall','UniverProMcp','getAllTools','amd','McpToolCallFailed','954934QFsHHg','connect','1657448KDEcjd','UniverCore','@univerjs-pro/mcp','FUniver','_initialize','McpConnectionStatusChanged','data','McpToolCallExecuted','extend','UniverCoreFacade','subscribe','disconnect','IMCPToolRegistry','disconnectMCP','fireEvent','@univerjs/core','type','registerEventHandler','1646226PaOyVQ','get','FEventName','_injector','7mRJAlY','20066598iLOdKK'];_0x1c56=function(){return _0x366956;};return _0x1c56();}