Repository navigation
Commit ee345d0
committed
feat: add startup check with enabled/startupCheckEnabled/failFastOnUnavailable config
- OpenCodeHttpClientConfig: add enabled, startupCheckEnabled, failFastOnUnavailable
- OpenCodeCliConfig: add enabled, startupCheckEnabled, failFastOnUnavailable
- OpenCodeClient: refactor constructors (8 overloads + full DI)
- enabled=false short-circuits subsystem initialization (fields null)
- Startup checks run during main constructor (HTTP health + CLI probe)
- isHttpEnabled() / isCliEnabled() for post-construction queries
- Add OpenCodeClientConstructionTest (7 tests)1 parent 3fa81c4 commit ee345d0
3 files changed
Lines changed: 209 additions & 171 deletions
File tree
- src/main/java/io/github/easy4j/opencode
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
14 | 31 | | |
15 | 32 | | |
16 | 33 | | |
| |||
0 commit comments