refactor: kilo command branding

This commit is contained in:
Catriel Müller
2026-05-21 14:08:24 -03:00
parent 8df0bb73a9
commit fca2afcf1e
6 changed files with 54 additions and 27 deletions
+1 -1
View File
@@ -278,7 +278,7 @@ export const RunCommand = effectCmd({
})
.option("attach", {
type: "string",
describe: "attach to a running opencode server (e.g., http://localhost:4096)",
describe: "attach to a running kilo server (e.g., http://localhost:4096)", // kilocode_change
})
.option("password", {
alias: ["p"],
@@ -114,17 +114,17 @@ const TIPS = [
"Add {highlight}.ts{/highlight} files to {highlight}.opencode/plugin/{/highlight} for event hooks",
"Use plugins to send OS notifications when sessions complete",
"Create a plugin to prevent OpenCode from reading sensitive files",
"Use {highlight}opencode run{/highlight} for non-interactive scripting",
"Use {highlight}opencode --continue{/highlight} to resume the last session",
"Use {highlight}opencode run -f file.ts{/highlight} to attach files via CLI",
"Use {highlight}kilo run{/highlight} for non-interactive scripting", // kilocode_change
"Use {highlight}kilo --continue{/highlight} to resume the last session", // kilocode_change
"Use {highlight}kilo run -f file.ts{/highlight} to attach files via CLI", // kilocode_change
"Use {highlight}--format json{/highlight} for machine-readable output in scripts",
"Run {highlight}opencode serve{/highlight} for headless API access to OpenCode",
"Use {highlight}opencode run --attach{/highlight} to connect to a running server",
"Run {highlight}opencode upgrade{/highlight} to update to the latest version",
"Run {highlight}opencode auth list{/highlight} to see all configured providers",
"Run {highlight}opencode agent create{/highlight} for guided agent creation",
"Run {highlight}kilo serve{/highlight} for headless API access to Kilo", // kilocode_change
"Use {highlight}kilo run --attach{/highlight} to connect to a running server", // kilocode_change
"Run {highlight}kilo upgrade{/highlight} to update to the latest version", // kilocode_change
"Run {highlight}kilo auth list{/highlight} to see all configured providers", // kilocode_change
"Run {highlight}kilo agent create{/highlight} for guided agent creation", // kilocode_change
"Use {highlight}/opencode{/highlight} in GitHub issues/PRs to trigger AI actions",
"Run {highlight}opencode github install{/highlight} to set up the GitHub workflow",
"Run {highlight}kilo github install{/highlight} to set up the GitHub workflow", // kilocode_change
"Comment {highlight}/opencode fix this{/highlight} on issues to auto-create PRs",
"Comment {highlight}/oc{/highlight} on PR code lines for targeted code reviews",
'Use {highlight}"theme": "system"{/highlight} to match your terminal\'s colors',
+1 -1
View File
@@ -140,7 +140,7 @@ export const Info = Schema.Struct({
}),
logLevel: Schema.optional(LogLevelRef).annotate({ description: "Log level" }),
server: Schema.optional(ConfigServer.Server).annotate({
description: "Server configuration for opencode serve and web commands",
description: "Server configuration for the kilo serve command", // kilocode_change
}),
command: Schema.optional(Schema.Record(Schema.String, ConfigCommand.Info)).annotate({
description: "Command configuration, see https://opencode.ai/docs/commands",
@@ -92,7 +92,7 @@ const PathParameterSchemas = {
const LegacyComponentDescriptions = {
LogLevel: "Log level",
ServerConfig: "Server configuration for opencode serve and web commands",
ServerConfig: "Server configuration for the kilo serve command", // kilocode_change
LayoutConfig: "@deprecated Always uses stretch layout.",
} satisfies Record<string, string>
@@ -0,0 +1,27 @@
import { describe, expect, test } from "bun:test"
import path from "path"
const root = path.join(__dirname, "..", "..")
const files = [
"src/cli/cmd/tui/feature-plugins/home/tips-view.tsx",
"src/cli/cmd/run.ts",
"src/config/config.ts",
"src/server/routes/instance/httpapi/public.ts",
"src/mcp/index.ts",
]
const command = /opencode\s+(--[a-z-]+|run|serve|auth|upgrade|agent|github|mcp)\b/g
describe("Kilo command branding", () => {
test("user-facing command help uses the `kilo` binary name", async () => {
const results = await Promise.all(
files.map(async (file) => ({
file,
matches: [...(await Bun.file(path.join(root, file)).text()).matchAll(command)].map((match) => match[0]),
})),
)
expect(results.filter((result) => result.matches.length > 0)).toEqual([])
})
})