-
Notifications
You must be signed in to change notification settings - Fork 161
Expand file tree
/
Copy pathCargo.toml
More file actions
485 lines (404 loc) · 14.5 KB
/
Copy pathCargo.toml
File metadata and controls
485 lines (404 loc) · 14.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
[package]
name = "libra"
version = "0.19.35"
edition = "2024"
license = "MIT"
description = "AI agent-native version control system with Git on-disk compatibility, SQLite-backed metadata, and tiered cloud storage"
repository = "https://github.com/libra-tools/libra"
homepage = "https://github.com/libra-tools/libra"
authors = ["Libra Tools"]
keywords = ["git", "version-control", "ai", "agent", "vcs"]
categories = ["command-line-utilities", "development-tools"]
readme = "README.md"
[features]
default = []
worktree-fuse = [] # Unix FUSE-backed worktree commands (optional)
test-network = [] # L2: tests requiring outbound network but no secrets
test-live-ai = [] # L3: tests calling real LLM APIs
test-live-cloud = [] # L3: tests hitting real D1/R2 endpoints
test-provider = [] # deterministic hidden provider for local TUI automation tests
test-live-agent = [] # plan-20260713 live agent gate: real local claude/codex/opencode CLI data (dev machine acceptance; env LIBRA_RUN_LIVE_AGENT_GATE=1)
test-upgrade = [] # plan-20260714 §A.11: auto-upgrade test hooks (trust-root/endpoint injection; requires LIBRA_TEST=1 at runtime; release workflow must NEVER enable this feature)
fastcdc = [] # lore.md §6: default-OFF FastCDC LFS media chunking client substrate (no new deps; reuses ring sha256; server protocol frozen)
subagent-scaffold = [] # CEX-S2-10 schema-only scaffold (Step 2 sub-agent contracts; gated on CP-4 in production — see docs/development/tracing/agent.md "Step 2 audit closure")
otlp = ["dep:opentelemetry", "dep:opentelemetry_sdk", "dep:opentelemetry-otlp", "dep:tracing-opentelemetry"] # lore.md 1.7: OTLP trace export (default binary unaffected)
keyring = ["dep:keyring"] # lore.md 2.7: OS-keyring auth backend (release builds enable it; default dev builds unaffected)
[dependencies]
uuid = { version = "1.23.1", features = ["v4", "v5", "v7"] }
git-internal = "0.8.3"
anyhow = "1.0.102"
byte-unit = "5.2.0"
byteorder = "1.5.0"
bytes = "1.11.1"
object_store = { version = "0.13.2", features = ["aws", "azure", "gcp", "http"] }
async-trait = "0.1.89"
chrono = { version = "0.4.44", features = ["serde"] }
clap = { version = "4.6.1", features = ["derive"] }
clap_complete = "4.6.6"
colored = "3.1.1"
fastrand = "2.3.0"
flate2 = "1.1.9" # add features = ["zlib"] if slow
tar = "0.4"
zip = "0.6"
bzip2 = "0.6"
futures = "0.3.32"
futures-util = "0.3.32"
hex = "0.4.3"
http = "1.4.0"
ignore = "0.4.25"
indicatif = "0.18.4"
lazy_static = "1.5.0"
lru-mem = "0.3.0"
once_cell = "1.21.4"
openssl = { version = "0.10.78", features = ["vendored"] }
regex = "1.12.3"
reqwest = { version = "0.13.2", default-features = false, features = [
"stream",
"json",
"query",
"rustls"
]}
ring = "0.17.14"
rpassword = "7.4.0"
scopeguard = "1.2.0"
sea-orm = { version = "1.1.20", features = [
"sqlx-sqlite",
"runtime-tokio-rustls",
"macros",
]}
serde = { version = "1.0.228", features = ["derive"] }
serde_json = "1.0.149"
sha1 = "0.11.0"
sha2 = "0.10"
thiserror = "2.0.18"
tokio = { version = "1.52.1", features = [
"io-util",
"net",
"rt-multi-thread",
"rt",
"macros",
"process",
"sync",
"time"
]}
tokio-util = { version = "0.7.18", features = ["io"] }
tokio-tungstenite = { version = "0.29.0", features = ["native-tls"] }
toml = "0.8.23"
tracing = "0.1.44"
tracing-subscriber = { version = "0.3.23", features = ["env-filter"] }
tracing-appender = "0.2.3"
url = "2.5.8"
walkdir = "2.5.0"
wax = "0.7.0"
diffs = "0.5.1"
similar = "3.1.1"
path-absolutize = "3.1.1"
infer = "0.19.0"
pathdiff = "0.2.3"
crc32fast = "1.5.0"
dirs = "6.0.0"
dagrs = "0.8.1"
rig-core = { version = "0.35.0", default-features = false, features = ["rmcp", "reqwest", "rustls"] }
rmcp = { version = "1.5.0", features = [
"macros",
"transport-streamable-http-server",
"transport-streamable-http-server-session",
"transport-io"
] }
hyper-util = { version = "0.1.20", features = ["full"] }
axum = "0.8.9"
tower = "0.5.3"
tower-http = { version = "0.6.8", features = ["fs"] }
rust-embed = { version = "8.11.0", features = ["mime-guess", "include-exclude"] }
mime_guess = "2.0.5"
tempfile = "3.27.0"
# TUI
ratatui = "0.30.0"
crossterm = { version = "0.29.0", features = ["bracketed-paste", "event-stream"] }
tokio-stream = { version = "0.1.18", features = ["sync"] }
async-stream = "0.3.6"
futures-core = "0.3.32"
# Diff parsing
diffy = "0.4.2"
shlex = "1.3.0"
tree-sitter = "0.26.8"
tree-sitter-bash = "0.25"
tree-sitter-rust = "0.24"
# Markdown rendering
pulldown-cmark = "0.13.3"
# Unicode handling
unicode-width = "0.2.2"
libvault = { version = "0.2.2", features = ["storage_sqlite"] }
base64 = "0.22.1"
# OTLP telemetry (lore.md 1.7) — optional, compiled only with `--features otlp`;
# http-proto + blocking reqwest + rustls (no tonic: init/flush run on the
# runtime-free main thread; see docs/development/telemetry-otlp.md)
opentelemetry = { version = "0.32.0", optional = true }
opentelemetry_sdk = { version = "0.32.1", optional = true }
opentelemetry-otlp = { version = "0.32.0", optional = true, default-features = false, features = ["trace", "http-proto", "reqwest-blocking-client", "reqwest-rustls"] }
tracing-opentelemetry = { version = "0.33.0", optional = true }
# OS-keyring auth backend (lore.md 2.7) — optional; Linux uses the sync
# secret-service transport with VENDORED libdbus (static, no runtime dylib
# dependency on end-user machines); macOS/Windows use native stores.
keyring = { version = "3", optional = true, default-features = false, features = ["apple-native", "windows-native", "sync-secret-service", "vendored"] }
[target.'cfg(unix)'.dependencies] # only on Unix
libfuse-fs = "0.1.13"
pager = "0.16.1"
libc = "0.2"
rfuse3 = { version = "0.0.8", features = ["tokio-runtime", "unprivileged"] }
[target.'cfg(target_os = "linux")'.dependencies] # Linux-only seccomp BPF compiler
seccompiler = { version = "0.5.0", features = ["json"] }
[target.'cfg(windows)'.dependencies]
windows-sys = { version = "0.61.2", features = ["Win32_Storage_FileSystem"] }
[dev-dependencies]
serial_test = { version = "3.4.0", default-features = false, features = ["async"] }
tokio = { version = "1.52.1", features = [
"io-util",
"net",
"rt-multi-thread",
"rt",
"macros",
"process",
"sync",
"time"
]}
testcontainers = { version = "0.27.3", features = [
"http_wait",
"reusable-containers",
] }
reqwest = { version = "0.13.2", default-features = false, features = ["blocking", "query", "rustls"] }
assert_cmd = "2.2.1"
pgp = "0.19.0"
gag = "1.0.0"
portable-pty = "0.9.0"
# AST-level use-tree/path walking for tests/compat/agent_architecture_guard.rs
# (syn 2.x is already in the dependency graph via derive macros).
syn = { version = "2.0", features = ["full", "visit"] }
# Compatibility-surface integration tests live under tests/compat/. Cargo's
# default test discovery only picks up *.rs directly under tests/, so each
# compat surface file must be registered here.
[[test]]
name = "compat_stash_subcommand_surface"
path = "tests/compat/stash_subcommand_surface.rs"
[[test]]
name = "compat_pull_strategy_flags_surface"
path = "tests/compat/pull_strategy_flags_surface.rs"
[[test]]
name = "compat_bisect_subcommand_surface"
path = "tests/compat/bisect_subcommand_surface.rs"
[[test]]
name = "compat_worktree_delete_dir"
path = "tests/compat/worktree_delete_dir.rs"
[[test]]
name = "compat_checkout_alias_help"
path = "tests/compat/checkout_alias_help.rs"
[[test]]
name = "compat_matrix_alignment"
path = "tests/compat/matrix_alignment.rs"
[[test]]
name = "compat_install_alias"
path = "tests/compat/install_alias_test.rs"
[[test]]
name = "compat_live_compat_workflow"
path = "tests/compat/live_compat_workflow.rs"
[[test]]
name = "compat_branch_lossy_wrapper_guard"
path = "tests/compat/branch_lossy_wrapper_guard.rs"
[[test]]
name = "compat_lfs_client_production_unwrap_guard"
path = "tests/compat/lfs_client_production_unwrap_guard.rs"
[[test]]
name = "compat_config_production_unwrap_guard"
path = "tests/compat/config_production_unwrap_guard.rs"
[[test]]
name = "compat_head_production_unwrap_guard"
path = "tests/compat/head_production_unwrap_guard.rs"
[[test]]
name = "compat_util_production_unwrap_guard"
path = "tests/compat/util_production_unwrap_guard.rs"
[[test]]
name = "compat_client_storage_production_unwrap_guard"
path = "tests/compat/client_storage_production_unwrap_guard.rs"
[[test]]
name = "compat_extra_production_unwrap_guard"
path = "tests/compat/extra_production_unwrap_guard.rs"
[[test]]
name = "compat_all_production_unwrap_guard"
path = "tests/compat/all_production_unwrap_guard.rs"
[[test]]
name = "compat_agent_run_non_exhaustive_guard"
path = "tests/compat/agent_run_non_exhaustive_guard.rs"
[[test]]
name = "compat_agent_docs_contract"
path = "tests/compat/agent_docs_contract.rs"
[[test]]
name = "compat_help_examples_banner"
path = "tests/compat/help_examples_banner.rs"
[[test]]
name = "compat_error_codes_doc_sync"
path = "tests/compat/error_codes_doc_sync.rs"
[[test]]
name = "compat_command_docs_examples_section"
path = "tests/compat/command_docs_examples_section.rs"
[[test]]
name = "compat_help_flag_descriptions"
path = "tests/compat/help_flag_descriptions.rs"
[[test]]
name = "compat_help_no_impl_meta_leak"
path = "tests/compat/help_no_impl_meta_leak.rs"
[[test]]
name = "compat_format_patch_flag_surface"
path = "tests/compat/format_patch_flag_surface.rs"
[[test]]
name = "compat_format_patch_mail_roundtrip"
path = "tests/compat/format_patch_mail_roundtrip_test.rs"
[[test]]
name = "compat_otlp_feature_gate_guard"
path = "tests/compat/otlp_feature_gate_guard.rs"
[[test]]
name = "compat_fastcdc_feature_gate_guard"
path = "tests/compat/fastcdc_feature_gate_guard.rs"
[[test]]
name = "compat_keyring_feature_gate_guard"
path = "tests/compat/keyring_feature_gate_guard.rs"
[[test]]
name = "compat_agent_capability_matrix_pin"
path = "tests/compat/agent_capability_matrix_pin.rs"
[[test]]
name = "compat_agent_architecture_guard"
path = "tests/compat/agent_architecture_guard.rs"
[[test]]
name = "compat_subface_labels"
path = "tests/compat/subface_labels.rs"
[[test]]
name = "compat_conflict_status_diff"
path = "tests/compat/conflict_status_diff_test.rs"
[[test]]
name = "compat_diff_check_safety"
path = "tests/compat/diff_check_safety_test.rs"
[[test]]
name = "compat_clone_shallow_integrity"
path = "tests/compat/clone_shallow_integrity_test.rs"
[[test]]
name = "compat_checkout_branch_startpoint"
path = "tests/compat/checkout_branch_startpoint_test.rs"
[[test]]
name = "compat_previous_branch_shortcut"
path = "tests/compat/previous_branch_shortcut_test.rs"
[[test]]
name = "compat_mail_am_basic"
path = "tests/compat/mail_am_basic_test.rs"
[[test]]
name = "compat_mailinfo_basic"
path = "tests/compat/mailinfo_basic_test.rs"
[[test]]
name = "compat_switch_orphan_root"
path = "tests/compat/switch_orphan_root_test.rs"
[[test]]
name = "compat_broken_pipe_output"
path = "tests/compat/broken_pipe_output_test.rs"
[[test]]
name = "compat_commit_amend_no_edit"
path = "tests/compat/commit_amend_no_edit_test.rs"
[[test]]
name = "compat_commit_identity_date"
path = "tests/compat/commit_identity_date_test.rs"
[[test]]
name = "compat_sequencer_message_author"
path = "tests/compat/sequencer_message_author_test.rs"
[[test]]
name = "compat_write_tree_missing_object"
path = "tests/compat/write_tree_missing_object_test.rs"
[[test]]
name = "compat_init_shared_mode"
path = "tests/compat/init_shared_mode_test.rs"
[[test]]
name = "compat_symlink_basic"
path = "tests/compat/symlink_basic_test.rs"
[[test]]
name = "compat_global_config_schema_future"
path = "tests/compat/global_config_schema_future_test.rs"
[[test]]
name = "compat_pathspec_magic"
path = "tests/compat/pathspec_magic_test.rs"
[[test]]
name = "compat_ignore_attributes_sources"
path = "tests/compat/ignore_attributes_sources_test.rs"
[[test]]
name = "compat_machine_porcelain_contract"
path = "tests/compat/machine_porcelain_contract_test.rs"
[[test]]
name = "compat_pretty_format_placeholders"
path = "tests/compat/pretty_format_placeholders_test.rs"
[[test]]
name = "compat_config_defaults_semantics"
path = "tests/compat/config_defaults_semantics_test.rs"
[[test]]
name = "compat_config_defaults_edge_cases"
path = "tests/compat/config_defaults_edge_cases_test.rs"
[[test]]
name = "compat_config_history_defaults"
path = "tests/compat/config_history_defaults_test.rs"
[[test]]
name = "compat_fetch_remote_refspec"
path = "tests/compat/fetch_remote_refspec_test.rs"
[[test]]
name = "compat_noninteractive_history_controls"
path = "tests/compat/noninteractive_history_controls_test.rs"
[[test]]
name = "compat_diff_review_options"
path = "tests/compat/diff_review_options_test.rs"
[[test]]
name = "compat_rev_parse_peel_selectors"
path = "tests/compat/rev_parse_peel_selectors_test.rs"
[[test]]
name = "compat_libra_hooks_lifecycle"
path = "tests/compat/libra_hooks_lifecycle_test.rs"
[[test]]
name = "compat_import_export_roundtrip"
path = "tests/compat/import_export_roundtrip_test.rs"
[[test]]
name = "compat_status_wave0_register"
path = "tests/compat/compat_status_wave0_register.rs"
# OTLP integration tests need the feature (excluded from `cargo test --all`
# under default features via required-features).
[[test]]
name = "otlp_telemetry"
path = "tests/otlp_telemetry.rs"
required-features = ["otlp"]
# Auto-upgrade integration tests (plan-20260714 §A.11): trust-root/endpoint
# injection is compile-time only via `test-upgrade`, so a bare `cargo test
# --all` excludes them and a release build cannot alter the trust root.
[[test]]
name = "upgrade_auto_test"
path = "tests/upgrade_auto_test.rs"
required-features = ["test-upgrade"]
[[test]]
name = "upgrade_publish_contract_test"
path = "tests/upgrade_publish_contract_test.rs"
required-features = ["test-upgrade"]
[[test]]
name = "auth_keyring_backend"
path = "tests/auth_keyring_backend.rs"
required-features = ["keyring"]
# Live LLM-provider tests (L3): call real APIs when their key/opt-in env is
# set. Per the L3 convention (CLAUDE.md: match the env gate AND the
# `test-live-ai` feature), require the feature so a bare `cargo test --all`
# excludes them — a machine with DEEPSEEK_API_KEY / LIBRA_AI_LIVE_OLLAMA set
# can no longer hit live providers in default L1 (C3, codex review).
[[test]]
name = "agent_live_gate_test"
path = "tests/agent_live_gate_test.rs"
required-features = ["test-live-agent"]
[[test]]
name = "ai_agent_test"
path = "tests/ai_agent_test.rs"
required-features = ["test-live-ai"]
[[test]]
name = "ai_chat_agent_test"
path = "tests/ai_chat_agent_test.rs"
required-features = ["test-live-ai"]
[[test]]
name = "ai_ollama_live_gate_test"
path = "tests/ai_ollama_live_gate_test.rs"
required-features = ["test-live-ai"]