fix: add kilocode_change markers and update nvidia-headers test for rebrand

- Adds 'new file' marker to check-forbidden-strings workflow
- Marks the SKIP_FILES addition in extract-source-links.ts
- Updates nvidia-headers test to assert the new kilo.ai/Kilo Code values
This commit is contained in:
Mark IJbema
2026-05-18 17:00:05 +02:00
parent 1f71d25a64
commit eaabc99625
3 changed files with 6 additions and 5 deletions
@@ -1,3 +1,4 @@
# kilocode_change - new file
name: Check forbidden strings
on:
@@ -27,8 +27,8 @@ it.live("nvidia provider includes KiloCode billing origin header", () =>
const providers = yield* provider.list()
const headers = providers[ProviderID.make("nvidia")].options.headers
expect(headers["HTTP-Referer"]).toBe("https://opencode.ai/")
expect(headers["X-Title"]).toBe("opencode")
expect(headers["HTTP-Referer"]).toBe("https://kilo.ai/")
expect(headers["X-Title"]).toBe("Kilo Code")
expect(headers["X-BILLING-INVOKE-ORIGIN"]).toBe("KiloCode")
}),
),
@@ -63,8 +63,8 @@ it.live("nvidia billing origin header can be overridden from config", () =>
const providers = yield* provider.list()
const headers = providers[ProviderID.make("nvidia")].options.headers
expect(headers["HTTP-Referer"]).toBe("https://opencode.ai/")
expect(headers["X-Title"]).toBe("opencode")
expect(headers["HTTP-Referer"]).toBe("https://kilo.ai/")
expect(headers["X-Title"]).toBe("Kilo Code")
expect(headers["X-BILLING-INVOKE-ORIGIN"]).toBe("CustomOrigin")
}),
),
+1 -1
View File
@@ -85,7 +85,7 @@ const SKIP_DIRS = ["node_modules", ".storybook", "stories", "test", "tests", "__
const SKIP_PATH_SEGMENTS = ["continuedev"]
// Individual files to skip (data files full of non-user-facing URLs)
const SKIP_FILES = ["models-snapshot.ts", "models-snapshot.js", "check-forbidden-strings.ts"]
const SKIP_FILES = ["models-snapshot.ts", "models-snapshot.js", "check-forbidden-strings.ts"] // kilocode_change
function shouldExclude(url: string): boolean {
return EXCLUDE_PATTERNS.some((re) => re.test(url))