| 1 | [workspace] |
| 2 | members = [ |
| 3 | "crates/account-cli", |
| 4 | "crates/agent-contract", |
| 5 | "crates/app-server", |
| 6 | "crates/app-server-protocol", |
| 7 | "crates/build-support", |
| 8 | "crates/cli", |
| 9 | "crates/cloud-facts", |
| 10 | "crates/command-contract", |
| 11 | "crates/commands", |
| 12 | "crates/config", |
| 13 | "crates/core", |
| 14 | "crates/engine", |
| 15 | "crates/error-taxonomy", |
| 16 | "crates/execpolicy", |
| 17 | "crates/hooks", |
| 18 | "crates/lane", |
| 19 | "crates/localization", |
| 20 | "crates/mcp", |
| 21 | "crates/memory", |
| 22 | "crates/models", |
| 23 | "crates/net", |
| 24 | "crates/notify", |
| 25 | "crates/palette", |
| 26 | "crates/paths", |
| 27 | "crates/plugins", |
| 28 | "crates/protocol", |
| 29 | "crates/release", |
| 30 | "crates/runtime", |
| 31 | "crates/sandbox", |
| 32 | "crates/secrets", |
| 33 | "crates/skill-install", |
| 34 | "crates/skills", |
| 35 | "crates/sanitize", |
| 36 | "crates/state", |
| 37 | "crates/telemetry", |
| 38 | "crates/tools", |
| 39 | "crates/tui", |
| 40 | "crates/tui-kit", |
| 41 | "crates/util", |
| 42 | "crates/dependencies", |
| 43 | "crates/snapshot", |
| 44 | "crates/lsp", |
| 45 | "crates/repl", |
| 46 | "crates/workflow", |
| 47 | "crates/workflow-js", |
| 48 | "vendor/codewhale-ratatui", |
| 49 | "tests/portable-session", |
| 50 | "tests/portable-config", |
| 51 | "tests/portable-core-navigation", |
| 52 | ] |
| 53 | default-members = ["crates/cli"] |
| 54 | resolver = "2" |
| 55 | |
| 56 | [workspace.package] |
| 57 | version = "0.10.5" |
| 58 | edition = "2024" |
| 59 | # The floor is what CI's MSRV job builds (1.89): Rust 1.88 stabilized the |
| 60 | # `let_chains` the codebase relies on, but a locked dependency |
| 61 | # (serde-saphyr) needs 1.89. Cargo enforces this so users on older toolchains |
| 62 | # get a clear "package requires rustc 1.89+" error. |
| 63 | rust-version = "1.89" |
| 64 | license = "MIT" |
| 65 | repository = "https://github.com/codewhale-hq/CodeWhale" |
| 66 | |
| 67 | # Record the policy CI already applies via `RUSTFLAGS: -Dwarnings`. |
| 68 | # Member crates opt in with `[lints] workspace = true`. This does not add |
| 69 | # new lints; it makes the existing gate visible in the manifest so |
| 70 | # `cargo check` without extra flags matches CI. |
| 71 | [workspace.lints.rust] |
| 72 | warnings = "deny" |
| 73 | |
| 74 | [workspace.dependencies] |
| 75 | agent-client-protocol = { version = "=5.2.0", default-features = false } |
| 76 | agent-client-protocol-schema = { version = "=1.17.0", default-features = false } |
| 77 | anyhow = "1.0.100" |
| 78 | async-trait = "0.1.89" |
| 79 | axum = { version = "0.8.5", features = ["json", "ws"] } |
| 80 | chrono = { version = "0.4.43", features = ["serde"] } |
| 81 | clap = { version = "4.5.54", features = ["derive"] } |
| 82 | clap_complete = "4.5" |
| 83 | dirs = "7.0.0" |
| 84 | encoding_rs = "0.8.35" |
| 85 | # Users: crates/workflow-js and the extension host in crates/tui (schemaui is |
| 86 | # gone); keep the graph on one jsonschema/jsonschema-regex/referencing/ |
| 87 | # fancy-regex stack. |
| 88 | jsonschema = { version = "0.61", default-features = false } |
| 89 | libc = "0.2" |
| 90 | reqwest = { version = "0.13.1", default-features = false, features = ["json", "rustls-no-provider", "socks"] } |
| 91 | # NOT "parallel": the Workflow VM stays single-threaded and bridges to the |
| 92 | # multi-thread engine over channels (see crates/workflow-js). |
| 93 | rquickjs = { version = "0.14", features = ["futures"] } |
| 94 | rustls = { version = "0.23.36", default-features = false, features = ["ring", "std", "tls12"] } |
| 95 | rusqlite = { version = "0.43.0", features = ["bundled"] } |
| 96 | serde = { version = "1.0.228", features = ["derive"] } |
| 97 | serde_json = "1.0.149" |
| 98 | # DSH bundle import: event-level parsing so aliases and explicit tags can be refused. |
| 99 | yaml-rust2 = { version = "0.13.0", default-features = false } |
| 100 | semver = "1.0.28" |
| 101 | thiserror = "2.0" |
| 102 | tempfile = "3.27" |
| 103 | tokio = { version = "1.50.0", features = ["fs", "io-util", "io-std", "macros", "net", "process", "rt", "rt-multi-thread", "signal", "sync", "time"] } |
| 104 | toml = "1.0.6" |
| 105 | toml_edit = "0.25.12" |
| 106 | sha2 = "0.11" |
| 107 | tower-http = { version = "0.7", features = ["cors"] } |
| 108 | tracing = "0.1" |
| 109 | gix = { version = "=0.90.0", default-features = false, features = ["sha1", "sha256"] } |
| 110 | tracing-subscriber = { version = "0.3", features = ["env-filter", "fmt"] } |
| 111 | uuid = { version = "1.11", features = ["v4"] } |
| 112 | mimalloc = { version = "0.1", default-features = false } |
| 113 | # Off-by-default alternative to mimalloc behind the `rusty-alloc` feature in |
| 114 | # codewhale-tui / codewhale-cli (#5872): the pure-Rust mimalloc v2.4.5 |
| 115 | # remake — no C compiler, no build script on that path. `rusty_alloc-api` is |
| 116 | # the crate's documented surface; it pulls the `rusty_alloc` core transitively |
| 117 | # at the same version. |
| 118 | rusty_alloc-api = "1.1.6" |
| 119 | |
| 120 | # The everyday `--release` gate (AGENTS.md pre-push build): optimized but |
| 121 | # fast to produce. Shipping artifacts use `--profile dist` below — fat LTO on |
| 122 | # a 680k-line crate belongs in release CI, not in every contributor's loop |
| 123 | # (#5246; community-reported 8–16 minute local release builds, #4991). |
| 124 | # Dev/test carry line tables instead of full debug info. Backtraces still name |
| 125 | # the file and line of every frame — the thing anyone actually reads — but the |
| 126 | # per-variable DWARF that no one inspects without a debugger attached is gone. |
| 127 | # The debug binary was 227 MB and target/debug had grown past 260 GB; those |
| 128 | # links are IO-bound, so the debuginfo is paid on every incremental build. |
| 129 | # Anyone stepping through under lldb can override this locally. |
| 130 | [profile.dev] |
| 131 | debug = "line-tables-only" |
| 132 | |
| 133 | [profile.dev.package.rquickjs-sys] |
| 134 | opt-level = 3 |
| 135 | |
| 136 | [profile.release] |
| 137 | lto = "thin" |
| 138 | strip = true |
| 139 | codegen-units = 16 |
| 140 | |
| 141 | # Shipping profile: exactly the optimization the released binaries have |
| 142 | # always had. Every workflow that uploads a binary to users builds with |
| 143 | # `--profile dist` and collects from `target/**/dist/`. |
| 144 | # NOTE: no `panic = "abort"` here — the TUI's panic supervision |
| 145 | # (catch_unwind/spawn_supervised) needs unwinding so one panicking tool call |
| 146 | # or task fails gracefully instead of aborting the whole session. |
| 147 | [profile.dist] |
| 148 | inherits = "release" |
| 149 | lto = true |
| 150 | strip = true |
| 151 | codegen-units = 1 |
| 152 | |
| 153 | # Patch unicode-width so that width() uses CJK tables when the cjk feature |
| 154 | # is enabled. Vanilla unicode-width 0.2.2 provides width_cjk() as a separate |
| 155 | # method but the original width() always uses non-CJK tables, so Ratatui |
| 156 | # (which calls width() internally) measures ambiguous-width characters |
| 157 | # (circled digits, enclosed alphanumerics) as 1 column. CJK terminals render |
| 158 | # them as 2 columns, causing cell-offset rendering glitches. (#4479) |
| 159 | [patch.crates-io] |
| 160 | unicode-width = { path = "patches/unicode-width-0.2.2" } |
| 161 | # Windows Terminal paste dropped every non-BMP character (emoji): upstream pairs a |
| 162 | # surrogate half with its own key-up record. See patches/crossterm-0.29.0 parse.rs. |
| 163 | # Same change as crossterm-rs/crossterm#1073 (open); drop this once a release carries it. |
| 164 | # Also drops one redundant pair of parentheses and allows upstream warnings, because a |
| 165 | # path crate is built under our `-D warnings`. |
| 166 | crossterm = { path = "patches/crossterm-0.29.0" } |
| 167 |