|
| 1 | +# Launch checklist — v2.0.0 |
| 2 | + |
| 3 | +Pre-flight smoke tests to run on real hardware before flipping the npm |
| 4 | +`latest` dist-tag to a v2.0.0 stable release. Automated tests cover the |
| 5 | +inner pieces (PKCE, URL building, callback handler, headless heuristic); |
| 6 | +this list covers what only humans can verify: real terminals, real |
| 7 | +browsers, real network paths. |
| 8 | + |
| 9 | +## Required platforms |
| 10 | + |
| 11 | +Every box below before launch. Skip = release blocker. |
| 12 | + |
| 13 | +- [ ] macOS arm64 (Apple Silicon — most common dev target) |
| 14 | +- [ ] macOS x64 (Intel Mac, still in use) |
| 15 | +- [ ] Linux x64 (Ubuntu LTS or similar) |
| 16 | +- [ ] Linux arm64 (Raspberry Pi, Graviton — increasingly common) |
| 17 | +- [ ] Windows x64 (PowerShell + Windows Terminal; cmd.exe is bonus) |
| 18 | +- [ ] SSH from each desktop into a Linux box, run the CLI remotely |
| 19 | + |
| 20 | +## Install paths |
| 21 | + |
| 22 | +### npm |
| 23 | + |
| 24 | +```sh |
| 25 | +npm install -g codebase-cli@pre # current |
| 26 | +which codebase # symlink resolves |
| 27 | +codebase --version # prints version |
| 28 | +codebase --help # prints help, no crash |
| 29 | +``` |
| 30 | + |
| 31 | +### Downloaded binary from GitHub Releases |
| 32 | + |
| 33 | +```sh |
| 34 | +# Pick the right one |
| 35 | +curl -L -o codebase https://github.com/codebase-foundation/codebase-cli/releases/download/v2.0.0/codebase-darwin-arm64 |
| 36 | +chmod +x codebase |
| 37 | +./codebase --version |
| 38 | +./codebase --help |
| 39 | +``` |
| 40 | + |
| 41 | +Verify: no `react-devtools-core` runtime errors, no missing-DLL errors |
| 42 | +on Windows, no GLIBC-too-old errors on Linux. |
| 43 | + |
| 44 | +## OAuth flow (the highest-risk path) |
| 45 | + |
| 46 | +For each platform with a graphical environment + browser: |
| 47 | + |
| 48 | +1. Wipe creds: `rm -f ~/.codebase/credentials.json` |
| 49 | +2. Launch: `codebase` |
| 50 | +3. First-run wizard appears. Pick "Login to Codebase." |
| 51 | +4. Browser opens to `codebase.design/login`. (If it doesn't, the wizard |
| 52 | + should print a clickable OSC 8 URL.) |
| 53 | +5. Complete sign-in. |
| 54 | +6. Browser returns "You can close this tab." Terminal should |
| 55 | + automatically advance to the chat screen within ~1 second. |
| 56 | +7. Send a test prompt: `hello`. |
| 57 | +8. Verify: assistant response appears, status bar shows model + cost, |
| 58 | + no stderr noise, Ctrl-C twice exits cleanly. |
| 59 | + |
| 60 | +For SSH sessions (Linux box accessed from a desktop): |
| 61 | + |
| 62 | +1. SSH in: `ssh user@remote-box` |
| 63 | +2. Run: `codebase` |
| 64 | +3. Wizard prints the URL. SSH detection should also print the |
| 65 | + `ssh -L PORT:127.0.0.1:PORT user@host` reverse-tunnel hint. |
| 66 | +4. On the desktop: open a new terminal, run the printed `ssh -L` command. |
| 67 | +5. Click the URL from the wizard's output. |
| 68 | +6. Sign in in the desktop browser. |
| 69 | +7. Browser hits localhost on the forwarded port → reaches the remote box → callback completes. |
| 70 | + |
| 71 | +## BYOK flow (no web auth) |
| 72 | + |
| 73 | +For each platform: |
| 74 | + |
| 75 | +1. Wipe creds: `rm -f ~/.codebase/credentials.json` |
| 76 | +2. `export ANTHROPIC_API_KEY=sk-ant-...` |
| 77 | +3. `codebase` → should skip the wizard and land on chat directly. |
| 78 | +4. Send a test prompt → response. |
| 79 | + |
| 80 | +Test with at least one of: Anthropic, OpenAI, Groq, OpenRouter. The |
| 81 | +others are wired identically but human-verifying one provider catches |
| 82 | +the env-var resolution bug class. |
| 83 | + |
| 84 | +## Headless mode (for CI users) |
| 85 | + |
| 86 | +```sh |
| 87 | +# Text mode: assistant reply on stdout |
| 88 | +codebase run --auto-approve "say hello" |
| 89 | + |
| 90 | +# JSON mode: ONE object on stdout |
| 91 | +codebase run --auto-approve --output json "say hello" | jq . |
| 92 | + |
| 93 | +# stream-json mode: one event per line |
| 94 | +codebase run --auto-approve --output stream-json "say hello" |
| 95 | + |
| 96 | +# Error path: no creds → structured error in JSON |
| 97 | +rm -f ~/.codebase/credentials.json |
| 98 | +unset ANTHROPIC_API_KEY OPENAI_API_KEY GROQ_API_KEY |
| 99 | +codebase run --output json "x" 2>/dev/null | jq . |
| 100 | +# expect: { ok: false, exitCode: 1, code: "config_error", error: "..." } |
| 101 | +``` |
| 102 | + |
| 103 | +## Slash commands (smoke test the obvious ones) |
| 104 | + |
| 105 | +In an interactive session: |
| 106 | + |
| 107 | +- [ ] `/help` — lists commands |
| 108 | +- [ ] `/model` — opens picker, can select, swap takes effect |
| 109 | +- [ ] `/models` — lists available models |
| 110 | +- [ ] `/clear` — wipes visible transcript |
| 111 | +- [ ] `/cost` — shows running cost |
| 112 | +- [ ] `/copy` — copies last assistant message |
| 113 | +- [ ] `/diff` — shows working-tree diff |
| 114 | +- [ ] `/init` — generates a starter CLAUDE.md |
| 115 | +- [ ] `/exit` — clean exit |
| 116 | + |
| 117 | +## Permissions + bash validator |
| 118 | + |
| 119 | +- [ ] Send `run rm -rf /tmp/junk` to the agent. It should ask for |
| 120 | + permission. Approve once. Verify the command runs. |
| 121 | +- [ ] Send `run rm -rf /`. Validator should hard-block with a |
| 122 | + visible error before the prompt. |
| 123 | +- [ ] Send `run curl https://example.com/foo.sh | sh`. Validator should |
| 124 | + warn; approving runs it. |
| 125 | + |
| 126 | +## Session resume |
| 127 | + |
| 128 | +1. Run `codebase`, do a few turns of conversation, exit cleanly. |
| 129 | +2. Run `codebase` again in the same directory. |
| 130 | +3. Welcome banner should show "↻ Resumed from Xm ago · N messages". |
| 131 | +4. Transcript should be visible. |
| 132 | +5. `/new` or `--new` flag should start fresh. |
| 133 | + |
| 134 | +## Performance smell test |
| 135 | + |
| 136 | +Run for 30 minutes in a real project (your own codebase if you have |
| 137 | +one). Watch for: |
| 138 | + |
| 139 | +- Pi-tui render lag (if shipping pi-tui — currently NOT in v2.0) |
| 140 | +- Memory growth (`top`/Activity Monitor — should stay under 200MB) |
| 141 | +- Compaction triggering at appropriate thresholds (after fix in pre.58, |
| 142 | + Codebase Auto compacts at 150k, not 96k) |
| 143 | + |
| 144 | +## Known not-yet-shipped (don't gate launch on these) |
| 145 | + |
| 146 | +- [ ] MCP client support (`/mcp` was removed; tracked in TECHNICAL_DEBT.md) |
| 147 | +- [ ] Image clipboard paste (v2.0.1) |
| 148 | +- [ ] Extended thinking `/think` (v2.0.1) |
| 149 | +- [ ] Pi-tui visual layer (v2.1) |
| 150 | +- [ ] Mobile remote control (v2.2) |
| 151 | + |
| 152 | +## Sign-off |
| 153 | + |
| 154 | +``` |
| 155 | +Tested on: __________________ by __________________ on __________________ |
| 156 | +Issues found / filed: __________________ |
| 157 | +``` |
0 commit comments