mirror of
https://github.com/hanzoai/dev.git
synced 2026-10-25 03:32:32 +00:00
Three regressions the merge introduced, all caught by building and running: - `core/src/model_provider_info.rs` — upstream added `auth`, `experimental_bearer_token` and `websocket_connect_timeout_ms` to ModelProviderInfo; the Hanzo provider now sets them (None: our bearer comes from HANZO_USER_KEY, not a command, and the websocket default is fine). This was the only compile error in 7004 changed files. - `core/src/config.rs` — the default provider fallback had reverted to "openai". Back to HANZO_PROVIDER_ID. This one is the whole product. - `cli/src/main.rs` — the entire clap identity had reverted: `--help` printed "Codex CLI" and `Usage: code`. Restored name/bin_name = "dev", the about line, subcommand help, and the doctor/preview/login hints (17 sites). - `tui/src/updates.rs` — the in-product upgrade hint had reverted to `npm install -g @just-every/code@latest`, which would send our users to someone else's package. `core/tests/hanzo_identity.rs` needed one call-site update for upstream's new `built_in_model_providers(Option<String>)` signature; it then caught nothing further, which is the point of it. cargo test -p code-core --test hanzo_identity 4 passed; 0 failed Co-authored-by: Hanzo Dev <[email protected]>
1.3 KiB
1.3 KiB
Installing & building
System requirements
| Requirement | Details |
|---|---|
| Operating systems | macOS 12+, Ubuntu 20.04+/Debian 10+, or Windows 11 via WSL2 |
| Git (optional, recommended) | 2.23+ for built-in PR helpers |
| RAM | 4-GB minimum (8-GB recommended) |
DotSlash
GitHub Releases also contain a DotSlash shim named code. Checking the DotSlash file into your repo pins contributors to the same binary across platforms.
Build from source
# Clone the repository and navigate to the workspace root.
git clone https://github.com/hanzoai/dev.git
cd code
# Install the Rust toolchain, if necessary.
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
source "$HOME/.cargo/env"
# Build everything (CLI, TUI, MCP servers). This is the same check CI runs.
./build-fast.sh
# Launch the TUI with a sample prompt.
./target/debug/code -- "explain this codebase to me"
Note
The project treats compiler warnings as errors. The only required local check is
./build-fast.sh; skiprustfmt/clippyunless asked.