| 1 | [package] |
| 2 | name = "codewhale-engine" |
| 3 | version.workspace = true |
| 4 | edition.workspace = true |
| 5 | rust-version.workspace = true |
| 6 | license.workspace = true |
| 7 | repository.workspace = true |
| 8 | description = "Codewhale engine: turn loop, tools, agents, context, sessions and model clients" |
| 9 | # Test sources, extension-host build inputs and dev-only assets are kept for |
| 10 | # CI and local runs; the published package omits them (crates.io 10 MiB cap). |
| 11 | exclude = [ |
| 12 | "tests/**", |
| 13 | "src/**/tests.rs", |
| 14 | "src/**/tests/**", |
| 15 | "src/**/*_tests.rs", |
| 16 | "src/**/test_cases_*.rs", |
| 17 | "src/**/*_legacy.rs", |
| 18 | "src/**/*test_support.rs", |
| 19 | "src/**/*acceptance.rs", |
| 20 | "src/llm_client/mock.rs", |
| 21 | "src/compaction/survival_contract.rs", |
| 22 | "src/compaction/SURVIVAL_CONTRACT.md", |
| 23 | "src/compaction/fixtures/**", |
| 24 | "src/pricing/default_coverage_unpriced.json", |
| 25 | "extension-host/test/**", |
| 26 | "extension-host/node_modules/**", |
| 27 | "extension-host/build.mjs", |
| 28 | "extension-host/compile-host.mjs", |
| 29 | "extension-host/package-lock.json", |
| 30 | "extension-host/scripts/**", |
| 31 | "extension-host/src/**/*.ts", |
| 32 | "extension-host/src/dsh/dsh-tools-compat.js", |
| 33 | "extension-host/dist/agent-presets.mjs", |
| 34 | "extension-host/dist/avatars.mjs", |
| 35 | "extension-host/dist/builtin-modules.json", |
| 36 | "extension-host/dist/protocol.mjs", |
| 37 | "extension-host/dist/rpc.mjs", |
| 38 | "extension-host/dist/shell-hooks.mjs", |
| 39 | "extension-host/dist/skills.mjs", |
| 40 | "extension-host/dist/stock-adapters.mjs", |
| 41 | ] |
| 42 | |
| 43 | [lints] |
| 44 | workspace = true |
| 45 | |
| 46 | [features] |
| 47 | default = [] |
| 48 | # Test-only behavior (sealed homes, mock model client, no keychain) for this |
| 49 | # crate's own tests and for dependents' tests that drive engine code. |
| 50 | test-support = [ |
| 51 | "codewhale-runtime/test-support", |
| 52 | "codewhale-runtime/test-thread-scoped-state", |
| 53 | "codewhale-config/test-support", |
| 54 | "codewhale-agent-contract/test-support", |
| 55 | "codewhale-dependencies/test-support", |
| 56 | "codewhale-error-taxonomy/test-support", |
| 57 | "codewhale-lsp/test-support", |
| 58 | "codewhale-models/test-support", |
| 59 | "codewhale-plugins/test-support", |
| 60 | "codewhale-sandbox/test-support", |
| 61 | "codewhale-skill-install/test-support", |
| 62 | "codewhale-skills/test-support", |
| 63 | "codewhale-snapshot/test-support", |
| 64 | "codewhale-util/test-support", |
| 65 | "dep:wiremock", |
| 66 | ] |
| 67 | long-running-tests = [] |
| 68 | test-thread-scoped-state = [] |
| 69 | |
| 70 | [lib] |
| 71 | name = "codewhale_engine" |
| 72 | path = "src/lib.rs" |
| 73 | doctest = false |
| 74 | |
| 75 | [dependencies] |
| 76 | rusqlite.workspace = true |
| 77 | agent-client-protocol.workspace = true |
| 78 | http = "1.5" |
| 79 | codewhale-account-cli = { path = "../account-cli", version = "0.10.5" } |
| 80 | codewhale-app-server-protocol = { path = "../app-server-protocol", version = "0.10.5" } |
| 81 | codewhale-sanitize = { path = "../sanitize", version = "0.10.5" } |
| 82 | codewhale-memory = { path = "../memory", version = "0.10.5" } |
| 83 | anyhow.workspace = true |
| 84 | codewhale-agent-contract = { path = "../agent-contract", version = "0.10.5" } |
| 85 | codewhale-config = { path = "../config", version = "0.10.5" } |
| 86 | codewhale-command-contract = { path = "../command-contract", version = "0.10.5" } |
| 87 | codewhale-commands = { path = "../commands", version = "0.10.5" } |
| 88 | codewhale-core = { path = "../core", version = "0.10.5" } |
| 89 | codewhale-execpolicy = { path = "../execpolicy", version = "0.10.5" } |
| 90 | codewhale-lane = { path = "../lane", version = "0.10.5" } |
| 91 | codewhale-mcp = { path = "../mcp", version = "0.10.5" } |
| 92 | codewhale-models = { path = "../models", version = "0.10.5" } |
| 93 | codewhale-net = { path = "../net", version = "0.10.5" } |
| 94 | codewhale-paths = { path = "../paths", version = "0.10.5" } |
| 95 | codewhale-protocol = { path = "../protocol", version = "0.10.5" } |
| 96 | codewhale-release = { path = "../release", version = "0.10.5" } |
| 97 | codewhale-runtime = { path = "../runtime", version = "0.10.5" } |
| 98 | codewhale-sandbox = { path = "../sandbox", version = "0.10.5" } |
| 99 | codewhale-secrets = { path = "../secrets", version = "0.10.5" } |
| 100 | codewhale-telemetry = { path = "../telemetry", version = "0.10.5" } |
| 101 | codewhale-dependencies = { path = "../dependencies", version = "0.10.5" } |
| 102 | codewhale-lsp = { path = "../lsp", version = "0.10.5" } |
| 103 | codewhale-repl = { path = "../repl", version = "0.10.5" } |
| 104 | codewhale-snapshot = { path = "../snapshot", version = "0.10.5" } |
| 105 | codewhale-plugins = { path = "../plugins", version = "0.10.5" } |
| 106 | codewhale-skill-install = { path = "../skill-install", version = "0.10.5" } |
| 107 | codewhale-skills = { path = "../skills", version = "0.10.5" } |
| 108 | codewhale-util = { path = "../util", version = "0.10.5" } |
| 109 | codewhale-error-taxonomy = { path = "../error-taxonomy", version = "0.10.5" } |
| 110 | codewhale-tools = { path = "../tools", version = "0.10.5" } |
| 111 | codewhale-workflow = { path = "../workflow", version = "0.10.5" } |
| 112 | codewhale-workflow-js = { path = "../workflow-js", version = "0.10.5" } |
| 113 | async-stream = "0.3.6" |
| 114 | async-trait.workspace = true |
| 115 | base64 = "0.23.1" |
| 116 | clap.workspace = true |
| 117 | encoding_rs.workspace = true |
| 118 | fd-lock = "4.0.4" |
| 119 | dirs.workspace = true |
| 120 | futures-util = "0.3.31" |
| 121 | oauth2 = { version = "5", default-features = false } |
| 122 | regex = "1.11" |
| 123 | reqwest = { workspace = true, features = ["blocking", "stream", "form", "http2"] } |
| 124 | rmcp = { version = "3.9.0", default-features = false, features = ["auth", "client", "server", "transport-io"] } |
| 125 | rustls.workspace = true |
| 126 | similar = { version = "3", features = ["unicode"] } |
| 127 | serde.workspace = true |
| 128 | serde_json = { workspace = true, features = ["preserve_order", "raw_value"] } |
| 129 | shellexpand = "3" |
| 130 | # Grammar-exact Rust parsing for the post-edit syntax gate (#6204). `syn` is |
| 131 | # already in the lockfile as a proc-macro build dependency; this reuses that |
| 132 | # same version rather than vendoring a second parser (#6151). `span-locations` |
| 133 | # is what turns a parse failure into the `line:column` the model needs — the |
| 134 | # feature is inert without it. |
| 135 | syn = { version = "3.0.3", default-features = false, features = ["full", "parsing"] } |
| 136 | proc-macro2 = { version = "1.0.107", features = ["span-locations"] } |
| 137 | toml.workspace = true |
| 138 | toml_edit.workspace = true |
| 139 | tokio.workspace = true |
| 140 | tokio-util = { version = "0.7.16", features = ["io"] } |
| 141 | unicode-width = "0.2" |
| 142 | unicode-normalization = "0.1" |
| 143 | urlencoding = "2.1" |
| 144 | # Structcopy uses the URL parser directly so its portable closure needs no HTTP client. |
| 145 | url = "2.5" |
| 146 | uuid.workspace = true |
| 147 | chrono.workspace = true |
| 148 | tempfile.workspace = true |
| 149 | thiserror.workspace = true |
| 150 | tracing.workspace = true |
| 151 | tracing-subscriber.workspace = true |
| 152 | wait-timeout = "0.2" |
| 153 | webbrowser = "1.0" |
| 154 | shlex = "2.0.1" |
| 155 | globset = "0.4" |
| 156 | ignore = "0.4" |
| 157 | image = { version = "0.25", default-features = false, features = ["png", "jpeg", "webp", "gif"] } |
| 158 | # Already a regular dependency of codewhale-workflow-js (so already linked into |
| 159 | # this binary); the extension host validates tool input against the schema the |
| 160 | # plugin registered with it. |
| 161 | jsonschema.workspace = true |
| 162 | htmd = "0.5.4" |
| 163 | hex = "0.4" |
| 164 | # lru >= 0.18.2 fixes RUSTSEC-2026-0253 (panic-unsafe `pop()`). |
| 165 | lru = "0.19" |
| 166 | parking_lot = "0.12" |
| 167 | tar = "0.4" |
| 168 | # Vendored static liblzma keeps the full-fidelity session archive export |
| 169 | # (`session_export`) hermetic on every release target; no system xz headers. |
| 170 | # liblzma is the maintained, API-compatible continuation of xz2. |
| 171 | liblzma = { version = "0.4", features = ["static"] } |
| 172 | sha2.workspace = true |
| 173 | # Reuse the locked cryptographic implementation for exact-call user decisions. |
| 174 | ring = "0.17" |
| 175 | codewhale-localization = { path = "../localization", version = "0.10.5" } |
| 176 | codewhale-ratatui = { path = "../../vendor/codewhale-ratatui", version = "0.2.2" } |
| 177 | shell-words = "1.1.1" |
| 178 | |
| 179 | wiremock = { version = "0.6", optional = true } |
| 180 | |
| 181 | [build-dependencies] |
| 182 | codewhale-build-support = { path = "../build-support", version = "0.10.5" } |
| 183 | |
| 184 | [dev-dependencies] |
| 185 | agent-client-protocol-schema.workspace = true |
| 186 | tokio = { workspace = true, features = ["test-util"] } |
| 187 | codewhale-app-server-protocol = { path = "../app-server-protocol", version = "0.10.5", features = ["schema"] } |
| 188 | codewhale-skills = { path = "../skills", version = "0.10.5", features = ["test-support"] } |
| 189 | codewhale-dependencies = { path = "../dependencies", version = "0.10.5", features = ["test-support"] } |
| 190 | codewhale-error-taxonomy = { path = "../error-taxonomy", version = "0.10.5", features = ["test-support"] } |
| 191 | codewhale-lsp = { path = "../lsp", version = "0.10.5", features = ["test-support"] } |
| 192 | codewhale-snapshot = { path = "../snapshot", version = "0.10.5", features = ["test-support"] } |
| 193 | codewhale-config = { path = "../config", version = "0.10.5", features = ["schema", "test-support"] } |
| 194 | codewhale-agent-contract = { path = "../agent-contract", version = "0.10.5", features = [ |
| 195 | "test-support", |
| 196 | ] } |
| 197 | codewhale-runtime = { path = "../runtime", version = "0.10.5", features = [ |
| 198 | "test-support", |
| 199 | "test-thread-scoped-state", |
| 200 | ] } |
| 201 | codewhale-sandbox = { path = "../sandbox", version = "0.10.5", features = ["test-support"] } |
| 202 | codewhale-repl = { path = "../repl", version = "0.10.5", features = ["test-support"] } |
| 203 | codewhale-plugins = { path = "../plugins", version = "0.10.5", features = ["test-support"] } |
| 204 | codewhale-skill-install = { path = "../skill-install", version = "0.10.5", features = ["test-support"] } |
| 205 | codewhale-util = { path = "../util", version = "0.10.5", features = ["test-support"] } |
| 206 | codewhale-models = { path = "../models", version = "0.10.5", features = [ |
| 207 | "test-support", |
| 208 | ] } |
| 209 | wiremock = "0.6" |
| 210 | axum.workspace = true |
| 211 | schemars = { version = "1.2.1", features = ["derive", "preserve_order"] } |
| 212 | |
| 213 | [target.'cfg(unix)'.dependencies] |
| 214 | libc = "0.2" |
| 215 | |
| 216 | [target.'cfg(windows)'.dependencies] |
| 217 | windows-sys = { version = "0.61.2", features = ["Wdk_Storage_FileSystem", "Win32_System_IO", "Win32_Foundation", "Win32_Security", "Win32_Security_Authorization", "Win32_Security_Isolation", "Win32_Storage_FileSystem", "Win32_System_LibraryLoader", "Win32_System_Pipes", "Win32_System_Threading", "Win32_System_SystemServices", "Win32_System_WindowsProgramming"] } |
| 218 | |
| 219 | |
| 220 | [target.'cfg(not(target_env = "ohos"))'.dependencies] |
| 221 | portable-pty = "0.9" |
| 222 | |
| 223 | [target.'cfg(target_os = "macos")'.dependencies] |
| 224 | objc2 = "0.6.3" |
| 225 | objc2-foundation = { version = "0.3.2", default-features = false, features = ["std", "NSArray", "NSDictionary", "NSError", "NSObject", "NSString", "NSURL"] } |
| 226 | |
| 227 | [target.'cfg(target_os = "windows")'.dependencies] |
| 228 | windows = { version = "0.62", features = ["Win32_Foundation", "Win32_Security", "Win32_Security_Authorization", "Win32_Storage_FileSystem", "Win32_System_Console", "Win32_System_Diagnostics_ToolHelp", "Win32_System_Environment", "Win32_System_JobObjects", "Win32_System_Registry", "Win32_System_Threading", "Win32_UI_WindowsAndMessaging"] } |
| 229 |