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:
Catriel Müller
2026-03-20 09:10:57 -03:00
parent 50e8d22f2c
commit d7b9f51962
10 changed files with 23 additions and 20 deletions
@@ -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)