fix(slack): land #29032 /agentstatus alias from @maloqab

Land contributor PR #29032 by @maloqab with Slack native alias docs, integration tests, and changelog entry.

Co-authored-by: maloqab <mitebaloqab@gmail.com>
This commit is contained in:
Peter Steinberger
2026-02-27 19:08:59 +00:00
parent 1867611733
commit 8bc80fad47
6 changed files with 37 additions and 1 deletions

View File

@@ -109,6 +109,17 @@ describe("commands registry", () => {
expect(findCommandByNativeName("tts", "discord")).toBeUndefined();
});
it("renames status to agentstatus for slack", () => {
const native = listNativeCommandSpecsForConfig(
{ commands: { native: true } },
{ provider: "slack" },
);
expect(native.find((spec) => spec.name === "agentstatus")).toBeTruthy();
expect(native.find((spec) => spec.name === "status")).toBeFalsy();
expect(findCommandByNativeName("agentstatus", "slack")?.key).toBe("status");
expect(findCommandByNativeName("status", "slack")).toBeUndefined();
});
it("keeps discord native command specs within slash-command limits", () => {
const native = listNativeCommandSpecsForConfig(
{ commands: { native: true } },