From e930517154951ba9686bb2f3e312fe5bedd40e81 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Tue, 3 Mar 2026 00:50:19 +0000 Subject: [PATCH] fix(ci): resolve docs lint and test typing regressions --- docs/concepts/model-providers.md | 6 ++++++ docs/providers/moonshot.md | 6 ++++++ src/media-understanding/runner.skip-tiny-audio.test.ts | 4 ++-- src/security/dm-policy-shared.test.ts | 7 +++++-- 4 files changed, 19 insertions(+), 4 deletions(-) diff --git a/docs/concepts/model-providers.md b/docs/concepts/model-providers.md index 4d242c102e5..a2b777020d2 100644 --- a/docs/concepts/model-providers.md +++ b/docs/concepts/model-providers.md @@ -178,14 +178,20 @@ Moonshot uses OpenAI-compatible endpoints, so configure it as a custom provider: Kimi K2 model IDs: + + {/_ moonshot-kimi-k2-model-refs:start _/ && null} + + - `moonshot/kimi-k2.5` - `moonshot/kimi-k2-0905-preview` - `moonshot/kimi-k2-turbo-preview` - `moonshot/kimi-k2-thinking` - `moonshot/kimi-k2-thinking-turbo` + {/_ moonshot-kimi-k2-model-refs:end _/ && null} + ```json5 { diff --git a/docs/providers/moonshot.md b/docs/providers/moonshot.md index 6e6ec52959b..a62b2f7ae71 100644 --- a/docs/providers/moonshot.md +++ b/docs/providers/moonshot.md @@ -15,14 +15,20 @@ Kimi Coding with `kimi-coding/k2p5`. Current Kimi K2 model IDs: + + {/_ moonshot-kimi-k2-ids:start _/ && null} + + - `kimi-k2.5` - `kimi-k2-0905-preview` - `kimi-k2-turbo-preview` - `kimi-k2-thinking` - `kimi-k2-thinking-turbo` + {/_ moonshot-kimi-k2-ids:end _/ && null} + ```bash openclaw onboard --auth-choice moonshot-api-key diff --git a/src/media-understanding/runner.skip-tiny-audio.test.ts b/src/media-understanding/runner.skip-tiny-audio.test.ts index a4e5d2e2d0f..6447e2b1dbf 100644 --- a/src/media-understanding/runner.skip-tiny-audio.test.ts +++ b/src/media-understanding/runner.skip-tiny-audio.test.ts @@ -98,7 +98,7 @@ describe("runCapability skips tiny audio files", () => { cache, transcribeAudio: async (req) => { transcribeCalled = true; - return { text: "should not happen", model: req.model }; + return { text: "should not happen", model: req.model ?? "whisper-1" }; }, }); @@ -154,7 +154,7 @@ describe("runCapability skips tiny audio files", () => { cache, transcribeAudio: async (req) => { transcribeCalled = true; - return { text: "hello world", model: req.model }; + return { text: "hello world", model: req.model ?? "whisper-1" }; }, }); diff --git a/src/security/dm-policy-shared.test.ts b/src/security/dm-policy-shared.test.ts index da28a17ae38..0fa92bbb1b8 100644 --- a/src/security/dm-policy-shared.test.ts +++ b/src/security/dm-policy-shared.test.ts @@ -298,9 +298,12 @@ describe("security/dm-policy-shared", () => { expectedReactionAllowed: boolean; }; - function createParityCase(overrides: Partial & Pick): ParityCase { + function createParityCase({ + name, + ...overrides + }: Partial & Pick): ParityCase { return { - name: overrides.name, + name, isGroup: false, dmPolicy: "open", groupPolicy: "allowlist",