@univerjs-pro/mcp-ui 0.10.9 → 0.10.10-experimental.20251010-3f807c5
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 +9 -9
package/lib/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x16d3ea=_0x146c;function _0x146c(_0x439659,_0x558863){const _0x2ff3b2=_0x2ff3();return _0x146c=function(_0x146ce5,_0x4d0d92){_0x146ce5=_0x146ce5-0x17b;let _0x8a89e1=_0x2ff3b2[_0x146ce5];return _0x8a89e1;},_0x146c(_0x439659,_0x558863);}(function(_0x1c0b70,_0xbd665f){const _0x59dce8=_0x146c,_0x5e5a7d=_0x1c0b70();while(!![]){try{const _0x146cb8=-parseInt(_0x59dce8(0x17c))/0x1*(-parseInt(_0x59dce8(0x1a6))/0x2)+parseInt(_0x59dce8(0x1a7))/0x3*(parseInt(_0x59dce8(0x186))/0x4)+-parseInt(_0x59dce8(0x180))/0x5*(parseInt(_0x59dce8(0x18d))/0x6)+-parseInt(_0x59dce8(0x17e))/0x7*(parseInt(_0x59dce8(0x18e))/0x8)+parseInt(_0x59dce8(0x1a0))/0x9*(parseInt(_0x59dce8(0x18a))/0xa)+parseInt(_0x59dce8(0x184))/0xb*(-parseInt(_0x59dce8(0x193))/0xc)+parseInt(_0x59dce8(0x19b))/0xd;if(_0x146cb8===_0xbd665f)break;else _0x5e5a7d['push'](_0x5e5a7d['shift']());}catch(_0x3056cd){_0x5e5a7d['push'](_0x5e5a7d['shift']());}}}(_0x2ff3,0x6862b));function _0x2ff3(){const _0x518664=['3717STxJNa','Configuration\x20saved\x20successfully','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Disconnected','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Configuration\x20Parameters:','1814TnBMAz','1952346AdStnm','Saving...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP:\x20Unauthorized','941CYtwvE','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','7WwoOyl','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','5cCOxvG','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Disconnected','Session\x20ID','55KNKlco','Connection\x20Failed','4kwApeo','API\x20key\x20with\x20Bearer\x20prefix.','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Enable\x20Authentication','3560BwVMuB','MCP:\x20Max\x20Retries\x20Exceeded','Configuration\x20Steps:','907884ZqBIgA','2897792UYTfbd','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP:\x20Network\x20Error','Retrying...','1968660GUFRTJ','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP:\x20Session\x20ID\x20Occupied','MCP\x20Connecting...','MCP\x20Client\x20Configuration','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Failed\x20to\x20save\x20configuration','1431027LjGpkA','API\x20key\x20is\x20required','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','What\x20is\x20API\x20Key?','MCP\x20Connection\x20Failed'];_0x2ff3=function(){return _0x518664;};return _0x2ff3();}const e={'mcpStatus':{'disconnected':_0x16d3ea(0x182),'connecting':_0x16d3ea(0x197),'connected':'MCP\x20Connected','failed':_0x16d3ea(0x19f),'retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x16d3ea(0x17b),'sessionOccupied':_0x16d3ea(0x196),'networkError':_0x16d3ea(0x191),'maxRetriesExceeded':_0x16d3ea(0x18b),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':'MCP\x20Configuration','description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':'API\x20Key','apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x16d3ea(0x189),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x16d3ea(0x198),'mcpClientConfig':_0x16d3ea(0x198),'configInstructions':_0x16d3ea(0x17d),'configStepTitle':_0x16d3ea(0x18c),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x16d3ea(0x17f),'configStep3':_0x16d3ea(0x1a4),'sessionId':_0x16d3ea(0x183),'sessionIdDescription':_0x16d3ea(0x18f),'authorizationDescription':_0x16d3ea(0x187),'configParameters':_0x16d3ea(0x1a5),'maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':_0x16d3ea(0x1a8),'note1':_0x16d3ea(0x199),'note2':_0x16d3ea(0x194),'configSaved':_0x16d3ea(0x1a1),'configError':_0x16d3ea(0x19a),'apiApplyInfo':{'title':_0x16d3ea(0x19e),'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':'Univer\x20AI\x20Console','getStarted':_0x16d3ea(0x181)},'validation':{'apiKeyRequired':_0x16d3ea(0x19c),'apiKeyTooShort':_0x16d3ea(0x1a2),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x16d3ea(0x190)},'connectionStatus':{'disconnected':_0x16d3ea(0x1a3),'connecting':'Connecting...','connected':'Connected','failed':_0x16d3ea(0x185),'retrying':_0x16d3ea(0x192)},'connectionError':{'unauthorized':_0x16d3ea(0x1a9),'sessionOccupied':_0x16d3ea(0x195),'networkError':_0x16d3ea(0x188),'maxRetriesExceeded':_0x16d3ea(0x19d)}}},n=e;export{n as default};
|
package/lib/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x5de3cd=_0x2546;(function(_0x53907c,_0x6f130f){const _0x2cb038=_0x2546,_0x333dd0=_0x53907c();while(!![]){try{const _0x1687e0=-parseInt(_0x2cb038(0x198))/0x1+-parseInt(_0x2cb038(0x196))/0x2*(parseInt(_0x2cb038(0x1a3))/0x3)+parseInt(_0x2cb038(0x19d))/0x4+parseInt(_0x2cb038(0x1a4))/0x5*(-parseInt(_0x2cb038(0x19a))/0x6)+-parseInt(_0x2cb038(0x188))/0x7+parseInt(_0x2cb038(0x192))/0x8*(-parseInt(_0x2cb038(0x195))/0x9)+-parseInt(_0x2cb038(0x19b))/0xa*(-parseInt(_0x2cb038(0x178))/0xb);if(_0x1687e0===_0x6f130f)break;else _0x333dd0['push'](_0x333dd0['shift']());}catch(_0x284b6d){_0x333dd0['push'](_0x333dd0['shift']());}}}(_0x39b4,0xbe369));const e={'mcpStatus':{'disconnected':_0x5de3cd(0x197),'connecting':_0x5de3cd(0x194),'connected':_0x5de3cd(0x1ac),'failed':_0x5de3cd(0x19e),'retrying':_0x5de3cd(0x177),'unknown':_0x5de3cd(0x18a),'unauthorized':_0x5de3cd(0x18b),'sessionOccupied':_0x5de3cd(0x18e),'networkError':_0x5de3cd(0x179),'maxRetriesExceeded':_0x5de3cd(0x17f),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x5de3cd(0x18f)},'mcpConfig':{'title':_0x5de3cd(0x1ae),'description':_0x5de3cd(0x1a0),'apiKey':_0x5de3cd(0x17c),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x5de3cd(0x193),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x5de3cd(0x190),'connectionInfo':_0x5de3cd(0x186),'mcpClientConfig':_0x5de3cd(0x186),'configInstructions':_0x5de3cd(0x17e),'configStepTitle':_0x5de3cd(0x17a),'configStep1':_0x5de3cd(0x187),'configStep2':_0x5de3cd(0x191),'configStep3':_0x5de3cd(0x1ad),'sessionId':_0x5de3cd(0x19f),'sessionIdDescription':_0x5de3cd(0x1a5),'authorizationDescription':_0x5de3cd(0x199),'configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':_0x5de3cd(0x183),'saving':_0x5de3cd(0x180),'note1':_0x5de3cd(0x1ab),'note2':_0x5de3cd(0x181),'configSaved':_0x5de3cd(0x18d),'configError':_0x5de3cd(0x189),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x5de3cd(0x182),'univerAiLabel':_0x5de3cd(0x184),'getStarted':_0x5de3cd(0x18c)},'validation':{'apiKeyRequired':_0x5de3cd(0x185),'apiKeyTooShort':_0x5de3cd(0x1a7),'invalidConfig':_0x5de3cd(0x17b),'invalidApiKey':_0x5de3cd(0x1a9)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x5de3cd(0x1a6),'connected':_0x5de3cd(0x19c),'failed':_0x5de3cd(0x17d),'retrying':_0x5de3cd(0x1a2)},'connectionError':{'unauthorized':_0x5de3cd(0x1a1),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x5de3cd(0x1aa),'maxRetriesExceeded':_0x5de3cd(0x1a8)}}},n=e;function _0x2546(_0x4d9c4f,_0x510bec){const _0x39b442=_0x39b4();return _0x2546=function(_0x2546ae,_0x385936){_0x2546ae=_0x2546ae-0x177;let _0x27b4e9=_0x39b442[_0x2546ae];return _0x27b4e9;},_0x2546(_0x4d9c4f,_0x510bec);}function _0x39b4(){const _0x3b1b8b=['42UeAyAZ','10820gCixOz','Connected','5636028CpLirV','MCP\x20Connection\x20Failed','Session\x20ID','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Retrying...','63969xvtSEW','1095455qZYmxk','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Connecting...','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Connected','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Configuration','MCP\x20Retrying...','45551oFjyPn','MCP:\x20Network\x20Error','Configuration\x20Steps:','Invalid\x20configuration','API\x20Key','Connection\x20Failed','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP:\x20Max\x20Retries\x20Exceeded','Saving...','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Save\x20Configuration','Univer\x20AI\x20Console','API\x20key\x20is\x20required','MCP\x20Client\x20Configuration','Copy\x20the\x20JSON\x20configuration\x20below','10705275nvOMIO','Failed\x20to\x20save\x20configuration','MCP\x20Unknown\x20Status','MCP:\x20Unauthorized','Get\x20your\x20API\x20key\x20in\x20seconds','Configuration\x20saved\x20successfully','MCP:\x20Session\x20ID\x20Occupied','Click\x20to\x20configure\x20MCP','Enable\x20authentication\x20for\x20secure\x20connections','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','5112Vcmbbd','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP\x20Connecting...','7038dXuhuO','40LqptgF','MCP\x20Disconnected','1121336qlUaos','API\x20key\x20with\x20Bearer\x20prefix.'];_0x39b4=function(){return _0x3b1b8b;};return _0x39b4();}export{n as default};
|
package/lib/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x29ab7a=_0x3349;function _0x3349(_0x2eaa77,_0x5789fe){const _0x1e428b=_0x1e42();return _0x3349=function(_0x3349bd,_0x1b77d0){_0x3349bd=_0x3349bd-0x170;let _0x2471d1=_0x1e428b[_0x3349bd];return _0x2471d1;},_0x3349(_0x2eaa77,_0x5789fe);}(function(_0xdffaee,_0x39ea44){const _0x22908e=_0x3349,_0x56ab02=_0xdffaee();while(!![]){try{const _0x4dc0cd=parseInt(_0x22908e(0x175))/0x1*(parseInt(_0x22908e(0x1a1))/0x2)+-parseInt(_0x22908e(0x184))/0x3*(parseInt(_0x22908e(0x18e))/0x4)+parseInt(_0x22908e(0x19f))/0x5+-parseInt(_0x22908e(0x192))/0x6*(parseInt(_0x22908e(0x178))/0x7)+-parseInt(_0x22908e(0x19c))/0x8*(-parseInt(_0x22908e(0x19d))/0x9)+-parseInt(_0x22908e(0x17f))/0xa+parseInt(_0x22908e(0x198))/0xb;if(_0x4dc0cd===_0x39ea44)break;else _0x56ab02['push'](_0x56ab02['shift']());}catch(_0x49f125){_0x56ab02['push'](_0x56ab02['shift']());}}}(_0x1e42,0xa4a8b));const e={'mcpStatus':{'disconnected':_0x29ab7a(0x18c),'connecting':_0x29ab7a(0x180),'connected':_0x29ab7a(0x183),'failed':_0x29ab7a(0x194),'retrying':'MCP\x20重连中...','unknown':'MCP\x20状态未知','unauthorized':_0x29ab7a(0x17b),'sessionOccupied':_0x29ab7a(0x17a),'networkError':'MCP:\x20网络错误','maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x29ab7a(0x185)},'mcpConfig':{'title':_0x29ab7a(0x173),'description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':_0x29ab7a(0x18b),'apiKeyPlaceholder':_0x29ab7a(0x199),'apiKeyHint':_0x29ab7a(0x177),'enableAuth':_0x29ab7a(0x172),'enableAuthHint':_0x29ab7a(0x19b),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0x29ab7a(0x195),'configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x29ab7a(0x188),'configStep1':_0x29ab7a(0x179),'configStep2':_0x29ab7a(0x182),'configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':_0x29ab7a(0x1a0),'sessionIdDescription':_0x29ab7a(0x19a),'authorizationDescription':_0x29ab7a(0x189),'configParameters':'配置参数:','maxRetries':'最大重试次数','save':_0x29ab7a(0x181),'saving':_0x29ab7a(0x18d),'note1':_0x29ab7a(0x190),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0x29ab7a(0x18f),'configError':_0x29ab7a(0x18a),'apiApplyInfo':{'title':_0x29ab7a(0x17d),'description':_0x29ab7a(0x19e),'univerAiLabel':_0x29ab7a(0x176),'getStarted':_0x29ab7a(0x171)},'validation':{'apiKeyRequired':_0x29ab7a(0x17c),'apiKeyTooShort':_0x29ab7a(0x186),'invalidConfig':'配置无效','invalidApiKey':_0x29ab7a(0x193)},'connectionStatus':{'disconnected':'未连接','connecting':_0x29ab7a(0x170),'connected':_0x29ab7a(0x174),'failed':_0x29ab7a(0x197),'retrying':_0x29ab7a(0x191)},'connectionError':{'unauthorized':_0x29ab7a(0x196),'sessionOccupied':_0x29ab7a(0x187),'networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':_0x29ab7a(0x17e)}}};function _0x1e42(){const _0x20b2fc=['会话\x20ID\x20已被占用,请稍后再试','配置步骤:','带有\x20Bearer\x20前缀的\x20API\x20密钥。','配置保存失败','API\x20密钥','MCP\x20已断开','保存中...','16yJFiax','配置保存成功','配置更改将立即生效','重连中...','1174644GHCcxn','API\x20密钥无效,请检查密钥是否正确','MCP\x20连接失败','MCP\x20客户端配置','权限验证失败,请检查您的\x20API\x20密钥','连接失败','11648417whsUwB','请输入您的\x20API\x20密钥','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','启用身份验证以获得安全连接','1912sIiwaJ','2655ypjcIN','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','6577470FKvcke','会话ID','496810CZHrIj','连接中...','几秒钟内获取您的\x20API\x20密钥','启用身份验证','MCP\x20配置','已连接','3TfRfGe','Univer\x20AI\x20控制台','您的\x20API\x20密钥将在此浏览器中本地存储','35YFVLVz','复制以下\x20JSON\x20配置','MCP:\x20会话\x20ID\x20已被占用','MCP:\x20未授权','API\x20密钥不能为空','什么是\x20API\x20密钥?','超出最大重试次数,请稍后再试','3841320UYzuas','MCP\x20连接中...','保存配置','将配置添加到您的\x20MCP\x20客户端设置文件中','MCP\x20已连接','864537IlFUYM','点击配置\x20MCP','API\x20密钥长度至少需要\x2010\x20位'];_0x1e42=function(){return _0x20b2fc;};return _0x1e42();}export{e as default};
|
package/lib/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x5cad(_0x832d8f,_0x1be96a){const _0x5bef85=_0x5bef();return _0x5cad=function(_0x5cad3e,_0x34b3f9){_0x5cad3e=_0x5cad3e-0x176;let _0x353408=_0x5bef85[_0x5cad3e];return _0x353408;},_0x5cad(_0x832d8f,_0x1be96a);}const _0x4dc154=_0x5cad;(function(_0x464de1,_0x41d1f6){const _0x41ffa1=_0x5cad,_0x3520e4=_0x464de1();while(!![]){try{const _0x195e79=parseInt(_0x41ffa1(0x1a1))/0x1*(-parseInt(_0x41ffa1(0x189))/0x2)+-parseInt(_0x41ffa1(0x1a5))/0x3+-parseInt(_0x41ffa1(0x182))/0x4+parseInt(_0x41ffa1(0x1a2))/0x5*(-parseInt(_0x41ffa1(0x17f))/0x6)+-parseInt(_0x41ffa1(0x199))/0x7+parseInt(_0x41ffa1(0x19d))/0x8+parseInt(_0x41ffa1(0x192))/0x9*(parseInt(_0x41ffa1(0x19e))/0xa);if(_0x195e79===_0x41d1f6)break;else _0x3520e4['push'](_0x3520e4['shift']());}catch(_0x59b3a6){_0x3520e4['push'](_0x3520e4['shift']());}}}(_0x5bef,0x74ad8));function _0x5bef(){const _0x2055ff=['Enable\x20authentication\x20for\x20secure\x20connections','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Connected','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','API\x20key\x20with\x20Bearer\x20prefix.','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','108468aFZasP','MCP\x20Unknown\x20Status','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Save\x20Configuration','MCP\x20Disconnected','Connecting...','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','4287948cDDwOi','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Configuration','MCP\x20Client\x20Configuration','5491792jBmtaH','1930BdTrls','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','541303lJMErN','120710jBCgje','MCP:\x20Unauthorized','Retrying...','2484624PqvKUz','Enable\x20Authentication','Configuration\x20Steps:','Get\x20your\x20API\x20key\x20in\x20seconds','Univer\x20AI\x20Console','MCP:\x20Network\x20Error','Enter\x20your\x20API\x20key','MCP\x20Retrying...','Copy\x20the\x20JSON\x20configuration\x20below','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Click\x20to\x20configure\x20MCP','12buCefO','MCP:\x20Session\x20ID\x20Occupied','Configuration\x20saved\x20successfully','2016956sWMDES','Configuration\x20Parameters:','Connected','API\x20key\x20is\x20required','Session\x20ID','Saving...','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','2SaCwtf','Disconnected','Click\x20to\x20connect\x20MCP'];_0x5bef=function(){return _0x2055ff;};return _0x5bef();}const e={'mcpStatus':{'disconnected':_0x4dc154(0x196),'connecting':'MCP\x20Connecting...','connected':_0x4dc154(0x18e),'failed':'MCP\x20Connection\x20Failed','retrying':_0x4dc154(0x17b),'unknown':_0x4dc154(0x193),'unauthorized':_0x4dc154(0x1a3),'sessionOccupied':_0x4dc154(0x180),'networkError':_0x4dc154(0x179),'maxRetriesExceeded':_0x4dc154(0x19a),'clickToConnect':_0x4dc154(0x18b),'clickToConfigure':_0x4dc154(0x17e)},'mcpConfig':{'title':_0x4dc154(0x19b),'description':_0x4dc154(0x194),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x4dc154(0x17a),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x4dc154(0x1a6),'enableAuthHint':_0x4dc154(0x18c),'connectionInfo':_0x4dc154(0x19c),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x4dc154(0x18f),'configStepTitle':_0x4dc154(0x176),'configStep1':_0x4dc154(0x17c),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x4dc154(0x18d),'sessionId':_0x4dc154(0x186),'sessionIdDescription':_0x4dc154(0x188),'authorizationDescription':_0x4dc154(0x190),'configParameters':_0x4dc154(0x183),'maxRetries':'Max\x20Retries','save':_0x4dc154(0x195),'saving':_0x4dc154(0x187),'note1':_0x4dc154(0x191),'note2':_0x4dc154(0x198),'configSaved':_0x4dc154(0x181),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x4dc154(0x1a0),'univerAiLabel':_0x4dc154(0x178),'getStarted':_0x4dc154(0x177)},'validation':{'apiKeyRequired':_0x4dc154(0x185),'apiKeyTooShort':_0x4dc154(0x17d),'invalidConfig':'Invalid\x20configuration','invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x4dc154(0x18a),'connecting':_0x4dc154(0x197),'connected':_0x4dc154(0x184),'failed':'Connection\x20Failed','retrying':_0x4dc154(0x1a4)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x4dc154(0x19f),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},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
|