Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/opencode/src/cli/cmd/github.handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ export const githubRun = Effect.fn("Cli.github.run")(function* (args: { event?:
await runLocalEffect(sessionShare.share(session.id))
return session.id.slice(-8)
})()
console.log("opencode session", session.id)
console.log("codev session", session.id)

// Handle event types:
// REPO_EVENTS (schedule, workflow_dispatch): no issue/PR context, output to logs/PR only
Expand Down
2 changes: 1 addition & 1 deletion packages/opencode/src/cli/cmd/providers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ export const ProvidersLoginCommand = effectCmd({
builder: (yargs: Argv) =>
yargs
.positional("url", {
describe: "opencode auth provider",
describe: "codev auth provider",
type: "string",
})
.option("provider", {
Expand Down
2 changes: 1 addition & 1 deletion packages/opencode/src/cli/cmd/run/splash.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ function build(input: SplashWriterInput, kind: "entry" | "exit", ctx: Scrollback
lines,
body_left + label.length,
top + 1,
`opencode --mini -s ${meta.session_id}`,
`codev --mini -s ${meta.session_id}`,
right,
undefined,
TextAttributes.BOLD,
Expand Down
2 changes: 1 addition & 1 deletion packages/opencode/src/cli/cmd/serve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const ServeCommand = effectCmd({
}
const opts = yield* resolveNetworkOptions(args)
const server = yield* Effect.promise(() => Server.listen(opts))
console.log(`opencode server listening on http://${server.hostname}:${server.port}`)
console.log(`codev server listening on http://${server.hostname}:${server.port}`)

yield* Effect.never
}),
Expand Down
4 changes: 2 additions & 2 deletions packages/opencode/src/cli/error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export function FormatError(input: unknown): string | undefined {
return [
`Model not found: ${stringField(providerModelNotFound, "providerID")}/${stringField(providerModelNotFound, "modelID")}`,
...(suggestions.length ? ["Did you mean: " + suggestions.join(", ")] : []),
`Try: \`opencode models\` to list available models`,
`Try: \`codev models\` to list available models`,
`Or check your config (opencode.json) provider/model names`,
].join("\n")
}
Expand Down Expand Up @@ -102,7 +102,7 @@ export function FormatError(input: unknown): string | undefined {
return [
`Failed to load remote config${remote ? ` from ${remote}` : ""}: the server returned a login page instead of JSON.`,
`Authentication is missing or has expired (the endpoint is likely behind an SSO or identity-aware proxy).`,
...(url ? [`Run \`opencode auth login ${url}\` to re-authenticate.`] : []),
...(url ? [`Run \`codev auth login ${url}\` to re-authenticate.`] : []),
].join("\n")
}

Expand Down
2 changes: 1 addition & 1 deletion packages/opencode/src/provider/error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function message(providerID: ProviderV2.ID, e: APICallError) {
// provide a human-readable message instead of dumping raw markup
if (/^\s*<!doctype|^\s*<html/i.test(e.responseBody)) {
if (e.statusCode === 401) {
return "Unauthorized: request was blocked by a gateway or proxy. Your authentication token may be missing or expired — try running `opencode auth login <your provider URL>` to re-authenticate."
return "Unauthorized: request was blocked by a gateway or proxy. Your authentication token may be missing or expired — try running `codev auth login <your provider URL>` to re-authenticate."
}
if (e.statusCode === 403) {
return "Forbidden: request was blocked by a gateway or proxy. You may not have permission to access this resource — check your account and provider settings."
Expand Down
4 changes: 2 additions & 2 deletions packages/opencode/src/provider/provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,7 @@ function custom(dep: CustomDep): Record<string, CustomLoader> {
if (!apiToken) {
throw new Error(
"CLOUDFLARE_API_TOKEN (or CF_AIG_TOKEN) is required for Cloudflare AI Gateway. " +
"Set it via environment variable or run `opencode auth cloudflare-ai-gateway`.",
"Set it via environment variable or run `codev auth cloudflare-ai-gateway`.",
)
}

Expand Down Expand Up @@ -873,7 +873,7 @@ function custom(dep: CustomDep): Record<string, CustomLoader> {
autoload: false,
async getModel() {
throw new Error(
`Snowflake Cortex: missing credentials (${missing}). Provide a bearer token (OAuth, JWT, or PAT) via env var, opencode auth, or provider options.`,
`Snowflake Cortex: missing credentials (${missing}). Provide a bearer token (OAuth, JWT, or PAT) via env var, codev auth, or provider options.`,
)
},
}
Expand Down
13 changes: 6 additions & 7 deletions packages/tui/src/feature-plugins/home/tips-view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,6 @@ const TIPS: Tip[] = [
(shortcuts) => press(shortcuts.agentCycle(), "to cycle between Build and Plan agents"),
"Use {highlight}/undo{/highlight} to revert the last message and file changes",
"Use {highlight}/redo{/highlight} to restore previously undone messages and file changes",
"Run {highlight}/share{/highlight} to create a public opencode.ai link",
"Drag and drop images or PDFs into the terminal as context",
(shortcuts) => press(shortcuts.inputPaste(), "to paste images from your clipboard into the prompt"),
(shortcuts) => `Use ${commandText("/editor", shortcuts.editorOpen())} to compose messages in your external editor`,
Expand Down Expand Up @@ -211,7 +210,7 @@ const TIPS: Tip[] = [
return `Use ${items.map(shortcutText).join(" / ")} for parent/child sessions`
},
"Create {highlight}opencode.json{/highlight} for server settings, and {highlight}tui.json{/highlight} for TUI",
"Place TUI settings in {highlight}~/.config/opencode/tui.json{/highlight} for global config",
"Place TUI settings in {highlight}~/.config/codev-code/tui.json{/highlight} for global config",
"Add {highlight}$schema{/highlight} to your config for autocomplete in your editor",
"Configure {highlight}model{/highlight} in config to set your default model",
"Override any keybind in {highlight}tui.json{/highlight} via the {highlight}keybinds{/highlight} section",
Expand All @@ -234,14 +233,14 @@ const TIPS: Tip[] = [
"Add {highlight}.ts{/highlight} files to {highlight}.opencode/plugins/{/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}codev run{/highlight} for non-interactive scripting",
"Use {highlight}codev --continue{/highlight} to resume the last session",
"Use {highlight}codev run -f file.ts{/highlight} to attach files via CLI",
"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",
"Use {highlight}codev 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}codev auth list{/highlight} to see all configured providers",
"Run {highlight}opencode agent create{/highlight} for guided agent creation",
"Use {highlight}/opencode{/highlight} in GitHub issues/PRs to trigger AI actions",
"Run {highlight}opencode github install{/highlight} to set up the GitHub workflow",
Expand Down
2 changes: 1 addition & 1 deletion packages/tui/src/util/error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function cliErrorMessage(input: unknown): string | undefined {
return [
`Model not found: ${field(model, "providerID")}/${field(model, "modelID")}`,
...(suggestions.length ? ["Did you mean: " + suggestions.join(", ")] : []),
"Try: `opencode models` to list available models",
"Try: `codev models` to list available models",
"Or check your config (opencode.json) provider/model names",
].join("\n")
}
Expand Down
2 changes: 1 addition & 1 deletion packages/tui/src/util/presentation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function sessionEpilogue(input: { title: string; sessionID?: string }) {
...wordmark(" "),
"",
` ${weak("Session")}${bold}${input.title}${reset}`,
` ${weak("Continue")}${bold}opencode -s ${input.sessionID}${reset}`,
` ${weak("Continue")}${bold}codev -s ${input.sessionID}${reset}`,
"",
].join("\n")
}
Loading