



























@@ -17,12 +17,17 @@ describe("slash command browser import", () => {
1717const mod = (await import(browserImportPath)) as SlashCommandsModule;
18181919const thinkCommand = mod.SLASH_COMMANDS.find((command) => command.name === "think");
20-expect(thinkCommand).toMatchObject({
20+expect(thinkCommand).toEqual({
2121key: "think",
2222name: "think",
23+aliases: ["thinking", "t"],
24+description: "Set thinking level.",
2325category: "model",
24-executeLocal: true,
2526args: "[level]",
27+icon: "brain",
28+executeLocal: true,
29+argOptions: undefined,
30+tier: "essential",
2631});
2732});
2833@@ -38,10 +43,17 @@ describe("slash command browser import", () => {
3843);
3944const mod = (await import(browserImportPath)) as SlashCommandsModule;
404541-expect(mod.SLASH_COMMANDS.find((command) => command.name === "think")).toMatchObject({
46+expect(mod.SLASH_COMMANDS.find((command) => command.name === "think")).toEqual({
4247key: "think",
48+name: "think",
49+aliases: ["thinking", "t"],
50+description: "Set thinking level.",
4351category: "model",
52+args: "[level]",
53+icon: "brain",
4454executeLocal: true,
55+argOptions: undefined,
56+tier: "essential",
4557});
4658expect(importLines(slashCommands)).toEqual([
4759'import { buildBuiltinChatCommands } from "../../../../src/auto-reply/commands-registry.shared.js";',
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。