@univerjs-pro/mcp-ui 0.10.8-nightly.202509200616 → 0.10.9-experimental.20250925-61b61a0
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/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/controllers/config.schema.d.ts +7 -0
- package/lib/types/controllers/mcp-connection-ui.controller.d.ts +4 -2
- package/lib/types/locale/en-US.d.ts +2 -4
- package/lib/types/locale/zh-CN.d.ts +2 -4
- package/lib/types/views/components/mcp-status.d.ts +2 -0
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +7 -7
package/lib/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x39b0(_0x5d7650,_0x479930){const _0x4de9be=_0x4de9();return _0x39b0=function(_0x39b07e,_0x17fcb2){_0x39b07e=_0x39b07e-0x179;let _0x5eb6f3=_0x4de9be[_0x39b07e];return _0x5eb6f3;},_0x39b0(_0x5d7650,_0x479930);}const _0x2e7ac9=_0x39b0;(function(_0x184769,_0x4b7053){const _0x21be8b=_0x39b0,_0x2be96c=_0x184769();while(!![]){try{const _0x3f1db0=parseInt(_0x21be8b(0x1a2))/0x1+-parseInt(_0x21be8b(0x180))/0x2+parseInt(_0x21be8b(0x195))/0x3+parseInt(_0x21be8b(0x188))/0x4*(parseInt(_0x21be8b(0x190))/0x5)+parseInt(_0x21be8b(0x18d))/0x6+parseInt(_0x21be8b(0x17e))/0x7+-parseInt(_0x21be8b(0x18a))/0x8;if(_0x3f1db0===_0x4b7053)break;else _0x2be96c['push'](_0x2be96c['shift']());}catch(_0x20cf60){_0x2be96c['push'](_0x2be96c['shift']());}}}(_0x4de9,0x7f2a3));const e={'mcpStatus':{'disconnected':_0x2e7ac9(0x199),'connecting':_0x2e7ac9(0x196),'connected':_0x2e7ac9(0x17f),'failed':_0x2e7ac9(0x17c),'retrying':'MCP\x20Retrying...','unknown':_0x2e7ac9(0x18e),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x2e7ac9(0x184),'networkError':_0x2e7ac9(0x17b),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x2e7ac9(0x198),'clickToConfigure':_0x2e7ac9(0x19b)},'mcpConfig':{'title':_0x2e7ac9(0x1a0),'description':_0x2e7ac9(0x186),'apiKey':_0x2e7ac9(0x1a6),'apiKeyPlaceholder':_0x2e7ac9(0x1a3),'apiKeyHint':_0x2e7ac9(0x183),'enableAuth':_0x2e7ac9(0x1a9),'enableAuthHint':_0x2e7ac9(0x18c),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x2e7ac9(0x181),'configStepTitle':_0x2e7ac9(0x194),'configStep1':_0x2e7ac9(0x191),'configStep2':_0x2e7ac9(0x1aa),'configStep3':_0x2e7ac9(0x19c),'sessionId':_0x2e7ac9(0x1a1),'sessionIdDescription':_0x2e7ac9(0x193),'authorizationDescription':_0x2e7ac9(0x19e),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x2e7ac9(0x19f),'save':_0x2e7ac9(0x187),'saving':'Saving...','note1':_0x2e7ac9(0x1a5),'note2':_0x2e7ac9(0x18f),'configSaved':_0x2e7ac9(0x182),'configError':_0x2e7ac9(0x185),'apiApplyInfo':{'title':_0x2e7ac9(0x1a4),'description':_0x2e7ac9(0x189),'univerAiLabel':_0x2e7ac9(0x192),'getStarted':_0x2e7ac9(0x1a7)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x2e7ac9(0x17d),'invalidConfig':_0x2e7ac9(0x179),'invalidApiKey':_0x2e7ac9(0x1a8)},'connectionStatus':{'disconnected':_0x2e7ac9(0x18b),'connecting':_0x2e7ac9(0x197),'connected':_0x2e7ac9(0x19d),'failed':_0x2e7ac9(0x17a),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x2e7ac9(0x19a),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;function _0x4de9(){const _0x57240a=['Invalid\x20configuration','Connection\x20Failed','MCP:\x20Network\x20Error','MCP\x20Connection\x20Failed','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','7053438vGLhhu','MCP\x20Connected','445312zjcVEE','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Configuration\x20saved\x20successfully','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP:\x20Session\x20ID\x20Occupied','Failed\x20to\x20save\x20configuration','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Save\x20Configuration','1155508AFIEfr','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','21671048GAXUZf','Disconnected','Enable\x20authentication\x20for\x20secure\x20connections','2647422nRHkMr','MCP\x20Unknown\x20Status','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','15DLTlNv','Copy\x20the\x20JSON\x20configuration\x20below','Univer\x20AI\x20Console','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Configuration\x20Steps:','2631102IxNClp','MCP\x20Connecting...','Connecting...','Click\x20to\x20connect\x20MCP','MCP\x20Disconnected','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Click\x20to\x20configure\x20MCP','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Connected','API\x20key\x20with\x20Bearer\x20prefix.','Max\x20Retries','MCP\x20Configuration','Session\x20ID','259868boksug','Enter\x20your\x20API\x20key','What\x20is\x20API\x20Key?','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','API\x20Key','Get\x20your\x20API\x20key\x20in\x20seconds','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Enable\x20Authentication','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file'];_0x4de9=function(){return _0x57240a;};return _0x4de9();}export{n as default};
|
package/lib/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x13e4(){const _0x17099e=['MCP\x20Retrying...','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','393828AmzYgX','Connected','627333VqaFaL','Click\x20to\x20connect\x20MCP','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','372wjFKEH','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','1682144qzouJo','MCP\x20Connecting...','1155YWotNR','Save\x20Configuration','Univer\x20AI\x20Console','MCP\x20Connected','Retrying...','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP:\x20Max\x20Retries\x20Exceeded','MCP:\x20Network\x20Error','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Get\x20your\x20API\x20key\x20in\x20seconds','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP:\x20Session\x20ID\x20Occupied','2yWdYlO','2423592ceDmAF','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','API\x20Key','Saving...','MCP\x20Unknown\x20Status','9NrkYcE','80kylJJQ','Session\x20ID','MCP\x20Connection\x20Failed','Failed\x20to\x20save\x20configuration','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20Configuration','Connection\x20Failed','Enable\x20authentication\x20for\x20secure\x20connections','Click\x20to\x20configure\x20MCP','369829UAGkgM','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Configuration\x20Parameters:','MCP\x20Client\x20Configuration','10230410sQtixD','Disconnected','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Enable\x20Authentication','16345zZmoEJ','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP:\x20Unauthorized','Configuration\x20saved\x20successfully','Configuration\x20Steps:','Copy\x20the\x20JSON\x20configuration\x20below','Invalid\x20configuration'];_0x13e4=function(){return _0x17099e;};return _0x13e4();}function _0x3842(_0x40aa7a,_0x2218d5){const _0x13e415=_0x13e4();return _0x3842=function(_0x38429e,_0x205223){_0x38429e=_0x38429e-0x125;let _0xbf14fd=_0x13e415[_0x38429e];return _0xbf14fd;},_0x3842(_0x40aa7a,_0x2218d5);}const _0x5ef725=_0x3842;(function(_0x4efc5e,_0x53314c){const _0x33cd8e=_0x3842,_0x35fb01=_0x4efc5e();while(!![]){try{const _0x355632=parseInt(_0x33cd8e(0x13a))/0x1*(-parseInt(_0x33cd8e(0x12a))/0x2)+-parseInt(_0x33cd8e(0x12b))/0x3+parseInt(_0x33cd8e(0x153))/0x4+parseInt(_0x33cd8e(0x142))/0x5*(-parseInt(_0x33cd8e(0x151))/0x6)+-parseInt(_0x33cd8e(0x14d))/0x7*(parseInt(_0x33cd8e(0x131))/0x8)+parseInt(_0x33cd8e(0x130))/0x9*(-parseInt(_0x33cd8e(0x13e))/0xa)+parseInt(_0x33cd8e(0x155))/0xb*(parseInt(_0x33cd8e(0x14b))/0xc);if(_0x355632===_0x53314c)break;else _0x35fb01['push'](_0x35fb01['shift']());}catch(_0x284ce3){_0x35fb01['push'](_0x35fb01['shift']());}}}(_0x13e4,0x8a691));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x5ef725(0x154),'connected':_0x5ef725(0x158),'failed':_0x5ef725(0x133),'retrying':_0x5ef725(0x149),'unknown':_0x5ef725(0x12f),'unauthorized':_0x5ef725(0x144),'sessionOccupied':_0x5ef725(0x129),'networkError':_0x5ef725(0x125),'maxRetriesExceeded':_0x5ef725(0x15b),'clickToConnect':_0x5ef725(0x14e),'clickToConfigure':_0x5ef725(0x139)},'mcpConfig':{'title':_0x5ef725(0x136),'description':_0x5ef725(0x14f),'apiKey':_0x5ef725(0x12d),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x5ef725(0x15a),'enableAuth':_0x5ef725(0x141),'enableAuthHint':_0x5ef725(0x138),'connectionInfo':_0x5ef725(0x13d),'mcpClientConfig':_0x5ef725(0x13d),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x5ef725(0x146),'configStep1':_0x5ef725(0x147),'configStep2':_0x5ef725(0x14a),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x5ef725(0x132),'sessionIdDescription':_0x5ef725(0x135),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x5ef725(0x13c),'maxRetries':'Max\x20Retries','save':_0x5ef725(0x156),'saving':_0x5ef725(0x12e),'note1':_0x5ef725(0x12c),'note2':_0x5ef725(0x140),'configSaved':_0x5ef725(0x145),'configError':_0x5ef725(0x134),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x5ef725(0x150),'univerAiLabel':_0x5ef725(0x157),'getStarted':_0x5ef725(0x127)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x5ef725(0x128),'invalidConfig':_0x5ef725(0x148),'invalidApiKey':_0x5ef725(0x126)},'connectionStatus':{'disconnected':_0x5ef725(0x13f),'connecting':'Connecting...','connected':_0x5ef725(0x14c),'failed':_0x5ef725(0x137),'retrying':_0x5ef725(0x159)},'connectionError':{'unauthorized':_0x5ef725(0x152),'sessionOccupied':_0x5ef725(0x143),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x5ef725(0x13b)}}},n=e;export{n as default};
|
package/lib/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x2934f3=_0x12e0;(function(_0x458fb9,_0x30a9f4){const _0x1a8595=_0x12e0,_0x1c40ef=_0x458fb9();while(!![]){try{const _0x3221cd=-parseInt(_0x1a8595(0x1bc))/0x1*(parseInt(_0x1a8595(0x1a4))/0x2)+parseInt(_0x1a8595(0x1c9))/0x3*(parseInt(_0x1a8595(0x1a7))/0x4)+-parseInt(_0x1a8595(0x1aa))/0x5*(parseInt(_0x1a8595(0x1a0))/0x6)+-parseInt(_0x1a8595(0x1b2))/0x7*(parseInt(_0x1a8595(0x1a8))/0x8)+parseInt(_0x1a8595(0x1b9))/0x9+-parseInt(_0x1a8595(0x1ae))/0xa+parseInt(_0x1a8595(0x19f))/0xb;if(_0x3221cd===_0x30a9f4)break;else _0x1c40ef['push'](_0x1c40ef['shift']());}catch(_0x2a9423){_0x1c40ef['push'](_0x1c40ef['shift']());}}}(_0x36f8,0x8f4ce));function _0x36f8(){const _0x549e09=['MCP\x20重连中...','MCP:\x20超出最大重试次数','9NuQzCR','连接中...','重启您的\x20MCP\x20客户端以使配置生效','将以下配置添加到您的\x20MCP\x20客户端设置中:','9247832Lysonq','2210232YnQkzQ','最大重试次数','网络连接错误,请检查您的网络连接','会话\x20ID\x20已被占用,请稍后再试','4372oSphHq','您的\x20API\x20密钥安全存储在本地存储中','配置步骤:','755172PyEhfm','8QBjxfu','几秒钟内获取您的\x20API\x20密钥','5caKIiT','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','MCP\x20状态未知','权限验证失败,请检查您的\x20API\x20密钥','405810zRBHNC','MCP\x20客户端配置','API\x20密钥长度至少需要\x2010\x20位','MCP\x20已连接','5683153heycqm','已连接','启用身份验证以获得安全连接','Univer\x20AI\x20控制台','配置\x20MCP\x20使用\x20AI\x20操作电子表格','启用身份验证','MCP:\x20会话\x20ID\x20已被占用','8898597xAUOhQ','MCP\x20已断开','重连中...','269HNPSJD','MCP:\x20网络错误','保存配置','API\x20密钥不能为空','保存中...','MCP\x20配置','会话ID','点击配置\x20MCP','请输入您的\x20API\x20密钥','API\x20密钥','MCP\x20连接失败'];_0x36f8=function(){return _0x549e09;};return _0x36f8();}const e={'mcpStatus':{'disconnected':_0x2934f3(0x1ba),'connecting':'MCP\x20连接中...','connected':_0x2934f3(0x1b1),'failed':_0x2934f3(0x1c6),'retrying':_0x2934f3(0x1c7),'unknown':_0x2934f3(0x1ac),'unauthorized':'MCP:\x20未授权','sessionOccupied':_0x2934f3(0x1b8),'networkError':_0x2934f3(0x1bd),'maxRetriesExceeded':_0x2934f3(0x1c8),'clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x2934f3(0x1c3)},'mcpConfig':{'title':_0x2934f3(0x1c1),'description':_0x2934f3(0x1b6),'apiKey':_0x2934f3(0x1c5),'apiKeyPlaceholder':_0x2934f3(0x1c4),'apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':_0x2934f3(0x1b7),'enableAuthHint':_0x2934f3(0x1b4),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0x2934f3(0x1af),'configInstructions':_0x2934f3(0x19e),'configStepTitle':_0x2934f3(0x1a6),'configStep1':'复制以下\x20JSON\x20配置','configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x2934f3(0x19d),'sessionId':_0x2934f3(0x1c2),'sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':'配置参数:','maxRetries':_0x2934f3(0x1a1),'save':_0x2934f3(0x1be),'saving':_0x2934f3(0x1c0),'note1':'配置更改将立即生效','note2':_0x2934f3(0x1a5),'configSaved':'配置保存成功','configError':'配置保存失败','apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x2934f3(0x1ab),'univerAiLabel':_0x2934f3(0x1b5),'getStarted':_0x2934f3(0x1a9)},'validation':{'apiKeyRequired':_0x2934f3(0x1bf),'apiKeyTooShort':_0x2934f3(0x1b0),'invalidConfig':'配置无效','invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':'未连接','connecting':_0x2934f3(0x19c),'connected':_0x2934f3(0x1b3),'failed':'连接失败','retrying':_0x2934f3(0x1bb)},'connectionError':{'unauthorized':_0x2934f3(0x1ad),'sessionOccupied':_0x2934f3(0x1a3),'networkError':_0x2934f3(0x1a2),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};function _0x12e0(_0x37e5fd,_0x4fc930){const _0x36f86f=_0x36f8();return _0x12e0=function(_0x12e0de,_0x4a36da){_0x12e0de=_0x12e0de-0x19c;let _0x41ef2a=_0x36f86f[_0x12e0de];return _0x41ef2a;},_0x12e0(_0x37e5fd,_0x4fc930);}export{e as default};
|
package/lib/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x47046e=_0x416b;function _0x416b(_0x503772,_0x240075){const _0x363891=_0x3638();return _0x416b=function(_0x416b43,_0x572369){_0x416b43=_0x416b43-0x1bd;let _0x4fbd38=_0x363891[_0x416b43];return _0x4fbd38;},_0x416b(_0x503772,_0x240075);}(function(_0x2d68d8,_0x517b6a){const _0x39c555=_0x416b,_0x305969=_0x2d68d8();while(!![]){try{const _0x352f4b=parseInt(_0x39c555(0x1ed))/0x1*(-parseInt(_0x39c555(0x1e9))/0x2)+parseInt(_0x39c555(0x1c7))/0x3+parseInt(_0x39c555(0x1c5))/0x4+parseInt(_0x39c555(0x1d8))/0x5*(-parseInt(_0x39c555(0x1f2))/0x6)+parseInt(_0x39c555(0x1e6))/0x7*(-parseInt(_0x39c555(0x1be))/0x8)+parseInt(_0x39c555(0x1db))/0x9+-parseInt(_0x39c555(0x1c2))/0xa*(-parseInt(_0x39c555(0x1cd))/0xb);if(_0x352f4b===_0x517b6a)break;else _0x305969['push'](_0x305969['shift']());}catch(_0x207941){_0x305969['push'](_0x305969['shift']());}}}(_0x3638,0xbc41a));const e={'mcpStatus':{'disconnected':_0x47046e(0x1ef),'connecting':_0x47046e(0x1cf),'connected':_0x47046e(0x1f1),'failed':_0x47046e(0x1ee),'retrying':_0x47046e(0x1e2),'unknown':_0x47046e(0x1ce),'unauthorized':_0x47046e(0x1e4),'sessionOccupied':_0x47046e(0x1bf),'networkError':_0x47046e(0x1e1),'maxRetriesExceeded':_0x47046e(0x1c6),'clickToConnect':_0x47046e(0x1eb),'clickToConfigure':_0x47046e(0x1e8)},'mcpConfig':{'title':_0x47046e(0x1c8),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x47046e(0x1ea),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x47046e(0x1e0),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x47046e(0x1c0),'connectionInfo':_0x47046e(0x1f4),'mcpClientConfig':_0x47046e(0x1f4),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x47046e(0x1c1),'configStep1':_0x47046e(0x1d9),'configStep2':_0x47046e(0x1de),'configStep3':_0x47046e(0x1c3),'sessionId':_0x47046e(0x1d1),'sessionIdDescription':_0x47046e(0x1c4),'authorizationDescription':_0x47046e(0x1d7),'configParameters':_0x47046e(0x1c9),'maxRetries':_0x47046e(0x1d2),'save':_0x47046e(0x1f5),'saving':_0x47046e(0x1e7),'note1':_0x47046e(0x1da),'note2':_0x47046e(0x1cb),'configSaved':_0x47046e(0x1bd),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x47046e(0x1f0),'description':_0x47046e(0x1e3),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x47046e(0x1e5)},'validation':{'apiKeyRequired':_0x47046e(0x1dd),'apiKeyTooShort':_0x47046e(0x1dc),'invalidConfig':_0x47046e(0x1d3),'invalidApiKey':_0x47046e(0x1d0)},'connectionStatus':{'disconnected':_0x47046e(0x1ca),'connecting':_0x47046e(0x1d5),'connected':_0x47046e(0x1ec),'failed':_0x47046e(0x1df),'retrying':_0x47046e(0x1cc)},'connectionError':{'unauthorized':_0x47046e(0x1d4),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x47046e(0x1d6),'maxRetriesExceeded':_0x47046e(0x1f3)}}},n=e;function _0x3638(){const _0x2cfba7=['Connected','299819dJHkWQ','MCP\x20Connection\x20Failed','MCP\x20Disconnected','What\x20is\x20API\x20Key?','MCP\x20Connected','794586yotbBi','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Client\x20Configuration','Save\x20Configuration','Configuration\x20saved\x20successfully','8rsTqZc','MCP:\x20Session\x20ID\x20Occupied','Enable\x20authentication\x20for\x20secure\x20connections','Configuration\x20Steps:','20EGrnyU','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','1796508LpDWJa','MCP:\x20Max\x20Retries\x20Exceeded','2745432TThXRu','MCP\x20Configuration','Configuration\x20Parameters:','Disconnected','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Retrying...','2169937HZUwfY','MCP\x20Unknown\x20Status','MCP\x20Connecting...','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Session\x20ID','Max\x20Retries','Invalid\x20configuration','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Connecting...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','API\x20key\x20with\x20Bearer\x20prefix.','35JJoaFH','Copy\x20the\x20JSON\x20configuration\x20below','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','12625884auDScx','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','API\x20key\x20is\x20required','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Connection\x20Failed','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP:\x20Network\x20Error','MCP\x20Retrying...','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','MCP:\x20Unauthorized','Get\x20your\x20API\x20key\x20in\x20seconds','1850030klFwJG','Saving...','Click\x20to\x20configure\x20MCP','8cuJKIj','API\x20Key','Click\x20to\x20connect\x20MCP'];_0x3638=function(){return _0x2cfba7;};return _0x3638();}export{n as default};
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
export declare const MCP_UI_PLUGIN_CONFIG_KEY = "mcp-ui.config";
|
|
2
2
|
export declare const configSymbol: unique symbol;
|
|
3
3
|
export interface IUniverMCPUIConfig {
|
|
4
|
+
/**
|
|
5
|
+
* Whether to show developer tools in the UI (default: false)
|
|
6
|
+
*/
|
|
4
7
|
showDeveloperTools?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Whether to show the MCP connection status in the header menu (default: true)
|
|
10
|
+
*/
|
|
11
|
+
showStatus?: boolean;
|
|
5
12
|
}
|
|
6
13
|
export declare const defaultPluginConfig: Required<IUniverMCPUIConfig>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MCPConnectionController } from '@univerjs-pro/mcp';
|
|
2
|
-
import { Disposable, Injector } from '@univerjs/core';
|
|
2
|
+
import { Disposable, IConfigService, Injector } from '@univerjs/core';
|
|
3
3
|
import { IUIPartsService } from '@univerjs/ui';
|
|
4
4
|
/**
|
|
5
5
|
* MCP Connection UI Controller
|
|
@@ -13,7 +13,9 @@ export declare class MCPConnectionUIController extends Disposable {
|
|
|
13
13
|
private readonly _injector;
|
|
14
14
|
private readonly _connectionController;
|
|
15
15
|
private readonly _uiPartsService;
|
|
16
|
-
|
|
16
|
+
private readonly _configService;
|
|
17
|
+
constructor(_injector: Injector, _connectionController: MCPConnectionController, _uiPartsService: IUIPartsService, _configService: IConfigService);
|
|
18
|
+
private _initAutoConnect;
|
|
17
19
|
/**
|
|
18
20
|
* Initialize status component in the UI
|
|
19
21
|
*/
|
|
@@ -6,8 +6,7 @@ declare const locale: {
|
|
|
6
6
|
failed: string;
|
|
7
7
|
retrying: string;
|
|
8
8
|
unknown: string;
|
|
9
|
-
|
|
10
|
-
invalidApiKey: string;
|
|
9
|
+
unauthorized: string;
|
|
11
10
|
sessionOccupied: string;
|
|
12
11
|
networkError: string;
|
|
13
12
|
maxRetriesExceeded: string;
|
|
@@ -60,8 +59,7 @@ declare const locale: {
|
|
|
60
59
|
retrying: string;
|
|
61
60
|
};
|
|
62
61
|
connectionError: {
|
|
63
|
-
|
|
64
|
-
invalidApiKey: string;
|
|
62
|
+
unauthorized: string;
|
|
65
63
|
sessionOccupied: string;
|
|
66
64
|
networkError: string;
|
|
67
65
|
maxRetriesExceeded: string;
|
|
@@ -6,8 +6,7 @@ declare const locale: {
|
|
|
6
6
|
failed: string;
|
|
7
7
|
retrying: string;
|
|
8
8
|
unknown: string;
|
|
9
|
-
|
|
10
|
-
invalidApiKey: string;
|
|
9
|
+
unauthorized: string;
|
|
11
10
|
sessionOccupied: string;
|
|
12
11
|
networkError: string;
|
|
13
12
|
maxRetriesExceeded: string;
|
|
@@ -60,8 +59,7 @@ declare const locale: {
|
|
|
60
59
|
retrying: string;
|
|
61
60
|
};
|
|
62
61
|
connectionError: {
|
|
63
|
-
|
|
64
|
-
invalidApiKey: string;
|
|
62
|
+
unauthorized: string;
|
|
65
63
|
sessionOccupied: string;
|
|
66
64
|
networkError: string;
|
|
67
65
|
maxRetriesExceeded: string;
|
|
@@ -7,6 +7,8 @@ export interface IMCPStatusProps {
|
|
|
7
7
|
error$: Observable<MCPConnectionError>;
|
|
8
8
|
/** Callback to trigger configuration panel */
|
|
9
9
|
onConfigure?: () => void;
|
|
10
|
+
/** Whether the status is clickable (controlled by showDeveloperTools) */
|
|
11
|
+
showClickable?: boolean;
|
|
10
12
|
}
|
|
11
13
|
/**
|
|
12
14
|
* MCP Status Display Component
|