@univerjs-pro/mcp-ui 0.10.9 → 0.10.10
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
|
-
const
|
|
1
|
+
function _0x14dd(_0x47c0a5,_0x5c23ba){const _0x542a7c=_0x542a();return _0x14dd=function(_0x14dd85,_0x32c70b){_0x14dd85=_0x14dd85-0x1cd;let _0xc8517=_0x542a7c[_0x14dd85];return _0xc8517;},_0x14dd(_0x47c0a5,_0x5c23ba);}function _0x542a(){const _0x398747=['MCP:\x20Network\x20Error','11829zRLzOK','315585CjRBjg','1001176cFiNhl','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','10BFYZjt','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','18xjygrp','197981qoWvHf','MCP\x20Connecting...','Univer\x20AI\x20Console','Saving...','MCP:\x20Unauthorized','Get\x20your\x20API\x20key\x20in\x20seconds','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','194453nRAsXi','Configuration\x20saved\x20successfully','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','584330FAeBJr','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','API\x20key\x20with\x20Bearer\x20prefix.','Enter\x20your\x20API\x20key','Configuration\x20Parameters:','Copy\x20the\x20JSON\x20configuration\x20below','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP:\x20Session\x20ID\x20Occupied','MCP\x20Configuration','Click\x20to\x20connect\x20MCP','Session\x20ID','MCP\x20Retrying...','API\x20key\x20is\x20required','What\x20is\x20API\x20Key?','Connection\x20Failed','Connected','MCP\x20Client\x20Configuration','Enable\x20authentication\x20for\x20secure\x20connections','325396GDglnv','MCP\x20Unknown\x20Status','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Invalid\x20configuration','Connecting...','88mmSGCg','Click\x20to\x20configure\x20MCP','Max\x20Retries','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Save\x20Configuration','Failed\x20to\x20save\x20configuration','8ruyCZt'];_0x542a=function(){return _0x398747;};return _0x542a();}const _0x21dc94=_0x14dd;(function(_0x4ad35a,_0x427dae){const _0x1ce7e2=_0x14dd,_0x3e17ed=_0x4ad35a();while(!![]){try{const _0x39d867=parseInt(_0x1ce7e2(0x1de))/0x1+parseInt(_0x1ce7e2(0x1f4))/0x2+-parseInt(_0x1ce7e2(0x1d0))/0x3*(parseInt(_0x1ce7e2(0x1f9))/0x4)+-parseInt(_0x1ce7e2(0x1e2))/0x5+parseInt(_0x1ce7e2(0x1d6))/0x6*(-parseInt(_0x1ce7e2(0x1d7))/0x7)+-parseInt(_0x1ce7e2(0x1ce))/0x8*(parseInt(_0x1ce7e2(0x1d1))/0x9)+-parseInt(_0x1ce7e2(0x1d4))/0xa*(-parseInt(_0x1ce7e2(0x1d2))/0xb);if(_0x39d867===_0x427dae)break;else _0x3e17ed['push'](_0x3e17ed['shift']());}catch(_0x5f57d0){_0x3e17ed['push'](_0x3e17ed['shift']());}}}(_0x542a,0x1e6e1));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x21dc94(0x1d8),'connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':_0x21dc94(0x1ed),'unknown':_0x21dc94(0x1f5),'unauthorized':_0x21dc94(0x1db),'sessionOccupied':_0x21dc94(0x1e9),'networkError':_0x21dc94(0x1cf),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x21dc94(0x1eb),'clickToConfigure':_0x21dc94(0x1fa)},'mcpConfig':{'title':_0x21dc94(0x1ea),'description':_0x21dc94(0x1fc),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x21dc94(0x1e5),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':_0x21dc94(0x1f3),'connectionInfo':_0x21dc94(0x1f2),'mcpClientConfig':_0x21dc94(0x1f2),'configInstructions':_0x21dc94(0x1e0),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x21dc94(0x1e7),'configStep2':_0x21dc94(0x1d5),'configStep3':_0x21dc94(0x1e3),'sessionId':_0x21dc94(0x1ec),'sessionIdDescription':_0x21dc94(0x1d3),'authorizationDescription':_0x21dc94(0x1e4),'configParameters':_0x21dc94(0x1e6),'maxRetries':_0x21dc94(0x1fb),'save':_0x21dc94(0x1fe),'saving':_0x21dc94(0x1da),'note1':_0x21dc94(0x1e1),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x21dc94(0x1df),'configError':_0x21dc94(0x1cd),'apiApplyInfo':{'title':_0x21dc94(0x1ef),'description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':_0x21dc94(0x1d9),'getStarted':_0x21dc94(0x1dc)},'validation':{'apiKeyRequired':_0x21dc94(0x1ee),'apiKeyTooShort':_0x21dc94(0x1f6),'invalidConfig':_0x21dc94(0x1f7),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x21dc94(0x1f8),'connected':_0x21dc94(0x1f1),'failed':_0x21dc94(0x1f0),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x21dc94(0x1e8),'sessionOccupied':_0x21dc94(0x1fd),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x21dc94(0x1dd)}}},n=e;export{n as default};
|
package/lib/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x3f7a88=_0x4d5d;function _0x410b(){const _0x49b1c5=['API\x20Key','Disconnected','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Configuration\x20saved\x20successfully','MCP\x20Retrying...','Univer\x20AI\x20Console','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','API\x20key\x20is\x20required','Saving...','124890upWKRx','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP:\x20Session\x20ID\x20Occupied','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','293781oQrOMY','1327350qokdVR','Copy\x20the\x20JSON\x20configuration\x20below','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','2MKMqnb','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.','Enable\x20Authentication','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','1114332XJaWAo','234OuEPhj','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Retrying...','Get\x20your\x20API\x20key\x20in\x20seconds','92184gqPjfO','Configuration\x20Parameters:','MCP\x20Disconnected','Connection\x20Failed','Session\x20ID','Connected','MCP:\x20Unauthorized','554337AKEoCE','Enable\x20authentication\x20for\x20secure\x20connections','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Client\x20Configuration','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Connecting...','Max\x20Retries','MCP\x20Connected','3718424rLQdqf','Connecting...','217vOtdGM','MCP:\x20Network\x20Error','MCP\x20Connection\x20Failed','Click\x20to\x20configure\x20MCP'];_0x410b=function(){return _0x49b1c5;};return _0x410b();}function _0x4d5d(_0x1eb909,_0xf8823d){const _0x410bbb=_0x410b();return _0x4d5d=function(_0x4d5dd0,_0x519049){_0x4d5dd0=_0x4d5dd0-0x162;let _0x2ac901=_0x410bbb[_0x4d5dd0];return _0x2ac901;},_0x4d5d(_0x1eb909,_0xf8823d);}(function(_0x3bf14f,_0x439756){const _0x4dc3a5=_0x4d5d,_0x223cd1=_0x3bf14f();while(!![]){try{const _0x14edb9=parseInt(_0x4dc3a5(0x16f))/0x1+parseInt(_0x4dc3a5(0x190))/0x2*(parseInt(_0x4dc3a5(0x18c))/0x3)+-parseInt(_0x4dc3a5(0x163))/0x4+parseInt(_0x4dc3a5(0x18d))/0x5+-parseInt(_0x4dc3a5(0x168))/0x6*(parseInt(_0x4dc3a5(0x17a))/0x7)+parseInt(_0x4dc3a5(0x178))/0x8+parseInt(_0x4dc3a5(0x164))/0x9*(-parseInt(_0x4dc3a5(0x187))/0xa);if(_0x14edb9===_0x439756)break;else _0x223cd1['push'](_0x223cd1['shift']());}catch(_0x453a20){_0x223cd1['push'](_0x223cd1['shift']());}}}(_0x410b,0x49f6c));const e={'mcpStatus':{'disconnected':_0x3f7a88(0x16a),'connecting':_0x3f7a88(0x175),'connected':_0x3f7a88(0x177),'failed':_0x3f7a88(0x17c),'retrying':_0x3f7a88(0x182),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x3f7a88(0x16e),'sessionOccupied':_0x3f7a88(0x18a),'networkError':_0x3f7a88(0x17b),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x3f7a88(0x17d)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x3f7a88(0x171),'apiKey':_0x3f7a88(0x17e),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x3f7a88(0x184),'enableAuth':_0x3f7a88(0x193),'enableAuthHint':_0x3f7a88(0x170),'connectionInfo':_0x3f7a88(0x172),'mcpClientConfig':_0x3f7a88(0x172),'configInstructions':_0x3f7a88(0x189),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x3f7a88(0x18e),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x3f7a88(0x18f),'sessionId':_0x3f7a88(0x16c),'sessionIdDescription':_0x3f7a88(0x192),'authorizationDescription':_0x3f7a88(0x174),'configParameters':_0x3f7a88(0x169),'maxRetries':_0x3f7a88(0x176),'save':'Save\x20Configuration','saving':_0x3f7a88(0x186),'note1':_0x3f7a88(0x18b),'note2':_0x3f7a88(0x180),'configSaved':_0x3f7a88(0x181),'configError':_0x3f7a88(0x191),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x3f7a88(0x165),'univerAiLabel':_0x3f7a88(0x183),'getStarted':_0x3f7a88(0x167)},'validation':{'apiKeyRequired':_0x3f7a88(0x185),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x3f7a88(0x173)},'connectionStatus':{'disconnected':_0x3f7a88(0x17f),'connecting':_0x3f7a88(0x179),'connected':_0x3f7a88(0x16d),'failed':_0x3f7a88(0x16b),'retrying':_0x3f7a88(0x166)},'connectionError':{'unauthorized':_0x3f7a88(0x188),'sessionOccupied':_0x3f7a88(0x162),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;export{n as default};
|
package/lib/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x2365(_0x247078,_0xad2bfb){const _0x50c166=_0x50c1();return _0x2365=function(_0x23653b,_0x2ddc9d){_0x23653b=_0x23653b-0x1d3;let _0x1a9c15=_0x50c166[_0x23653b];return _0x1a9c15;},_0x2365(_0x247078,_0xad2bfb);}const _0x12541e=_0x2365;(function(_0x90cd5c,_0x37ebc1){const _0x214026=_0x2365,_0x52bcbb=_0x90cd5c();while(!![]){try{const _0x1d5598=parseInt(_0x214026(0x1fa))/0x1*(-parseInt(_0x214026(0x207))/0x2)+parseInt(_0x214026(0x1d4))/0x3*(-parseInt(_0x214026(0x1d6))/0x4)+parseInt(_0x214026(0x1db))/0x5+-parseInt(_0x214026(0x1dd))/0x6+-parseInt(_0x214026(0x1f7))/0x7*(parseInt(_0x214026(0x1e6))/0x8)+-parseInt(_0x214026(0x1f3))/0x9+parseInt(_0x214026(0x1e7))/0xa;if(_0x1d5598===_0x37ebc1)break;else _0x52bcbb['push'](_0x52bcbb['shift']());}catch(_0x1bec2c){_0x52bcbb['push'](_0x52bcbb['shift']());}}}(_0x50c1,0x2694e));const e={'mcpStatus':{'disconnected':_0x12541e(0x1de),'connecting':_0x12541e(0x1dc),'connected':_0x12541e(0x1f5),'failed':_0x12541e(0x1fe),'retrying':_0x12541e(0x1fd),'unknown':_0x12541e(0x1df),'unauthorized':_0x12541e(0x1fc),'sessionOccupied':_0x12541e(0x1f9),'networkError':_0x12541e(0x1f6),'maxRetriesExceeded':_0x12541e(0x200),'clickToConnect':_0x12541e(0x1ee),'clickToConfigure':_0x12541e(0x1ef)},'mcpConfig':{'title':'MCP\x20配置','description':_0x12541e(0x1e3),'apiKey':_0x12541e(0x1d5),'apiKeyPlaceholder':_0x12541e(0x1e5),'apiKeyHint':_0x12541e(0x1f2),'enableAuth':_0x12541e(0x204),'enableAuthHint':_0x12541e(0x1f4),'connectionInfo':_0x12541e(0x201),'mcpClientConfig':'MCP\x20客户端配置','configInstructions':_0x12541e(0x1ec),'configStepTitle':_0x12541e(0x1e8),'configStep1':'复制以下\x20JSON\x20配置','configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x12541e(0x1f0),'sessionId':_0x12541e(0x1e0),'sessionIdDescription':_0x12541e(0x1d3),'authorizationDescription':_0x12541e(0x1d7),'configParameters':_0x12541e(0x1f1),'maxRetries':_0x12541e(0x1ed),'save':'保存配置','saving':_0x12541e(0x1e2),'note1':_0x12541e(0x1e4),'note2':_0x12541e(0x1fb),'configSaved':_0x12541e(0x205),'configError':_0x12541e(0x206),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x12541e(0x1d9),'univerAiLabel':_0x12541e(0x1ff),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0x12541e(0x1e1),'apiKeyTooShort':_0x12541e(0x1ea),'invalidConfig':_0x12541e(0x1f8),'invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':_0x12541e(0x1da),'connecting':_0x12541e(0x203),'connected':'已连接','failed':_0x12541e(0x1d8),'retrying':'重连中...'},'connectionError':{'unauthorized':_0x12541e(0x1e9),'sessionOccupied':_0x12541e(0x1eb),'networkError':_0x12541e(0x202),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};function _0x50c1(){const _0x3b0a54=['连接失败','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','未连接','708480CQsqCw','MCP\x20连接中...','73266VabjdB','MCP\x20已断开','MCP\x20状态未知','会话ID','API\x20密钥不能为空','保存中...','配置\x20MCP\x20使用\x20AI\x20操作电子表格','配置更改将立即生效','请输入您的\x20API\x20密钥','838088nzonKf','4290900dtOQuX','配置步骤:','权限验证失败,请检查您的\x20API\x20密钥','API\x20密钥长度至少需要\x2010\x20位','会话\x20ID\x20已被占用,请稍后再试','将以下配置添加到您的\x20MCP\x20客户端设置中:','最大重试次数','点击连接\x20MCP','点击配置\x20MCP','重启您的\x20MCP\x20客户端以使配置生效','配置参数:','您的\x20API\x20密钥将在此浏览器中本地存储','1567710RUvSnp','启用身份验证以获得安全连接','MCP\x20已连接','MCP:\x20网络错误','7AVLBcf','配置无效','MCP:\x20会话\x20ID\x20已被占用','1scsEmQ','您的\x20API\x20密钥安全存储在本地存储中','MCP:\x20未授权','MCP\x20重连中...','MCP\x20连接失败','Univer\x20AI\x20控制台','MCP:\x20超出最大重试次数','MCP\x20客户端配置','网络连接错误,请检查您的网络连接','连接中...','启用身份验证','配置保存成功','配置保存失败','219138NhdpmG','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','3xWFBSa','API\x20密钥','48100nHmUyE','带有\x20Bearer\x20前缀的\x20API\x20密钥。'];_0x50c1=function(){return _0x3b0a54;};return _0x50c1();}export{e as default};
|
package/lib/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x19cc(){const _0x4083e5=['Connecting...','Enter\x20your\x20API\x20key','MCP\x20Disconnected','128cwAmPy','Enable\x20authentication\x20for\x20secure\x20connections','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','API\x20Key','7582jtgwKE','76734OWZZEw','API\x20key\x20with\x20Bearer\x20prefix.','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Failed\x20to\x20save\x20configuration','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Connected','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','2650696QsZelq','MCP:\x20Unauthorized','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Saving...','Connected','Max\x20Retries','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Click\x20to\x20connect\x20MCP','Session\x20ID','122274zVlWCF','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','1887095oOeygo','Connection\x20Failed','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Configuration\x20saved\x20successfully','Univer\x20AI\x20Console','Enable\x20Authentication','MCP\x20Retrying...','MCP\x20Unknown\x20Status','Configuration\x20Parameters:','MCP\x20Configuration','8054010GtwcwQ','Click\x20to\x20configure\x20MCP','MCP\x20Connecting...','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Client\x20Configuration','14pXZUhi','API\x20key\x20is\x20required','MCP:\x20Network\x20Error','55572ucPWOD','MCP\x20Connection\x20Failed'];_0x19cc=function(){return _0x4083e5;};return _0x19cc();}const _0x180207=_0x1df3;(function(_0x407296,_0x12d8bb){const _0x21b7a8=_0x1df3,_0x558b98=_0x407296();while(!![]){try{const _0x3afaa9=-parseInt(_0x21b7a8(0x95))/0x1*(-parseInt(_0x21b7a8(0x91))/0x2)+-parseInt(_0x21b7a8(0x96))/0x3+parseInt(_0x21b7a8(0x8c))/0x4+parseInt(_0x21b7a8(0x7a))/0x5+parseInt(_0x21b7a8(0xa8))/0x6*(-parseInt(_0x21b7a8(0x89))/0x7)+parseInt(_0x21b7a8(0x9f))/0x8+-parseInt(_0x21b7a8(0x84))/0x9;if(_0x3afaa9===_0x12d8bb)break;else _0x558b98['push'](_0x558b98['shift']());}catch(_0x22e4cc){_0x558b98['push'](_0x558b98['shift']());}}}(_0x19cc,0x3c38f));function _0x1df3(_0x52312c,_0x5e57eb){const _0x19cc0c=_0x19cc();return _0x1df3=function(_0x1df3ac,_0x7e5790){_0x1df3ac=_0x1df3ac-0x7a;let _0x2ee0df=_0x19cc0c[_0x1df3ac];return _0x2ee0df;},_0x1df3(_0x52312c,_0x5e57eb);}const e={'mcpStatus':{'disconnected':_0x180207(0x90),'connecting':_0x180207(0x86),'connected':_0x180207(0x9b),'failed':_0x180207(0x8d),'retrying':_0x180207(0x80),'unknown':_0x180207(0x81),'unauthorized':_0x180207(0xa0),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x180207(0x8b),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x180207(0xa6),'clickToConfigure':_0x180207(0x85)},'mcpConfig':{'title':_0x180207(0x83),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x180207(0x94),'apiKeyPlaceholder':_0x180207(0x8f),'apiKeyHint':_0x180207(0xa9),'enableAuth':_0x180207(0x7f),'enableAuthHint':_0x180207(0x92),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x180207(0x88),'configInstructions':_0x180207(0xa1),'configStepTitle':'Configuration\x20Steps:','configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x180207(0xa5),'configStep3':_0x180207(0x9a),'sessionId':_0x180207(0xa7),'sessionIdDescription':_0x180207(0x7c),'authorizationDescription':_0x180207(0x97),'configParameters':_0x180207(0x82),'maxRetries':_0x180207(0xa4),'save':'Save\x20Configuration','saving':_0x180207(0xa2),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x180207(0x7d),'configError':_0x180207(0x99),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x180207(0x9c),'univerAiLabel':_0x180207(0x7e),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x180207(0x8a),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x180207(0x9d)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x180207(0x8e),'connected':_0x180207(0xa3),'failed':_0x180207(0x7b),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x180207(0x9e),'sessionOccupied':_0x180207(0x87),'networkError':_0x180207(0x93),'maxRetriesExceeded':_0x180207(0x98)}}},n=e;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
|