fix(ci): resolve docs lint and test typing regressions

This commit is contained in:
Peter Steinberger
2026-03-03 00:50:19 +00:00
parent 47083460ea
commit e930517154
4 changed files with 19 additions and 4 deletions

View File

@@ -178,14 +178,20 @@ Moonshot uses OpenAI-compatible endpoints, so configure it as a custom provider:
Kimi K2 model IDs:
<!-- markdownlint-disable MD037 -->
{/_ moonshot-kimi-k2-model-refs:start _/ && null}
<!-- markdownlint-enable MD037 -->
- `moonshot/kimi-k2.5`
- `moonshot/kimi-k2-0905-preview`
- `moonshot/kimi-k2-turbo-preview`
- `moonshot/kimi-k2-thinking`
- `moonshot/kimi-k2-thinking-turbo`
<!-- markdownlint-disable MD037 -->
{/_ moonshot-kimi-k2-model-refs:end _/ && null}
<!-- markdownlint-enable MD037 -->
```json5
{

View File

@@ -15,14 +15,20 @@ Kimi Coding with `kimi-coding/k2p5`.
Current Kimi K2 model IDs:
<!-- markdownlint-disable MD037 -->
{/_ moonshot-kimi-k2-ids:start _/ && null}
<!-- markdownlint-enable MD037 -->
- `kimi-k2.5`
- `kimi-k2-0905-preview`
- `kimi-k2-turbo-preview`
- `kimi-k2-thinking`
- `kimi-k2-thinking-turbo`
<!-- markdownlint-disable MD037 -->
{/_ moonshot-kimi-k2-ids:end _/ && null}
<!-- markdownlint-enable MD037 -->
```bash
openclaw onboard --auth-choice moonshot-api-key

View File

@@ -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" };
},
});

View File

@@ -298,9 +298,12 @@ describe("security/dm-policy-shared", () => {
expectedReactionAllowed: boolean;
};
function createParityCase(overrides: Partial<ParityCase> & Pick<ParityCase, "name">): ParityCase {
function createParityCase({
name,
...overrides
}: Partial<ParityCase> & Pick<ParityCase, "name">): ParityCase {
return {
name: overrides.name,
name,
isGroup: false,
dmPolicy: "open",
groupPolicy: "allowlist",