Remove unnecessary kilocode_change markers from kilocode directories

This commit is contained in:
Mark IJbema
2026-03-09 17:06:31 +01:00
parent bf8064ddc4
commit 05f6611bf7
14 changed files with 3 additions and 22 deletions
@@ -1,8 +1,8 @@
import { Config } from "../config/config"
import { ModesMigrator } from "./modes-migrator"
import { RulesMigrator } from "./rules-migrator" // kilocode_change
import { RulesMigrator } from "./rules-migrator"
import { WorkflowsMigrator } from "./workflows-migrator"
import { IgnoreMigrator } from "./ignore-migrator" // kilocode_change
import { IgnoreMigrator } from "./ignore-migrator"
export namespace KilocodeConfigInjector {
export interface InjectionResult {
@@ -46,7 +46,6 @@ export namespace KilocodeConfigInjector {
config.command = workflowsMigration.commands
}
// kilocode_change start - Rules migration
if (options.includeRules !== false) {
const rulesMigration = await RulesMigrator.migrate({
projectDir: options.projectDir,
@@ -60,9 +59,7 @@ export namespace KilocodeConfigInjector {
config.instructions = rulesMigration.instructions
}
}
// kilocode_change end
// kilocode_change start - Ignore migration
if (options.includeIgnore !== false) {
const ignoreMigration = await IgnoreMigrator.migrate({
projectDir: options.projectDir,
@@ -75,7 +72,6 @@ export namespace KilocodeConfigInjector {
config.permission = mergePermissions(config.permission, ignoreMigration.permission)
}
}
// kilocode_change end
return {
configJson: JSON.stringify(config),
-1
View File
@@ -1,4 +1,3 @@
// kilocode_change - new file
import { Installation } from "@/installation"
@@ -1,4 +1,3 @@
// kilocode_change - new file
import * as path from "path"
import os from "os"
+1 -1
View File
@@ -2,6 +2,6 @@ export { ModesMigrator } from "./modes-migrator"
export { RulesMigrator } from "./rules-migrator"
export { WorkflowsMigrator } from "./workflows-migrator"
export { McpMigrator } from "./mcp-migrator"
export { IgnoreMigrator } from "./ignore-migrator" // kilocode_change
export { IgnoreMigrator } from "./ignore-migrator"
export { KilocodeConfigInjector } from "./config-injector"
export { KilocodePaths } from "./paths"
@@ -23,7 +23,6 @@ export namespace ModesMigrator {
}
// Default modes to skip - these have native Opencode equivalents
// kilocode_change - added "build" for backward compatibility after renaming "build" to "code"
const DEFAULT_MODE_SLUGS = new Set(["code", "build", "architect", "ask", "debug", "orchestrator"])
// Group to permission mapping
@@ -1,4 +1,3 @@
// kilocode_change - new file
import { Instance } from "@/project/instance"
import path from "path"
import { $ } from "bun"
@@ -1,4 +1,3 @@
// kilocode_change - new file
import type { Command } from "@/command"
import { Review } from "./review"
@@ -1,4 +1,3 @@
// kilocode_change - new file
import { $ } from "bun"
import { Log } from "@/util/log"
import { Instance } from "@/project/instance"
@@ -1,4 +1,3 @@
// kilocode_change - new file
import z from "zod"
export const DiffHunk = z.object({
@@ -1,4 +1,3 @@
// kilocode_change - new file
import * as fs from "fs/promises"
import * as path from "path"
@@ -1,4 +1,3 @@
// kilocode_change - new file
import * as fs from "fs/promises"
import * as path from "path"
@@ -109,7 +109,6 @@ describe("KilocodeConfigInjector", () => {
expect(config.command["deploy"]).toBeDefined()
})
// kilocode_change start - Rules migration tests
test("includes rules in config", async () => {
await using tmp = await tmpdir({
init: async (dir) => {
@@ -197,9 +196,7 @@ describe("KilocodeConfigInjector", () => {
expect(result.warnings.some((w) => w.includes("Legacy"))).toBe(true)
})
// kilocode_change end
// kilocode_change start - Ignore migration tests
test("includes ignore patterns in config", async () => {
await using tmp = await tmpdir({
init: async (dir) => {
@@ -283,7 +280,6 @@ describe("KilocodeConfigInjector", () => {
expect(config.permission.read["*.env"]).toBe("deny")
expect(config.permission.read[".env.example"]).toBe("allow")
})
// kilocode_change end
})
describe("getEnvVars", () => {
@@ -1,4 +1,3 @@
// kilocode_change - new file
import { describe, it, expect, afterEach } from "bun:test"
import { buildKiloHeaders, getFeatureHeader, getEditorNameHeader } from "@kilocode/kilo-gateway"
import { HEADER_FEATURE, ENV_FEATURE } from "@kilocode/kilo-gateway"
@@ -1,4 +1,3 @@
// kilocode_change - new file
// Regression test: OAuth accountId must flow into model fetch as kilocodeOrganizationId
// When a user logs in via OAuth and selects an enterprise organization, the model fetch
// should use the organization-specific endpoint, not the personal endpoint.