mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-09-24 16:02:55 +08:00
refactor: replace x-opencode-* headers with x-kilo-* across codebase and upstream scripts
Update upstream merge scripts to use a generic x-opencode- → x-kilo- regex that catches all current and future headers automatically. Apply the same replacement to all source files so the codebase is ready for the next upstream merge.
This commit is contained in:
@@ -22,8 +22,8 @@ describe("control-plane/workspace-server SSE", () => {
|
||||
const response = await app.request("/event", {
|
||||
signal: stop.signal,
|
||||
headers: {
|
||||
"x-opencode-workspace": "wrk_test_workspace",
|
||||
"x-opencode-directory": tmp.path,
|
||||
"x-kilo-workspace": "wrk_test_workspace",
|
||||
"x-kilo-directory": tmp.path,
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ describe("project.initGit endpoint", () => {
|
||||
const init = await app.request("/project/git/init", {
|
||||
method: "POST",
|
||||
headers: {
|
||||
"x-opencode-directory": tmp.path,
|
||||
"x-kilo-directory": tmp.path,
|
||||
},
|
||||
})
|
||||
const body = await init.json()
|
||||
@@ -51,7 +51,7 @@ describe("project.initGit endpoint", () => {
|
||||
|
||||
const current = await app.request("/project/current", {
|
||||
headers: {
|
||||
"x-opencode-directory": tmp.path,
|
||||
"x-kilo-directory": tmp.path,
|
||||
},
|
||||
})
|
||||
expect(current.status).toBe(200)
|
||||
@@ -88,7 +88,7 @@ describe("project.initGit endpoint", () => {
|
||||
const init = await app.request("/project/git/init", {
|
||||
method: "POST",
|
||||
headers: {
|
||||
"x-opencode-directory": tmp.path,
|
||||
"x-kilo-directory": tmp.path,
|
||||
},
|
||||
})
|
||||
expect(init.status).toBe(200)
|
||||
@@ -103,7 +103,7 @@ describe("project.initGit endpoint", () => {
|
||||
|
||||
const current = await app.request("/project/current", {
|
||||
headers: {
|
||||
"x-opencode-directory": tmp.path,
|
||||
"x-kilo-directory": tmp.path,
|
||||
},
|
||||
})
|
||||
expect(current.status).toBe(200)
|
||||
|
||||
Reference in New Issue
Block a user