diff --git a/packages/opencode/src/cli/cmd/github.handler.ts b/packages/opencode/src/cli/cmd/github.handler.ts index d55c0bf3fb..0fa7c2e5d8 100644 --- a/packages/opencode/src/cli/cmd/github.handler.ts +++ b/packages/opencode/src/cli/cmd/github.handler.ts @@ -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 diff --git a/packages/opencode/src/cli/cmd/providers.ts b/packages/opencode/src/cli/cmd/providers.ts index 57ae2c3a8f..f0d132ae3d 100644 --- a/packages/opencode/src/cli/cmd/providers.ts +++ b/packages/opencode/src/cli/cmd/providers.ts @@ -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", { diff --git a/packages/opencode/src/cli/cmd/run/splash.ts b/packages/opencode/src/cli/cmd/run/splash.ts index 17cdc1976c..cb0da9b5eb 100644 --- a/packages/opencode/src/cli/cmd/run/splash.ts +++ b/packages/opencode/src/cli/cmd/run/splash.ts @@ -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, diff --git a/packages/opencode/src/cli/cmd/serve.ts b/packages/opencode/src/cli/cmd/serve.ts index 3058485c7a..995fd53f9d 100644 --- a/packages/opencode/src/cli/cmd/serve.ts +++ b/packages/opencode/src/cli/cmd/serve.ts @@ -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 }), diff --git a/packages/opencode/src/cli/error.ts b/packages/opencode/src/cli/error.ts index 407547e4e5..68e9a6c607 100644 --- a/packages/opencode/src/cli/error.ts +++ b/packages/opencode/src/cli/error.ts @@ -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") } @@ -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") } diff --git a/packages/opencode/src/provider/error.ts b/packages/opencode/src/provider/error.ts index 21149a2cf3..81ef0dc8ac 100644 --- a/packages/opencode/src/provider/error.ts +++ b/packages/opencode/src/provider/error.ts @@ -58,7 +58,7 @@ function message(providerID: ProviderV2.ID, e: APICallError) { // provide a human-readable message instead of dumping raw markup if (/^\s*` 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 ` 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." diff --git a/packages/opencode/src/provider/provider.ts b/packages/opencode/src/provider/provider.ts index c979fc4465..f8f3b91fac 100644 --- a/packages/opencode/src/provider/provider.ts +++ b/packages/opencode/src/provider/provider.ts @@ -787,7 +787,7 @@ function custom(dep: CustomDep): Record { 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`.", ) } @@ -873,7 +873,7 @@ function custom(dep: CustomDep): Record { 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.`, ) }, } diff --git a/packages/tui/src/feature-plugins/home/tips-view.tsx b/packages/tui/src/feature-plugins/home/tips-view.tsx index d9ef81e40c..32dd86f7a7 100644 --- a/packages/tui/src/feature-plugins/home/tips-view.tsx +++ b/packages/tui/src/feature-plugins/home/tips-view.tsx @@ -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`, @@ -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", @@ -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", diff --git a/packages/tui/src/util/error.ts b/packages/tui/src/util/error.ts index 757758a205..99821ac43d 100644 --- a/packages/tui/src/util/error.ts +++ b/packages/tui/src/util/error.ts @@ -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") } diff --git a/packages/tui/src/util/presentation.ts b/packages/tui/src/util/presentation.ts index de885eac40..5ce0fbd398 100644 --- a/packages/tui/src/util/presentation.ts +++ b/packages/tui/src/util/presentation.ts @@ -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") }