Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/i18n/EN.ts
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ export const EN: TranslationSchema = {
argsHint: "[name]",
},
memory: {
description: "show / manage pinned memory (CARBON.md + ~/.carboncode/CARBON.md)",
description: "show / manage pinned memory (AGENTS.md/CARBON.md + ~/.carboncode/memory)",
argsHint: "[list|show <name>|forget <name>|clear <scope> confirm]",
},
skill: {
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/zh-CN.ts
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ export const zhCN: TranslationSchema = {
argsHint: "[name]",
},
memory: {
description: "显示 / 管理固定记忆(CARBON.md + ~/.carboncode/CARBON.md)",
description: "显示 / 管理固定记忆(AGENTS.md/CARBON.md + ~/.carboncode/memory)",
argsHint: "[list|show <name>|forget <name>|clear <scope> confirm]",
},
skill: {
Expand Down
2 changes: 1 addition & 1 deletion src/memory/user.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/** User-private memory pinned into the immutable prefix; distinct from committable CARBON.md. */
/** User-private memory pinned into the immutable prefix; distinct from committable AGENTS.md / CARBON.md. */

import { createHash } from "node:crypto";
import {
Expand Down
10 changes: 10 additions & 0 deletions tests/slash-help-i18n.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@ describe("slash help i18n coverage", () => {
expect(missing.map((c) => c.cmd)).toEqual([]);
});

it("keeps /memory help aligned with the current project and user memory files", () => {
expect(EN.slash.memory.description).toContain("AGENTS.md/CARBON.md");
expect(EN.slash.memory.description).toContain("~/.carboncode/memory");
expect(EN.slash.memory.description).not.toContain("~/.carboncode/CARBON.md");

expect(zhCN.slash.memory.description).toContain("AGENTS.md/CARBON.md");
expect(zhCN.slash.memory.description).toContain("~/.carboncode/memory");
expect(zhCN.slash.memory.description).not.toContain("~/.carboncode/CARBON.md");
});

it("localizes the zh-CN MCP registry fallback wording", () => {
expect(zhCN.ui.mcpListDescription).toContain("Smithery 第三方目录");
expect(zhCN.ui.mcpListDescription).toContain("本地备选");
Expand Down
Loading