Commit 8e8977f
Phase 4: review fixes - multi-provider, timing-safe auth, data-driven models, compat
- Added Google Gemini and OpenRouter/OpenAI-compatible provider support
- Data-driven model catalog (lib/models.json) replacing hardcoded case statements
- Model aliases (fast, smart, balanced, cheap, etc.)
- Timing-safe secret comparison for pairing code verification
- Secure pairing code generation via /dev/urandom
- Expanded config schema validation (12+ checks)
- Structured session key format matching OpenClaw pattern
- Fixed local outside function scope in http_handler.sh
- chmod 600 Termux fallback across 9 files
- Reduced jq subprocess spawning via batching
- POSIX-compliant sleep values
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent ef77746 commit 8e8977f
File tree
19 files changed
+809
-101
lines changed- gateway
- lib
- tests
19 files changed
+809
-101
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
186 | 195 | | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
191 | 202 | | |
192 | 203 | | |
193 | 204 | | |
| |||
210 | 221 | | |
211 | 222 | | |
212 | 223 | | |
213 | | - | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
214 | 228 | | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
222 | 241 | | |
223 | 242 | | |
224 | 243 | | |
| |||
236 | 255 | | |
237 | 256 | | |
238 | 257 | | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
239 | 265 | | |
240 | | - | |
241 | | - | |
242 | | - | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
243 | 271 | | |
244 | 272 | | |
245 | 273 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
311 | 311 | | |
312 | 312 | | |
313 | 313 | | |
314 | | - | |
| 314 | + | |
315 | 315 | | |
316 | 316 | | |
317 | 317 | | |
| |||
0 commit comments