Skip to content

Commit b757163

Browse files
committed
Fix Novita provider CI checks
1 parent e55203e commit b757163

5 files changed

Lines changed: 33 additions & 17 deletions

File tree

apps/vscode-e2e/eslint.config.mjs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
import { config } from "@roo-code/config-eslint/base"
22

33
/** @type {import("eslint").Linter.Config} */
4-
export default [...config]
4+
export default [
5+
...config,
6+
{
7+
files: ["**/*.d.ts"],
8+
rules: {
9+
"no-var": "off",
10+
},
11+
},
12+
]

apps/vscode-e2e/fixtures/novita.json

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,6 @@
1616
]
1717
}
1818
},
19-
{
20-
"match": {
21-
"model": "moonshotai/kimi-k2.7-code",
22-
"toolCallId": "call_novita_read"
23-
},
24-
"response": {
25-
"toolCalls": [
26-
{
27-
"name": "attempt_completion",
28-
"arguments": "{\"result\":\"NOVITA_E2E_MARKER\"}",
29-
"id": "call_novita_done"
30-
}
31-
]
32-
}
33-
},
3419
{
3520
"match": {
3621
"model": "moonshotai/kimi-k2.7-code",
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import { LLMock } from "@copilotkit/aimock"
2+
3+
import { toolResultContains } from "./tool-result"
4+
5+
export function addNovitaFixtures(mock: InstanceType<typeof LLMock>) {
6+
mock.addFixture({
7+
match: {
8+
model: "moonshotai/kimi-k2.7-code",
9+
toolCallId: "call_novita_read",
10+
predicate: (req) => toolResultContains(req, "call_novita_read", ["NOVITA_E2E_MARKER"]),
11+
},
12+
response: {
13+
toolCalls: [
14+
{
15+
name: "attempt_completion",
16+
arguments: JSON.stringify({ result: "NOVITA_E2E_MARKER" }),
17+
id: "call_novita_done",
18+
},
19+
],
20+
},
21+
})
22+
}

apps/vscode-e2e/src/runTest.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import { addSearchFilesResultFixtures } from "./fixtures/search-files"
1515
import { addSubtaskFixtures } from "./fixtures/subtasks"
1616
import { addUseMcpToolResultFixtures } from "./fixtures/use-mcp-tool"
1717
import { addWriteToFileResultFixtures } from "./fixtures/write-to-file"
18+
import { addNovitaFixtures } from "./fixtures/novita"
1819

1920
function getCliFlagValue(flag: string) {
2021
return process.argv.find((arg, index) => process.argv[index - 1] === flag)
@@ -136,6 +137,7 @@ async function main() {
136137
addSubtaskFixtures(mock)
137138
addUseMcpToolResultFixtures(mock)
138139
addWriteToFileResultFixtures(mock)
140+
addNovitaFixtures(mock)
139141

140142
// The modes test (switch_mode → ask) triggers a second API call whose last
141143
// user message starts with <environment_details> directly — no <user_message>

apps/vscode-e2e/src/types/global.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import type { RooCodeAPI } from "@roo-code/types"
22

33
declare global {
4-
// eslint-disable-next-line no-var
54
var api: RooCodeAPI
65
}
76

0 commit comments

Comments
 (0)