Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

i18n(pt-br): cover upstream activity labels and coded setup refusals

KesleyDEV184a37b124a7
diff --git a/server/activity.test.ts b/server/activity.test.ts
index 0d4a9453d6..ddbc5f722f 100644
--- a/server/activity.test.ts
+++ b/server/activity.test.ts
@@ -86,6 +86,8 @@ describe("describeTool", () => {
it.each([
["decide", "Decide", "activity.tool.team.decide"],
["extract", "Extract", "activity.tool.team.extract"],
+ ["message_person", "Message person", "activity.tool.team.messagePerson"],
+ ["report_bug", "Report bug", "activity.tool.team.reportBug"],
])("names %s with its own activity key and unchanged English", (tool, label, labelKey) => {
expect(describedTool(`mcp__agents__${tool}`)).toEqual({ app: "Team", appKey: "activity.app.team", label, labelKey });
expect(describeTool(`mcp__agents__${tool}`)).toEqual({ app: "Team", label });
diff --git a/server/activity.ts b/server/activity.ts
index dda94b36a6..60d9b70720 100644
--- a/server/activity.ts
+++ b/server/activity.ts
@@ -102,6 +102,7 @@ const TEAM_ACTION_KEYS: Record<string, string> = {
manage_trigger: "activity.tool.team.manageTrigger",
memory_log: "activity.tool.team.memoryLog",
memory_update: "activity.tool.team.memoryUpdate",
+ message_person: "activity.tool.team.messagePerson",
post_to_room: "activity.tool.team.postToRoom",
propose_bot_deletion: "activity.tool.team.proposeBotDeletion",
propose_model: "activity.tool.team.proposeModel",
@@ -110,6 +111,7 @@ const TEAM_ACTION_KEYS: Record<string, string> = {
propose_team_setup: "activity.tool.team.proposeTeamSetup",
publish_page: "activity.tool.team.publishPage",
raise_escalation: "activity.tool.team.raiseEscalation",
+ report_bug: "activity.tool.team.reportBug",
request_credential: "activity.tool.team.requestCredential",
request_sign_in: "activity.tool.team.requestSignIn",
retry_thread: "activity.tool.team.retryThread",
diff --git a/server/cloud-team-setup-request.e2e.test.ts b/server/cloud-team-setup-request.e2e.test.ts
index 9f9639c663..3423bccac9 100644
--- a/server/cloud-team-setup-request.e2e.test.ts
+++ b/server/cloud-team-setup-request.e2e.test.ts
@@ -87,7 +87,7 @@ it("refuses another person's press while a member's request waits, and the owner
const main = bot.mainThreadId;
expect((await team.as(ada, "POST", `/api/bots/${bot.id}/setup-request`, { threadId: main })).status).toBe(200);
expect(await team.as(owner, "POST", `/api/bots/${bot.id}/setup-request`, { threadId: main })).toEqual({
- status: 409, body: { error: "Someone else is setting this bot up." },
+ status: 409, body: { error: "Someone else is setting this bot up.", errorKey: "serverError.setup.someoneElse" },
});
expect((await team.as(owner, "DELETE", `/api/bots/${bot.id}/setup-request`, { threadId: main })).status).toBe(200);
expect(await waiting(owner, bot.id, main)).toBeUndefined();
diff --git a/server/index.test.ts b/server/index.test.ts
index f0eafd0f19..1bc1ea1f1f 100644
--- a/server/index.test.ts
+++ b/server/index.test.ts
@@ -9220,7 +9220,7 @@ describe("harness HTTP API", () => {
expect(bot.messages[0].setupOffer).toBeUndefined();
expect((await api("PATCH", `/api/bots/${bot.id}`, { modelSelection: { instanceId: "claude", model: "claude-sonnet-5" } })).status).toBe(200);
expect(await api("POST", `/api/bots/${bot.id}/setup-request`, { threadId: bot.threadId })).toEqual({
- status: 409, body: { error: "This bot already has instructions. To change its job, type /setup and what you'd like it to do." },
+ status: 409, body: { error: "This bot already has instructions. To change its job, type /setup and what you'd like it to do.", errorKey: "serverError.setup.hasInstructions" },
});
} finally {
await api("DELETE", `/api/bots/${bot.id}`);
@@ -9233,7 +9233,7 @@ describe("harness HTTP API", () => {
// A plain chat model with its tools off cannot propose a profile.
expect((await api("PATCH", `/api/bots/${bot.id}`, { modelSelection: { instanceId: "plainApi", model: "fixture-plain-model" } })).status).toBe(200);
expect(await api("POST", `/api/bots/${bot.id}/setup-request`, { threadId: bot.threadId })).toEqual({
- status: 409, body: { error: "This bot's AI can't set it up by itself. Tell the bot what you'd like it to do instead." },
+ status: 409, body: { error: "This bot's AI can't set it up by itself. Tell the bot what you'd like it to do instead.", errorKey: "serverError.setup.noTools" },
});
expect(await messages(bot.threadId)).toHaveLength(1);
} finally {
diff --git a/src/lib/activity.test.ts b/src/lib/activity.test.ts
index 757724a99b..dbe99b9aa6 100644
--- a/src/lib/activity.test.ts
+++ b/src/lib/activity.test.ts
@@ -65,10 +65,12 @@ describe("activityLabel", () => {
afterEach(() => { setLocale("en"); });
it.each([
- ["decide", "Decide", "Decidir"],
- ["extract", "Extract", "Extrair"],
- ])("words %s in pt-BR and keeps its English label unchanged", (tool, label, portuguese) => {
- const entry = row({ tool: `mcp__agents__${tool}`, app: "Team", label, labelKey: `activity.tool.team.${tool}` });
+ ["decide", "Decide", "Decidir", "activity.tool.team.decide"],
+ ["extract", "Extract", "Extrair", "activity.tool.team.extract"],
+ ["message_person", "Message person", "Enviar mensagem a uma pessoa", "activity.tool.team.messagePerson"],
+ ["report_bug", "Report bug", "Relatar um problema", "activity.tool.team.reportBug"],
+ ])("words %s in pt-BR and keeps its English label unchanged", (tool, label, portuguese, labelKey) => {
+ const entry = row({ tool: `mcp__agents__${tool}`, app: "Team", label, labelKey });
expect(activityLabel(entry)).toBe(label);
setLocale("pt-br");
expect(activityLabel(entry)).toBe(portuguese);
diff --git a/src/locales/en.json b/src/locales/en.json
index f7229847f1..22faf75970 100644
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@ -8009,5 +8009,7 @@
"native.update.checkFailed": "Couldn't check for updates. {error}",
"native.update.installing": "Installing the update. Enter your password if asked.",
"native.update.installFailedPlain": "The update could not be installed.",
- "mcp.check.unauthorized": "unauthorized"
+ "mcp.check.unauthorized": "unauthorized",
+ "activity.tool.team.messagePerson": "Message person",
+ "activity.tool.team.reportBug": "Report bug"
}
diff --git a/src/locales/pt-br.json b/src/locales/pt-br.json
index 7956e44748..4b109f56c4 100644
--- a/src/locales/pt-br.json
+++ b/src/locales/pt-br.json
@@ -8009,5 +8009,7 @@
"native.update.checkFailed": "Não foi possível buscar atualizações. {error}",
"native.update.installing": "Instalando a atualização. Digite a senha se ela for solicitada.",
"native.update.installFailedPlain": "Não foi possível instalar a atualização.",
- "mcp.check.unauthorized": "acesso não autorizado"
+ "mcp.check.unauthorized": "acesso não autorizado",
+ "activity.tool.team.messagePerson": "Enviar mensagem a uma pessoa",
+ "activity.tool.team.reportBug": "Relatar um problema"
}
diff --git a/src/locales/source-hashes.json b/src/locales/source-hashes.json
index 03f72e370c..7bb85bb91c 100644
--- a/src/locales/source-hashes.json
+++ b/src/locales/source-hashes.json
@@ -27130,7 +27130,9 @@
"native.update.checkFailed": "8e5453aca31c5dae9f51629b6beae4008a3edf665764414c6f6cd6a869750882",
"native.update.installing": "d4c2786de1c7bbed0fa0f010fb037527cece9f42ebc3861f985dc1c498703f3c",
"native.update.installFailedPlain": "3c9928b6a20133c3fcff626c5a99e0db83ddced0685a9c30f169be94b1b80e74",
- "mcp.check.unauthorized": "e9d83f01c9aff03af6380e341aad90a5547d378ef54582383c6c9a35c53181af"
+ "mcp.check.unauthorized": "e9d83f01c9aff03af6380e341aad90a5547d378ef54582383c6c9a35c53181af",
+ "activity.tool.team.messagePerson": "4595b0d3ba139903811a08a150c47714c85ae016981b3c97e672ca18e4cc8915",
+ "activity.tool.team.reportBug": "7769e4f1f4a97877d278fc62381aa05b12a5ef6b6e1c2d8a3fc73893f4921ddf"
},
"zh": {
"highlevel.unavailable": "87b8ac7f7610e6dd69f520bc59058fd92f307b9f4bcf804075f25d08bcaa7533",