mirror of
https://github.com/codewhale-hq/Codewhale.git
synced 2026-11-07 10:36:05 -10:00
Move the Engine band, extension host, fixtures and shared test support into codewhale-engine; wire TUI/CLI to that owner. Preserve human-decision construction boundaries and lower reusable test helpers. Remove unused copied dependencies and repair path-based guards, scripts and crate maps. Correct the blocking scanner external-module scope leak; raised counts equal the corrected pre-move source. Refresh embedded built-in hashes after path-only bundle regeneration. Restore the provider-free prompt budget to the exact pre-b984e31290 macOS bytes and representative identities; tool catalogs are unchanged. Portable prompt-fixture pinning remains follow-up work. Local validation: Engine/TUI/CLI clippy --tests --no-deps -D warnings passed with the existing allow-list; production CLI check passed; fmt passed. Focused native run: 705 passed / 83 failed initially; after hash/path repairs, 81 affected cases plus 2 existing build-relocation cases passed (83/83). Thus 786/788 original cases pass; 2 compiled-release-image cases lack input and are not qualified. Frozen input inventories unchanged. macOS test-link unwind-table warnings remain. Four metric tests pass; all 55 budgets pass. Host Node: 413 pass, 7 skip; Bun: 414 pass, 6 skip. Existing scanner checks: 34 + 33 pass. Compiled-delivery synthetic fixtures: 7 pass. Web: 42 pass. Import, blocking, dead-code, coarse-map, version and facts checks pass. CW-7701. No hosted CI, provider call, release build or publication. Stage A part 2 and the old App Server/ratatui dependencies remain separate.
162 lines
6.2 KiB
TOML
162 lines
6.2 KiB
TOML
[workspace]
|
||
members = [
|
||
"crates/account-cli",
|
||
"crates/agent",
|
||
"crates/agent-contract",
|
||
"crates/app-server",
|
||
"crates/build-support",
|
||
"crates/cli",
|
||
"crates/cloud-facts",
|
||
"crates/command-contract",
|
||
"crates/commands",
|
||
"crates/config",
|
||
"crates/core",
|
||
"crates/engine",
|
||
"crates/error-taxonomy",
|
||
"crates/execpolicy",
|
||
"crates/hooks",
|
||
"crates/lane",
|
||
"crates/localization",
|
||
"crates/mcp",
|
||
"crates/memory",
|
||
"crates/models",
|
||
"crates/net",
|
||
"crates/notify",
|
||
"crates/palette",
|
||
"crates/paths",
|
||
"crates/plugins",
|
||
"crates/protocol",
|
||
"crates/release",
|
||
"crates/runtime",
|
||
"crates/sandbox",
|
||
"crates/secrets",
|
||
"crates/skill-install",
|
||
"crates/skills",
|
||
"crates/sanitize",
|
||
"crates/state",
|
||
"crates/telemetry",
|
||
"crates/tools",
|
||
"crates/tui",
|
||
"crates/tui-kit",
|
||
"crates/util",
|
||
"crates/dependencies",
|
||
"crates/snapshot",
|
||
"crates/lsp",
|
||
"crates/repl",
|
||
"crates/workflow",
|
||
"crates/workflow-js",
|
||
"tests/portable-session",
|
||
"tests/portable-config",
|
||
"tests/portable-core-navigation",
|
||
]
|
||
exclude = ["vendor/codewhale-ratatui"]
|
||
default-members = ["crates/cli"]
|
||
resolver = "2"
|
||
|
||
[workspace.package]
|
||
version = "0.10.2"
|
||
edition = "2024"
|
||
# The floor is what CI's MSRV job builds (1.89): Rust 1.88 stabilized the
|
||
# `let_chains` the codebase relies on, but a locked dependency
|
||
# (serde-saphyr) needs 1.89. Cargo enforces this so users on older toolchains
|
||
# get a clear "package requires rustc 1.89+" error.
|
||
rust-version = "1.89"
|
||
license = "MIT"
|
||
repository = "https://github.com/codewhale-hq/CodeWhale"
|
||
|
||
# Record the policy CI already applies via `RUSTFLAGS: -Dwarnings`.
|
||
# Member crates opt in with `[lints] workspace = true`. This does not add
|
||
# new lints; it makes the existing gate visible in the manifest so
|
||
# `cargo check` without extra flags matches CI.
|
||
[workspace.lints.rust]
|
||
warnings = "deny"
|
||
|
||
[workspace.dependencies]
|
||
anyhow = "1.0.100"
|
||
async-trait = "0.1.89"
|
||
axum = { version = "0.8.5", features = ["json", "ws"] }
|
||
chrono = { version = "0.4.43", features = ["serde"] }
|
||
clap = { version = "4.5.54", features = ["derive"] }
|
||
clap_complete = "4.5"
|
||
dirs = "7.0.0"
|
||
encoding_rs = "0.8.35"
|
||
# Users: crates/workflow-js and the extension host in crates/tui (schemaui is
|
||
# gone); keep the graph on one jsonschema/jsonschema-regex/referencing/
|
||
# fancy-regex stack.
|
||
jsonschema = { version = "0.57", default-features = false }
|
||
libc = "0.2"
|
||
reqwest = { version = "0.13.1", default-features = false, features = ["json", "rustls-no-provider", "socks"] }
|
||
# NOT "parallel": the Workflow VM stays single-threaded and bridges to the
|
||
# multi-thread engine over channels (see crates/workflow-js).
|
||
rquickjs = { version = "0.14", features = ["futures"] }
|
||
rustls = { version = "0.23.36", default-features = false, features = ["ring", "std", "tls12"] }
|
||
rusqlite = { version = "0.40.2", features = ["bundled"] }
|
||
serde = { version = "1.0.228", features = ["derive"] }
|
||
serde_json = "1.0.149"
|
||
# DSH bundle import: event-level parsing so aliases and explicit tags can be refused.
|
||
yaml-rust2 = { version = "0.13.0", default-features = false }
|
||
semver = "1.0.28"
|
||
thiserror = "2.0"
|
||
tempfile = "3.27"
|
||
tokio = { version = "1.50.0", features = ["fs", "io-util", "io-std", "macros", "net", "process", "rt", "rt-multi-thread", "signal", "sync", "time"] }
|
||
toml = "1.0.6"
|
||
toml_edit = "0.25.12"
|
||
sha2 = "0.11"
|
||
tower-http = { version = "0.7", features = ["cors"] }
|
||
tracing = "0.1"
|
||
tracing-appender = "0.2"
|
||
tracing-subscriber = { version = "0.3", features = ["env-filter", "fmt"] }
|
||
uuid = { version = "1.11", features = ["v4"] }
|
||
mimalloc = { version = "0.1", default-features = false }
|
||
# Off-by-default alternative to mimalloc behind the `rusty-alloc` feature in
|
||
# codewhale-tui / codewhale-cli (#5872): the pure-Rust mimalloc v2.4.5
|
||
# remake — no C compiler, no build script on that path. `rusty_alloc-api` is
|
||
# the crate's documented surface; it pulls the `rusty_alloc` core transitively
|
||
# at the same version.
|
||
rusty_alloc-api = "1.1.6"
|
||
|
||
# The everyday `--release` gate (AGENTS.md pre-push build): optimized but
|
||
# fast to produce. Shipping artifacts use `--profile dist` below — fat LTO on
|
||
# a 680k-line crate belongs in release CI, not in every contributor's loop
|
||
# (#5246; community-reported 8–16 minute local release builds, #4991).
|
||
# Dev/test carry line tables instead of full debug info. Backtraces still name
|
||
# the file and line of every frame — the thing anyone actually reads — but the
|
||
# per-variable DWARF that no one inspects without a debugger attached is gone.
|
||
# The debug binary was 227 MB and target/debug had grown past 260 GB; those
|
||
# links are IO-bound, so the debuginfo is paid on every incremental build.
|
||
# Anyone stepping through under lldb can override this locally.
|
||
[profile.dev]
|
||
debug = "line-tables-only"
|
||
|
||
[profile.release]
|
||
lto = "thin"
|
||
strip = true
|
||
codegen-units = 16
|
||
|
||
# Shipping profile: exactly the optimization the released binaries have
|
||
# always had. Every workflow that uploads a binary to users builds with
|
||
# `--profile dist` and collects from `target/**/dist/`.
|
||
# NOTE: no `panic = "abort"` here — the TUI's panic supervision
|
||
# (catch_unwind/spawn_supervised) needs unwinding so one panicking tool call
|
||
# or task fails gracefully instead of aborting the whole session.
|
||
[profile.dist]
|
||
inherits = "release"
|
||
lto = true
|
||
strip = true
|
||
codegen-units = 1
|
||
|
||
# Patch unicode-width so that width() uses CJK tables when the cjk feature
|
||
# is enabled. Vanilla unicode-width 0.2.2 provides width_cjk() as a separate
|
||
# method but the original width() always uses non-CJK tables, so Ratatui
|
||
# (which calls width() internally) measures ambiguous-width characters
|
||
# (circled digits, enclosed alphanumerics) as 1 column. CJK terminals render
|
||
# them as 2 columns, causing cell-offset rendering glitches. (#4479)
|
||
[patch.crates-io]
|
||
unicode-width = { path = "patches/unicode-width-0.2.2" }
|
||
# Windows Terminal paste dropped every non-BMP character (emoji): upstream pairs a
|
||
# surrogate half with its own key-up record. See patches/crossterm-0.29.0 parse.rs.
|
||
# Same change as crossterm-rs/crossterm#1073 (open); drop this once a release carries it.
|
||
# Also drops one redundant pair of parentheses and allows upstream warnings, because a
|
||
# path crate is built under our `-D warnings`.
|
||
crossterm = { path = "patches/crossterm-0.29.0" }
|