Change USER_AGENT prefix from 'opencode' to 'kilo' (#260)

* Change USER_AGENT prefix from 'opencode' to 'kilo'

* fix: use KILO_VERSION/KILO_CHANNEL globals and add kilocode_change marker

---------

Co-authored-by: Marius <marius@kilocode.ai>
This commit is contained in:
Dax
2026-02-12 09:40:51 +00:00
committed by GitHub
co-authored by Marius
parent 3e3385fbb3
commit ed208a4799
+1 -1
View File
@@ -192,7 +192,7 @@ export namespace Installation {
export const VERSION = typeof KILO_VERSION === "string" ? KILO_VERSION : "local"
export const CHANNEL = typeof KILO_CHANNEL === "string" ? KILO_CHANNEL : "local"
export const USER_AGENT = `opencode/${CHANNEL}/${VERSION}/${Flag.KILO_CLIENT}`
export const USER_AGENT = `kilo/${CHANNEL}/${VERSION}/${Flag.KILO_CLIENT}` // kilocode_change
export async function latest(installMethod?: Method) {
const detectedMethod = installMethod || (await method())