返回 CodeWhale
Cargo.toml
根目录 / crates / tui / Cargo.toml
1 [package]
2 name = "codewhale-tui"
3 version.workspace = true
4 edition.workspace = true
5 rust-version.workspace = true
6 license.workspace = true
7 repository.workspace = true
8 description = "Terminal UI for open-source and open-weight coding models"
9 autobins = false
10 # crates.io rejects packages over 10 MiB compressed, and this crate's test
11 # sources, extension-host build inputs and dev-only assets push the package
12 # past that cap (0.10.1's upload was refused with HTTP 413 at 11.9 MiB). None
13 # of these are compiled, embedded or read by `cargo build` / `cargo install`;
14 # the repository keeps them for CI, local test runs and the extension-host
15 # build, and only the published package omits them.
16 exclude = [
17 "tests/**",
18 "src/**/tests.rs",
19 "src/**/tests/**",
20 "src/**/*_tests.rs",
21 "src/**/test_cases_*.rs",
22 "src/**/*_legacy.rs",
23 "src/**/*test_support.rs",
24 "src/**/*acceptance.rs",
25 "src/conformance.rs",
26 "src/conformance/**",
27 "src/lib/terminal_mode_test_cases_*.rs",
28 "src/llm_client/mock.rs",
29 "src/skills/catalog_matrix.rs",
30 "src/compaction/survival_contract.rs",
31 "src/compaction/SURVIVAL_CONTRACT.md",
32 "src/compaction/fixtures/**",
33 "src/commands/contract/config_policy_baseline.rs",
34 "src/commands/contract/fixtures/**",
35 "src/commands/fixtures/diagnostics/**",
36 "src/commands/fixtures/*_baseline.md",
37 "src/commands/fixtures/*_baseline.json",
38 "src/pricing/default_coverage_unpriced.json",
39 "src/tui/golden_harness.rs",
40 "src/tui/goldens/**",
41 "assets/mark-*.png",
42 "assets/skills-catalog-matrix.json",
43 "extension-host/test/**",
44 "extension-host/node_modules/**",
45 "extension-host/build.mjs",
46 "extension-host/compile-host.mjs",
47 "extension-host/package-lock.json",
48 "extension-host/scripts/**",
49 "extension-host/src/**/*.ts",
50 "extension-host/src/dsh/dsh-tools-compat.js",
51 "extension-host/dist/agent-presets.mjs",
52 "extension-host/dist/avatars.mjs",
53 "extension-host/dist/builtin-modules.json",
54 "extension-host/dist/protocol.mjs",
55 "extension-host/dist/rpc.mjs",
56 "extension-host/dist/shell-hooks.mjs",
57 "extension-host/dist/skills.mjs",
58 "extension-host/dist/stock-adapters.mjs",
59 ]
60
61 [lints]
62 workspace = true
63
64 [features]
65 default = []
66 long-running-tests = ["codewhale-engine/long-running-tests"]
67 test-thread-scoped-state = ["codewhale-engine/test-thread-scoped-state"]
68
69 [lib]
70 name = "codewhale_tui"
71 path = "src/lib.rs"
72 doctest = false
73
74 [dependencies]
75 # Independent terminal kit, pinned and vendored for reproducible binary builds.
76 codewhale-ratatui = { path = "../../vendor/codewhale-ratatui", version = "0.2.2" }
77 codewhale-sanitize = { path = "../sanitize", version = "0.10.5" }
78 anyhow.workspace = true
79 codewhale-account-cli = { path = "../account-cli", version = "0.10.5" }
80 codewhale-agent-contract = { path = "../agent-contract", version = "0.10.5" }
81 codewhale-app-server = { path = "../app-server", version = "0.10.5" }
82 codewhale-engine = { path = "../engine", version = "0.10.5" }
83 codewhale-config = { path = "../config", version = "0.10.5" }
84 codewhale-cloud-facts = { path = "../cloud-facts", version = "0.10.5" }
85 codewhale-command-contract = { path = "../command-contract", version = "0.10.5" }
86 codewhale-commands = { path = "../commands", version = "0.10.5" }
87 codewhale-core = { path = "../core", version = "0.10.5" }
88 codewhale-execpolicy = { path = "../execpolicy", version = "0.10.5" }
89 codewhale-hooks = { path = "../hooks", 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-notify = { path = "../notify", version = "0.10.5" }
95 codewhale-palette = { path = "../palette", version = "0.10.5" }
96 codewhale-paths = { path = "../paths", version = "0.10.5" }
97 codewhale-protocol = { path = "../protocol", version = "0.10.5" }
98 codewhale-release = { path = "../release", version = "0.10.5" }
99 codewhale-runtime = { path = "../runtime", version = "0.10.5" }
100 codewhale-sandbox = { path = "../sandbox", version = "0.10.5" }
101 codewhale-secrets = { path = "../secrets", version = "0.10.5" }
102 codewhale-telemetry = { path = "../telemetry", version = "0.10.5" }
103 codewhale-dependencies = { path = "../dependencies", version = "0.10.5" }
104 codewhale-lsp = { path = "../lsp", version = "0.10.5" }
105 codewhale-snapshot = { path = "../snapshot", version = "0.10.5" }
106 codewhale-plugins = { path = "../plugins", version = "0.10.5" }
107 codewhale-skill-install = { path = "../skill-install", version = "0.10.5" }
108 codewhale-skills = { path = "../skills", version = "0.10.5" }
109 codewhale-util = { path = "../util", version = "0.10.5" }
110 codewhale-tui-kit = { path = "../tui-kit", version = "0.10.5" }
111 codewhale-error-taxonomy = { path = "../error-taxonomy", version = "0.10.5" }
112 codewhale-tools = { path = "../tools", version = "0.10.5" }
113 codewhale-workflow = { path = "../workflow", version = "0.10.5" }
114 async-stream = "0.3.6"
115 async-trait.workspace = true
116 base64 = "0.23.1"
117 clap.workspace = true
118 colored = "3.0.0"
119 crossterm = "0.29"
120 dotenvy = "0.15.7"
121 dirs.workspace = true
122 futures-util = "0.3.31"
123 # No ratatui-core pin: ColorCompatBackend answers `get_cursor_position()`
124 # from tracked state (ratatui#2640's recommended workaround), so the CPR query
125 # inside `Terminal::clear()` no longer races the input loop. See
126 # `tui/color_compat.rs`.
127 ratatui = { version = "=0.30.2", features = ["unstable-rendered-line-info"] }
128 tachyonfx = { version = "=0.25.1", default-features = false, features = ["std-duration"] }
129 regex = "1.11"
130 reqwest = { workspace = true, features = ["blocking", "stream", "form", "http2"] }
131 rquickjs.workspace = true
132 rustls.workspace = true
133 ansi-to-tui = { version = "8.0.1", default-features = false }
134 serde.workspace = true
135 serde_json = { workspace = true, features = ["preserve_order", "raw_value"] }
136 toml.workspace = true
137 toml_edit.workspace = true
138 tokio.workspace = true
139 tokio-util = { version = "0.7.16", features = ["io"] }
140 unicode-width = "0.2"
141 unicode-segmentation = "1.12"
142 urlencoding = "2.1"
143 # Structcopy uses the URL parser directly so its portable closure needs no HTTP client.
144 url = "2.5"
145 uuid.workspace = true
146 chrono.workspace = true
147 tempfile.workspace = true
148 tracing.workspace = true
149 tracing-subscriber.workspace = true
150 wait-timeout = "0.2"
151 webbrowser = "1.0"
152 shlex = "2.0.1"
153 ignore = "0.4"
154 image = { version = "0.25", default-features = false, features = ["png", "jpeg", "webp", "gif"] }
155 htmd = "0.5.4"
156 parking_lot = "0.12"
157 sha2.workspace = true
158 semver.workspace = true
159 codewhale-localization = { path = "../localization", version = "0.10.5" }
160
161 [build-dependencies]
162 codewhale-build-support = { path = "../build-support", version = "0.10.5" }
163
164 [dev-dependencies]
165 codewhale-engine = { path = "../engine", version = "0.10.5", features = ["test-support"] }
166 codewhale-skills = { path = "../skills", version = "0.10.5", features = ["test-support"] }
167 codewhale-tui-kit = { path = "../tui-kit", version = "0.10.5", features = ["test-support"] }
168 codewhale-dependencies = { path = "../dependencies", version = "0.10.5", features = ["test-support"] }
169 codewhale-error-taxonomy = { path = "../error-taxonomy", version = "0.10.5", features = ["test-support"] }
170 codewhale-lsp = { path = "../lsp", version = "0.10.5", features = ["test-support"] }
171 codewhale-snapshot = { path = "../snapshot", version = "0.10.5", features = ["test-support"] }
172 codewhale-notify = { path = "../notify", version = "0.10.5", features = ["test-thread-scoped-state"] }
173 codewhale-config = { path = "../config", version = "0.10.5", features = ["schema", "test-support"] }
174 codewhale-agent-contract = { path = "../agent-contract", version = "0.10.5", features = [
175 "test-support",
176 ] }
177 codewhale-runtime = { path = "../runtime", version = "0.10.5", features = [
178 "test-support",
179 "test-thread-scoped-state",
180 ] }
181 codewhale-sandbox = { path = "../sandbox", version = "0.10.5", features = ["test-support"] }
182 codewhale-plugins = { path = "../plugins", version = "0.10.5", features = ["test-support"] }
183 codewhale-skill-install = { path = "../skill-install", version = "0.10.5", features = ["test-support"] }
184 codewhale-util = { path = "../util", version = "0.10.5", features = ["test-support"] }
185 codewhale-models = { path = "../models", version = "0.10.5", features = [
186 "test-support",
187 ] }
188 cucumber = "0.23.0"
189 axum.workspace = true
190 wiremock = "0.6"
191 tiny_http = "0.12"
192 rio-vt = "0.5.1"
193 tar = "0.4"
194 flate2 = "1.1"
195 codewhale-app-server = { path = "../app-server", version = "0.10.5", features = ["test-support"] }
196
197 [target.'cfg(all(unix, not(target_env = "ohos")))'.dependencies]
198 tui-term = { version = "=0.3.4", default-features = false, features = ["vt100"] }
199
200 [target.'cfg(unix)'.dependencies]
201 libc = "0.2"
202
203 [target.'cfg(windows)'.dependencies]
204 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"] }
205
206
207 [target.'cfg(any(target_os = "macos", target_os = "windows", all(target_os = "linux", not(target_env = "ohos"))))'.dependencies]
208 arboard = { version = "3.4", features = ["wayland-data-control"] }
209
210 [target.'cfg(not(target_env = "ohos"))'.dependencies]
211 portable-pty = "0.9"
212
213 [target.'cfg(target_os = "macos")'.dependencies]
214 objc2 = "0.6.3"
215 objc2-foundation = { version = "0.3.2", default-features = false, features = ["std", "NSArray", "NSDictionary", "NSError", "NSObject", "NSString", "NSURL"] }
216
217 [target.'cfg(target_os = "windows")'.dependencies]
218 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"] }
219
219 lines TOML