mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-29 02:41:07 +00:00
fix: restore Kimi Code under Moonshot setup (#54619) (thanks @sparkyrider)
* Onboarding: restore Kimi Code under Moonshot setup * Update extensions/kimi-coding/index.ts Fix naming convention in metadata Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> --------- Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
@@ -1417,14 +1417,14 @@ export const GENERATED_BUNDLED_PLUGIN_METADATA = [
|
||||
provider: "kimi",
|
||||
method: "api-key",
|
||||
choiceId: "kimi-code-api-key",
|
||||
choiceLabel: "Kimi Code API key",
|
||||
groupId: "kimi-code",
|
||||
groupLabel: "Kimi Code",
|
||||
groupHint: "Dedicated coding endpoint",
|
||||
choiceLabel: "Kimi Code API key (subscription)",
|
||||
groupId: "moonshot",
|
||||
groupLabel: "Moonshot AI (Kimi K2.5)",
|
||||
groupHint: "Kimi K2.5",
|
||||
optionKey: "kimiCodeApiKey",
|
||||
cliFlag: "--kimi-code-api-key",
|
||||
cliOption: "--kimi-code-api-key <key>",
|
||||
cliDescription: "Kimi Code API key",
|
||||
cliDescription: "Kimi Code API key (subscription)",
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
@@ -130,6 +130,24 @@ describe("plugin contract registry", () => {
|
||||
).toEqual(bundledWebSearchPluginIds);
|
||||
});
|
||||
|
||||
it("keeps Kimi Coding onboarding grouped under Moonshot", () => {
|
||||
const kimi = loadPluginManifestRegistry({}).plugins.find(
|
||||
(plugin) => plugin.origin === "bundled" && plugin.id === "kimi",
|
||||
);
|
||||
|
||||
expect(kimi?.providerAuthChoices).toEqual(
|
||||
expect.arrayContaining([
|
||||
expect.objectContaining({
|
||||
choiceId: "kimi-code-api-key",
|
||||
choiceLabel: "Kimi Code API key (subscription)",
|
||||
groupId: "moonshot",
|
||||
groupLabel: "Moonshot AI (Kimi K2.5)",
|
||||
groupHint: "Kimi K2.5",
|
||||
}),
|
||||
]),
|
||||
);
|
||||
});
|
||||
|
||||
it("does not duplicate bundled image-generation provider ids", () => {
|
||||
const ids = imageGenerationProviderContractRegistry.map((entry) => entry.provider.id);
|
||||
expect(ids).toEqual([...new Set(ids)]);
|
||||
|
||||
Reference in New Issue
Block a user