Skip to content

Commit 36b46fc

Browse files
authored
Fix Windows startup with untrusted external auth (#126)
* Add dev cargo feature profiles * Gate dev-only binaries behind feature * Split build support into crate * Move TUI keybind helpers into tui-core * Fix Windows startup server readiness * Fix auto auth bootstrap with untrusted external sources
1 parent 6f15a8e commit 36b46fc

22 files changed

Lines changed: 2011 additions & 1599 deletions

.github/workflows/windows-smoke.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ jobs:
8282
'build_shell_command_uses_cmd_and_executes_command',
8383
'pipe_name_is_stable_and_normalizes_case_and_separators',
8484
'pipe_name_falls_back_when_stem_is_empty',
85-
'stream_pair_round_trips_bytes'
85+
'stream_pair_round_trips_bytes',
86+
'auto_provider_noninteractive_skips_untrusted_external_auth_instead_of_blocking'
8687
)
8788
8889
foreach ($testName in $tests) {

Cargo.lock

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name = "jcode"
33
version = "0.11.4"
44
description = "Possibly the greatest coding agent ever built — blazing-fast TUI, multi-model, swarm coordination, 30+ tools"
55
edition = "2024"
6+
autobins = false
67

78
[workspace]
89
members = [
@@ -15,6 +16,7 @@ members = [
1516
"crates/jcode-pdf",
1617
"crates/jcode-background-types",
1718
"crates/jcode-batch-types",
19+
"crates/jcode-build-support",
1820
"crates/jcode-config-types",
1921
"crates/jcode-core",
2022
"crates/jcode-memory-types",
@@ -60,6 +62,21 @@ path = "src/bin/test_api.rs"
6062
name = "jcode-harness"
6163
path = "src/bin/harness.rs"
6264

65+
[[bin]]
66+
name = "session_memory_bench"
67+
path = "src/bin/session_memory_bench.rs"
68+
required-features = ["dev-bins"]
69+
70+
[[bin]]
71+
name = "mermaid_side_panel_probe"
72+
path = "src/bin/mermaid_side_panel_probe.rs"
73+
required-features = ["dev-bins"]
74+
75+
[[bin]]
76+
name = "tui_bench"
77+
path = "src/bin/tui_bench.rs"
78+
required-features = ["dev-bins"]
79+
6380
[dependencies]
6481
# Memory allocator (reduces fragmentation for long-running server)
6582
tikv-jemallocator = { version = "0.6", features = ["unprefixed_malloc_on_supported_platforms"], optional = true }
@@ -146,6 +163,7 @@ unicode-width = "0.2" # Unicode character display width
146163
jcode-pdf = { path = "crates/jcode-pdf", optional = true }
147164
jcode-background-types = { path = "crates/jcode-background-types" }
148165
jcode-batch-types = { path = "crates/jcode-batch-types" }
166+
jcode-build-support = { path = "crates/jcode-build-support" }
149167
jcode-config-types = { path = "crates/jcode-config-types" }
150168
jcode-core = { path = "crates/jcode-core" }
151169
jcode-memory-types = { path = "crates/jcode-memory-types" }
@@ -167,6 +185,7 @@ qr2term = "0.3.3"
167185

168186
[features]
169187
default = ["embeddings", "pdf"]
188+
dev-bins = []
170189
jemalloc = [
171190
"dep:tikv-jemallocator",
172191
"dep:tikv-jemalloc-ctl",
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[package]
2+
name = "jcode-build-support"
3+
version = "0.1.0"
4+
edition = "2024"
5+
publish = false
6+
7+
[dependencies]
8+
anyhow = "1"
9+
chrono = { version = "0.4", features = ["serde"] }
10+
jcode-core = { path = "../jcode-core" }
11+
jcode-selfdev-types = { path = "../jcode-selfdev-types" }
12+
jcode-storage = { path = "../jcode-storage" }
13+
serde = { version = "1", features = ["derive"] }
14+
serde_json = "1"
15+
tempfile = "3"
16+
17+
[dev-dependencies]
18+
tempfile = "3"

0 commit comments

Comments
 (0)