mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-09-24 16:02:55 +08:00
refactor: kilo compat for v1.14.29
This commit is contained in:
@@ -514,7 +514,7 @@ describe("tool.bash permissions", () => {
|
||||
test(
|
||||
`asks for external_directory permission for missing PowerShell env paths [${item.label}]`,
|
||||
withShell(item, async () => {
|
||||
const key = "OPENCODE_TEST_MISSING"
|
||||
const key = "KILO_TEST_MISSING"
|
||||
const prev = process.env[key]
|
||||
delete process.env[key]
|
||||
try {
|
||||
|
||||
@@ -85,7 +85,7 @@ describe("tool.registry", () => {
|
||||
JSON.stringify({
|
||||
name: "custom-tools",
|
||||
dependencies: {
|
||||
"@opencode-ai/plugin": "^0.0.0",
|
||||
"@kilocode/plugin": "^0.0.0",
|
||||
cowsay: "^1.6.0",
|
||||
},
|
||||
}),
|
||||
@@ -100,7 +100,7 @@ describe("tool.registry", () => {
|
||||
packages: {
|
||||
"": {
|
||||
dependencies: {
|
||||
"@opencode-ai/plugin": "^0.0.0",
|
||||
"@kilocode/plugin": "^0.0.0",
|
||||
cowsay: "^1.6.0",
|
||||
},
|
||||
},
|
||||
|
||||
@@ -52,11 +52,11 @@ Use this skill.
|
||||
)
|
||||
yield* Effect.promise(() => Bun.write(path.join(skill, "scripts", "demo.txt"), "demo"))
|
||||
|
||||
const home = process.env.OPENCODE_TEST_HOME
|
||||
process.env.OPENCODE_TEST_HOME = dir
|
||||
const home = process.env.KILO_TEST_HOME
|
||||
process.env.KILO_TEST_HOME = dir
|
||||
yield* Effect.addFinalizer(() =>
|
||||
Effect.sync(() => {
|
||||
process.env.OPENCODE_TEST_HOME = home
|
||||
process.env.KILO_TEST_HOME = home
|
||||
}),
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user