Commit 85274fb
committed
refactor: extract bootstrap/AppBuilder from main.rs (#393)
Move 16 initialization functions from main.rs into
crates/zeph-core/src/bootstrap.rs with AppBuilder struct.
AppBuilder::from_env() resolves config, vault, and secrets.
Build methods: build_provider(), build_memory(), build_skill_matcher(),
build_registry(), build_tool_executor(), build_watchers(),
build_shutdown(), build_summary_provider().
main.rs reduced from 2313 to 978 lines. Remaining: CLI parsing,
channel creation, TUI wiring, A2A server, agent run loop.
Add feature forwarding in zeph-core (candle, compatible, cuda, metal,
openai, orchestrator, qdrant, router). Add Clone+Copy to SecurityConfig
and TimeoutConfig.
Resolves #3931 parent 6408363 commit 85274fb
File tree
6 files changed
+1777
-1522
lines changed- crates/zeph-core
- src
- config
- src
6 files changed
+1777
-1522
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
| 109 | + | |
110 | 110 | | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
11 | 15 | | |
12 | 16 | | |
13 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
14 | 22 | | |
15 | 23 | | |
16 | 24 | | |
| |||
0 commit comments