mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-08-29 03:44:06 +08:00
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:
@@ -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")
|
||||
}),
|
||||
),
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user