From bf2247bfadeb7744dbbe4411632d741a9b14d909 Mon Sep 17 00:00:00 2001 From: w287346141 <287346141@qq.com> Date: Tue, 26 May 2026 22:26:21 +0800 Subject: [PATCH 1/3] Sync memory slash help copy --- src/i18n/EN.ts | 2 +- src/i18n/zh-CN.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/i18n/EN.ts b/src/i18n/EN.ts index a3b183c..b672bcd 100644 --- a/src/i18n/EN.ts +++ b/src/i18n/EN.ts @@ -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 |forget |clear confirm]", }, skill: { diff --git a/src/i18n/zh-CN.ts b/src/i18n/zh-CN.ts index 3e26a84..7d766c2 100644 --- a/src/i18n/zh-CN.ts +++ b/src/i18n/zh-CN.ts @@ -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 |forget |clear confirm]", }, skill: { From de1bc795c2529f45a0cabaf592816cd6c1fd5524 Mon Sep 17 00:00:00 2001 From: w287346141 <287346141@qq.com> Date: Tue, 26 May 2026 22:26:31 +0800 Subject: [PATCH 2/3] Test memory slash help paths --- tests/slash-help-i18n.test.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/slash-help-i18n.test.ts b/tests/slash-help-i18n.test.ts index e7a58ee..9ee342d 100644 --- a/tests/slash-help-i18n.test.ts +++ b/tests/slash-help-i18n.test.ts @@ -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("本地备选"); From 2dc4517f05374d4e5f41eea9b85fd8a91ed23b57 Mon Sep 17 00:00:00 2001 From: w287346141 <287346141@qq.com> Date: Tue, 26 May 2026 22:27:04 +0800 Subject: [PATCH 3/3] Clarify user memory rule comment --- src/memory/user.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/memory/user.ts b/src/memory/user.ts index ec3d9da..5381ad6 100644 --- a/src/memory/user.ts +++ b/src/memory/user.ts @@ -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 {