diff --git a/DIVERGENCES.md b/DIVERGENCES.md index 02efcea5d6..6d2cd60a5d 100644 --- a/DIVERGENCES.md +++ b/DIVERGENCES.md @@ -67,7 +67,7 @@ from the squash message first, or use a plain merge. | `packages/opencode/package.json` | bin key `opencode` → `codev` (shim path `./bin/opencode` unchanged); added `release` script | Installed command is `codev` — matches the CLI's `scriptName` and help text (the hub's command is `codevhub`; it relinquished the `codev` bin in codev-ai ≥ 0.4.0). `bun run release` publishes the version in this file (upstream-synced; script/release.ts is fork-only). | Keep our bin key and release line; take upstream's other fields including `version`. | | `bun.lock` | Mirrors the bin key rename above and the fork-only workspace packages/deps (`@codev/gateway`) | Lockfile records workspace bin mappings and workspace deps. | Regenerate with `bun install`; never hand-merge. | | `packages/tui/package.json` | Added dependency `"@codev/gateway": "workspace:*"` | The fork's gateway configure dialog imports SSO/backend/config-block logic from the fork-only `packages/codev-gateway`. | Keep our dependency line; take upstream's other fields. | -| `packages/tui/src/feature-plugins/home/tips-view.tsx` | `NO_MODELS_TIP` points at `/configure` (CoDev gateway) instead of `/connect` | The unconfigured-state tip should lead to the fork's configure flow. | Keep our tip text. | +| `packages/tui/src/feature-plugins/home/tips-view.tsx` | `NO_MODELS_TIP` points at `/configure` (CoDev gateway) instead of `/connect`; tip strings rebranded — built-CLI examples `opencode ` → `codev ` (`serve`, `upgrade`, `agent create`, `github install`, `debug config`) and product prose "OpenCode" → "CoDev Code". Dropped the `docker run … ghcr.io/anomalyco/opencode` tip and the `/connect` tip that advertised "OpenCode Zen" (a generic `/connect` tip already exists). **Rebrand gap — parked, not rebranded:** the GitHub-integration tips (`codev github install`, the two `/opencode` issue/PR trigger tips, and the `/oc` PR-review trigger tip) are commented out as a block (with a `TODO(rebrand)`) instead of shown or rebranded. | The tips name the fork's CLI (`codev`) and product; no fork docker image (see web-docs install row); Zen is upstream's hosted gateway. The trigger tips can't be rebranded to `/codev` yet: the GitHub app still fires on `/opencode` & `/oc` (`packages/opencode/src/cli/cmd/github.handler.ts` unchanged), so showing `/codev` would mislead and showing `/opencode` re-introduces the upstream brand — and the `github install` tip sets up that same integration, so the whole cluster is parked to keep docs↔behavior honest until the trigger phrase itself is rebranded. The `opencode.status` command id stays (internal identifier, not user-facing). | Keep our tip text, the docker-tip and Zen-`/connect`-tip deletions, and the commented-out GitHub-integration tip block. When the GitHub trigger phrase is rebranded, re-enable and rebrand that whole block (drop the `TODO`). Rebrand any new upstream `opencode `/"OpenCode" tip; drop any re-added docker/brew/curl install tip. | | `packages/tui/src/feature-plugins/sidebar/footer.tsx` | Deleted the dismissable "Getting started" card (free-models pitch + `/connect` pointer + `dismissed_getting_started` KV flag); the sidebar footer keeps only the cwd path display | The card advertises upstream's hosted free Zen models — which the fork hides — and points at `/connect` while first-run setup routes through `/configure`; the fork's startup gate covers onboarding. | Keep the card deleted; take upstream's changes to the remaining path display. | | `packages/tui/src/ui/dialog.tsx` | Added a `persistent` store flag (with `setPersistent`/`persistent` accessors): escape and the click-outside backdrop no-op while set, and ctrl+c dispatches `app.exit.confirm` (base-mode-only, so suppressed under modal) instead of closing; every `replace`/`clear` resets it to false | The CoDev gateway configure flow is a non-dismissable first-run gate; ctrl+c stays the quit escape hatch (double-press — see the double-Ctrl+C row). Default-false keeps every other dialog dismissable. | Keep our persistent flag, the escape/backdrop guards, the ctrl+c `app.exit.confirm` dispatch, and the reset lines; take upstream's surrounding changes. | | `packages/tui/src/ui/dialog-select.tsx` | Added a `persistent?` prop that hides the top-right `esc` hint | A non-dismissable select shouldn't advertise `esc` (the dialog store's persistent flag blocks the actual close). | Keep our prop + the `Show` wrapper around the esc label; take upstream's surrounding changes. | diff --git a/README.md b/README.md index b8fdddcad4..68a753d92e 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ Then commit everything in one PR (`chore: bump version to NEW`) — the `package ## Publishing to npm -Releases publish the unscoped — therefore **public** — [`codev-code`](https://www.npmjs.com/package/codev-code) package plus one `codev-code--` binary package per platform, at the version in `packages/opencode/package.json` (see [Bumping the version](#bumping-the-version) above). +Releases publish the unscoped — therefore **public** — [`codev-code`](https://www.npmjs.com/package/codev-code) package plus one `codev-code--` binary package per platform. ```sh npm login # once per machine @@ -50,7 +50,7 @@ bun release --skip-build # reuse an existing dist/ (must match the package.js Notes: - With 2FA-on-publish, npm may prompt once per package (13 of them). A granular automation token avoids that: `npm config set //registry.npmjs.org/:_authToken `. -- The wrapper refuses to run when the version is already on npm — for a fork-only re-release, bump the revision suffix first (see above). +- The wrapper refuses to run when the version is already on npm — for a fork-only re-release, bump the revision suffix first (see [Bumping the version](#bumping-the-version) above). - Verify after publishing: `npm view codev-code` and `npm i -g codev-code && codev --version`. ## Syncing and divergences diff --git a/packages/tui/src/feature-plugins/home/tips-view.tsx b/packages/tui/src/feature-plugins/home/tips-view.tsx index b61d4f88c3..e2d01216c0 100644 --- a/packages/tui/src/feature-plugins/home/tips-view.tsx +++ b/packages/tui/src/feature-plugins/home/tips-view.tsx @@ -234,20 +234,23 @@ const TIPS: Tip[] = [ "Tool definitions can invoke scripts written in Python, Go, etc", "Add {highlight}.ts{/highlight} files to {highlight}.codev/plugins/{/highlight} for event hooks", "Use plugins to send OS notifications when sessions complete", - "Create a plugin to prevent OpenCode from reading sensitive files", + "Create a plugin to prevent CoDev Code from reading sensitive files", "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", + "Run {highlight}codev serve{/highlight} for headless API access to CoDev Code", "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}codev upgrade{/highlight} to update to the latest version", "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", - "Comment {highlight}/opencode fix this{/highlight} on issues to auto-create PRs", - "Comment {highlight}/oc{/highlight} on PR code lines for targeted code reviews", + "Run {highlight}codev agent create{/highlight} for guided agent creation", + // TODO(rebrand): the GitHub integration still triggers on /opencode and /oc + // (github.handler.ts is not yet rebranded), so these tips are parked commented-out + // until the trigger phrase changes — see the tips-view row in DIVERGENCES.md. + // "Run {highlight}codev github install{/highlight} to set up the GitHub workflow", + // "Use {highlight}/opencode{/highlight} in GitHub issues/PRs to trigger AI actions", + // "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', "Create JSON theme files in {highlight}.codev/themes/{/highlight} directory", "Themes support dark/light variants for both modes", @@ -265,7 +268,7 @@ const TIPS: Tip[] = [ "Run {highlight}/unshare{/highlight} to remove a session from public access", "Permission {highlight}doom_loop{/highlight} prevents infinite tool call loops", "Permission {highlight}external_directory{/highlight} protects files outside project", - "Run {highlight}opencode debug config{/highlight} to troubleshoot configuration", + "Run {highlight}codev debug config{/highlight} to troubleshoot configuration", "Use {highlight}--print-logs{/highlight} flag to see detailed logs in stderr", (shortcuts) => `Use ${commandText("/timeline", shortcuts.sessionTimeline())} to jump to specific messages`, (shortcuts) => press(shortcuts.messagesToggleConceal(), "to toggle code block visibility in messages"), @@ -275,8 +278,6 @@ const TIPS: Tip[] = [ shortcuts.commandList() ? `Toggle username display in chat via the command palette (${shortcutText(shortcuts.commandList())})` : "Toggle username display in chat via the command palette", - "Run {highlight}docker run -it --rm ghcr.io/anomalyco/opencode{/highlight} in a container", - "Use {highlight}/connect{/highlight} with OpenCode Zen for curated, tested models", "Commit your project's {highlight}AGENTS.md{/highlight} file to Git for team sharing", "Use {highlight}/review{/highlight} to review uncommitted changes, branches, or PRs", (shortcuts) => `Use ${commandText("/help", shortcuts.helpShow())} to show the help dialog`,