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
10 changes: 10 additions & 0 deletions DIVERGENCES.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ upstream maintainers — see README → Syncing with upstream for why and how.
| Test prose across `packages/*/test`, `packages/opencode/test/lib` | describe titles + comments naming the CLI command or product: `opencode <cmd>`/"opencode CLI"/"OpenCode" → `codev …`/"CoDev Code" (incl. help-snapshot keys/labels — regenerate the `.snap`, see the scriptName row). Functional names stay: `OPENCODE_*` env vars, `@opencode-ai/*`, `~/.opencode/bin` install paths, provider id `opencode`, fixture APIs (`opencode.run`, `OpencodeCli`), auth method `opencode-login`, default username `opencode`, upstream issue refs, third-party names. Config-file and config-dir fixtures follow the rename rows (`codev.json`, `.codev/`). | Test names/comments are read by people; identifiers are load-bearing. | Keep our prose; take upstream's test-logic changes. |
| `README.*.md` (21 translations) | Deleted | Upstream marketing translations, irrelevant to the fork. | Keep deleted (`git rm` the upstream side of modify/delete conflicts). |
| `screenshot-uk.png` | Deleted | Orphaned README-translation asset; referenced by nothing. | Keep deleted. |
| `artifacts/` (whole directory) | Deleted | Upstream's Remotion marketing-video project (`glm52-rise-video`) with rendered MP4/PNG binaries committed; irrelevant to the fork and bloats every clone. | Keep deleted (`git rm` the upstream side of modify/delete conflicts); delete new upstream additions under `artifacts/` too. |
| `github/action.yml`, `github/index.ts`, `github/README.md` | Action name/prose "opencode" → "CoDev Code"; the action installs `codev-code` from npm (version from the npm registry, `npm install --prefix ~/.codev-code`, cache key `codev-*`) and runs `codev github run`; `mentions` input defaults to `/codev` (index.ts trigger matcher likewise); `share` input defaults to `"false"`; `use_github_token` defaults to `"true"`; README setup targets `quickbeard/codev-code/github@main` with GITHUB_TOKEN auth; index.ts spawns `codev serve`, generates `codev/*` branches, and rebrands visible strings | The action must install and run the fork's published CLI, not stock opencode. The fork has no GitHub App and its share service defaults off (config.ts row), so token exchange and sharing default off here too. NOT renamed: the `@opencode-ai/sdk` import, `api.opencode.ai` exchange endpoints, the `opencode-github-action` OIDC audience, `opencode.ai` share URLs, the social-cards URL, and internal identifiers (`createOpencode`, `assertOpencodeConnected`). | Keep our install steps, input defaults, and strings; take upstream's surrounding logic changes. |
| `.github/TEAM_MEMBERS` | Deleted | Upstream's team roster. The five workflows that read it (pr-standards, pr-management, triage, duplicate-issues, compliance-close) fetch it from a `dev` branch this fork doesn't have, so they are already inert here. | Keep deleted. |
| `packages/script/src/index.ts` | Guard the `.github/TEAM_MEMBERS` read: fall back to an empty team list when the file is absent instead of throwing at module load | This module is imported by the publish path (`publish.ts`); the deleted `TEAM_MEMBERS` (row above) made `bun run release` crash with ENOENT. `Script.team` has no consumers in the fork. | Keep our `exists()` guard; take upstream's surrounding changes. |
| `.github/workflows/` — 22 upstream workflows deleted (beta, close-issues, close-prs, compliance-close, containers, deploy, docs-locale-sync, docs-update, duplicate-issues, generate, nix-hashes, notify-discord, opencode, pr-management, pr-standards, publish, publish-github-action, publish-vscode, release-github-action, review, stats, triage) | Deleted | All inert or upstream-only here: gated on `anomalyco/opencode`, publish/deploy to upstream infra, need upstream secrets (`OPENCODE_APP_SECRET`, `OPENCODE_API_KEY`, marketplace/Discord/PostHog tokens), trigger only on a `dev` branch the fork lacks, or read the deleted `TEAM_MEMBERS`. | Keep deleted; delete new upstream workflows too unless they're generic self-contained CI. |
Expand Down Expand Up @@ -93,6 +95,14 @@ upstream maintainers — see README → Syncing with upstream for why and how.
formats we can't author well — need design assets), desktop app ICONS (resources/icons —
need design assets), and the `ai.opencode.desktop` appId / `opencode://` scheme (identity
plumbing, like the OPENCODE_* env vars).
- **GitHub Action**: `github/` is rebranded (see table row), but the CLI side is not:
`codev github run` (`packages/opencode/src/cli/cmd/github.handler.ts`) still posts
upstream-branded comment footers ("opencode session" links, social-card images),
creates `opencode/*` branches, and `codev github install` still scaffolds upstream's
opencode workflow + GitHub App (the README points at manual setup instead). The npm
`latest` (1.17.16, published from a pre-rename tree) also still ships the `codev-code`
bin, so the action's `codev` invocation needs the next release. Patch before external
distribution.
- **Internal names**: `@opencode-ai/*` package names, `OPENCODE_*` env vars, and file names
inside `~/.local/share/codev` (e.g. `opencode-local.db`) keep upstream naming on purpose.
Renaming them would be a permanent merge-conflict machine for names users never see.
Expand Down
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,16 +70,15 @@ from the squash message first, or use a plain merge.

Features go, in order of preference:

1. **Config / plugins / skills / agents** — in the [codev](https://github.com/quickbeard/codev) repo or config packages; zero merge cost.
1. **Config / plugins / skills / agents** — in the [Codev Hub](https://github.com/quickbeard/codev-hub) repo or config packages; zero merge cost.
2. **New workspace packages** (`packages/codev-*`) — additive; near-zero merge cost.
3. **Edits to upstream files** — last resort. Every such file must be listed in [DIVERGENCES.md](DIVERGENCES.md) with a reason and a conflict-resolution strategy.

## Development

```sh
bun install
cd packages/opencode
bun run dev # run the CLI from source
bun run typecheck
bun test
bun dev # run the CLI from source
bun typecheck # all packages, via turbo
cd packages/opencode && bun test # tests must run from a package dir, never the repo root
```
3 changes: 0 additions & 3 deletions artifacts/glm52-rise-video/.gitignore

This file was deleted.

Loading
Loading