Skip to content

Commit 377e484

Browse files
VJ-yadavVijay Yadav
andcommitted
fix: update remaining opencode references in help output
Replace user-visible "opencode" branding in CLI --help descriptions, mDNS defaults, and pr command binary spawns with "altimate-code". Closes #417, relates to #416. Co-Authored-By: Vijay Yadav <vijay@studentsucceed.com>
1 parent 33c331b commit 377e484

File tree

8 files changed

+19
-19
lines changed

8 files changed

+19
-19
lines changed

packages/opencode/src/cli/cmd/pr.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { git } from "@/util/git"
66

77
export const PrCommand = cmd({
88
command: "pr <number>",
9-
describe: "fetch and checkout a GitHub PR branch, then run opencode",
9+
describe: "fetch and checkout a GitHub PR branch, then run altimate-code",
1010
builder: (yargs) =>
1111
yargs.positional("number", {
1212
type: "number",
@@ -82,15 +82,15 @@ export const PrCommand = cmd({
8282
})
8383
}
8484

85-
// Check for opencode session link in PR body
85+
// Check for altimate-code session link in PR body
8686
if (prInfo && prInfo.body) {
8787
const sessionMatch = prInfo.body.match(/https:\/\/opncd\.ai\/s\/([a-zA-Z0-9_-]+)/)
8888
if (sessionMatch) {
8989
const sessionUrl = sessionMatch[0]
90-
UI.println(`Found opencode session: ${sessionUrl}`)
90+
UI.println(`Found altimate-code session: ${sessionUrl}`)
9191
UI.println(`Importing session...`)
9292

93-
const importResult = await Process.text(["opencode", "import", sessionUrl], {
93+
const importResult = await Process.text(["altimate-code", "import", sessionUrl], {
9494
nothrow: true,
9595
})
9696
if (importResult.code === 0) {
@@ -109,21 +109,21 @@ export const PrCommand = cmd({
109109

110110
UI.println(`Successfully checked out PR #${prNumber} as branch '${localBranchName}'`)
111111
UI.println()
112-
UI.println("Starting opencode...")
112+
UI.println("Starting altimate-code...")
113113
UI.println()
114114

115-
// Launch opencode TUI with session ID if available
115+
// Launch altimate-code TUI with session ID if available
116116
const { spawn } = await import("child_process")
117117
const opencodeArgs = sessionId ? ["-s", sessionId] : []
118-
const opencodeProcess = spawn("opencode", opencodeArgs, {
118+
const opencodeProcess = spawn("altimate-code", opencodeArgs, {
119119
stdio: "inherit",
120120
cwd: process.cwd(),
121121
})
122122

123123
await new Promise<void>((resolve, reject) => {
124124
opencodeProcess.on("exit", (code) => {
125125
if (code === 0) resolve()
126-
else reject(new Error(`opencode exited with code ${code}`))
126+
else reject(new Error(`altimate-code exited with code ${code}`))
127127
})
128128
opencodeProcess.on("error", reject)
129129
})

packages/opencode/src/cli/cmd/tui/thread.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,12 @@ async function input(value?: string) {
6464

6565
export const TuiThreadCommand = cmd({
6666
command: "$0 [project]",
67-
describe: "start opencode tui",
67+
describe: "start altimate-code tui",
6868
builder: (yargs) =>
6969
withNetworkOptions(yargs)
7070
.positional("project", {
7171
type: "string",
72-
describe: "path to start opencode in",
72+
describe: "path to start altimate-code in",
7373
})
7474
.option("model", {
7575
type: "string",

packages/opencode/src/cli/cmd/uninstall.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ interface RemovalTargets {
2424

2525
export const UninstallCommand = {
2626
command: "uninstall",
27-
describe: "uninstall opencode and remove all related files",
27+
describe: "uninstall altimate-code and remove all related files",
2828
builder: (yargs: Argv) =>
2929
yargs
3030
.option("keep-config", {

packages/opencode/src/cli/network.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ const options = {
1919
},
2020
"mdns-domain": {
2121
type: "string" as const,
22-
describe: "custom domain name for mDNS service (default: opencode.local)",
23-
default: "opencode.local",
22+
describe: "custom domain name for mDNS service (default: altimate-code.local)",
23+
default: "altimate-code.local",
2424
},
2525
cors: {
2626
type: "string" as const,

packages/opencode/src/config/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -992,7 +992,7 @@ export namespace Config {
992992
port: z.number().int().positive().optional().describe("Port to listen on"),
993993
hostname: z.string().optional().describe("Hostname to listen on"),
994994
mdns: z.boolean().optional().describe("Enable mDNS service discovery"),
995-
mdnsDomain: z.string().optional().describe("Custom domain name for mDNS service (default: opencode.local)"),
995+
mdnsDomain: z.string().optional().describe("Custom domain name for mDNS service (default: altimate-code.local)"),
996996
cors: z.array(z.string()).optional().describe("Additional domains to allow for CORS"),
997997
})
998998
.strict()

packages/opencode/src/server/mdns.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ export namespace MDNS {
1212
if (bonjour) unpublish()
1313

1414
try {
15-
const host = domain ?? "opencode.local"
16-
const name = `opencode-${port}`
15+
const host = domain ?? "altimate-code.local"
16+
const name = `altimate-code-${port}`
1717
bonjour = new Bonjour()
1818
const service = bonjour.publish({
1919
name,

packages/opencode/test/cli/tui/thread.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ describe("tui thread", () => {
9999
port: 0,
100100
hostname: "127.0.0.1",
101101
mdns: false,
102-
"mdns-domain": "opencode.local",
103-
mdnsDomain: "opencode.local",
102+
"mdns-domain": "altimate-code.local",
103+
mdnsDomain: "altimate-code.local",
104104
cors: [],
105105
}
106106
return TuiThreadCommand.handler(args)

packages/sdk/js/src/v2/gen/types.gen.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1031,7 +1031,7 @@ export type ServerConfig = {
10311031
*/
10321032
mdns?: boolean
10331033
/**
1034-
* Custom domain name for mDNS service (default: opencode.local)
1034+
* Custom domain name for mDNS service (default: altimate-code.local)
10351035
*/
10361036
mdnsDomain?: string
10371037
/**

0 commit comments

Comments
 (0)